I execute "linaro_android_build_cmds.sh" to download "vexpress-linaro-13.09-release" code and build it . Now the case is: code is downloaded successfully , but when build android code ,there is error with it. ******************************************************************************************************************************* Makefile:3839: recipe for target 'build/gengenrtl.o' failed make[3]: *** [build/gengenrtl.o] Error 1 make[3]: *** Waiting for unfinished jobs.... In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, from /home/muzhen/android/android/native-toolchain/src/gcc/gcc/system.h:40, from /home/muzhen/android/android/native-toolchain/src/gcc/gcc/genhooks.c:21: /usr/include/malloc.h:76:32: error: declaration of 'void free(void*) throw ()' has a different exception specifier extern void free (void *__ptr) __THROW; ^ In file included from /home/muzhen/android/android/native-toolchain/src/gcc/gcc/genhooks.c:21:0: /home/muzhen/android/android/native-toolchain/src/gcc/gcc/system.h:420:13: error: from previous declaration 'void free(void*)' extern void free (void *); ^ In file included from ./bconfig.h:5:0, from /home/muzhen/android/android/native-toolchain/src/gcc/gcc/genhooks.c:20: /home/muzhen/android/android/native-toolchain/src/gcc/gcc/../include/ansidecl.h:308:64: error: declaration of 'int snprintf(char*, size_t, const char*, ...)' has a different exception specifier # define ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m))) ^ /home/muzhen/android/android/native-toolchain/src/gcc/gcc/../include/ansidecl.h:328:80: note: in expansion of macro 'ATTRIBUTE_NONNULL' #define ATTRIBUTE_PRINTF(m, n) __attribute__ ((__format__ (__printf__, m, n))) ATTRIBUTE_NONNULL(m) ^ /home/muzhen/android/android/native-toolchain/src/gcc/gcc/../include/ansidecl.h:331:28: note: in expansion of macro 'ATTRIBUTE_PRINTF' #define ATTRIBUTE_PRINTF_3 ATTRIBUTE_PRINTF(3, 4) ^ /home/muzhen/android/android/native-toolchain/src/gcc/gcc/../include/libiberty.h:628:57: note: in expansion of macro 'ATTRIBUTE_PRINTF_3' extern int snprintf (char *, size_t, const char *, ...) ATTRIBUTE_PRINTF_3; ^ In file included from /home/muzhen/android/android/native-toolchain/src/gcc/gcc/genhooks.c:21:0: /home/muzhen/android/android/native-toolchain/src/gcc/gcc/system.h:527:12: error: from previous declaration 'int snprintf(char*, size_t, const char*, ...) throw ()' extern int snprintf (char *, size_t, const char *, ...); ^ In file included from ./bconfig.h:5:0, from /home/muzhen/android/android/native-toolchain/src/gcc/gcc/genhooks.c:20: /home/muzhen/android/android/native-toolchain/src/gcc/gcc/../include/ansidecl.h:308:64: error: declaration of 'int vsnprintf(char*, size_t, const char*, __va_list_tag*)' has a different exception specifier # define ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m))) ^ /home/muzhen/android/android/native-toolchain/src/gcc/gcc/../include/ansidecl.h:328:80: note: in expansion of macro 'ATTRIBUTE_NONNULL' #define ATTRIBUTE_PRINTF(m, n) __attribute__ ((__format__ (__printf__, m, n))) ATTRIBUTE_NONNULL(m) ^ /home/muzhen/android/android/native-toolchain/src/gcc/gcc/../include/libiberty.h:633:62: note: in expansion of macro 'ATTRIBUTE_PRINTF' extern int vsnprintf (char *, size_t, const char *, va_list) ATTRIBUTE_PRINTF(3,0); ^ In file included from /home/muzhen/android/android/native-toolchain/src/gcc/gcc/genhooks.c:21:0: /home/muzhen/android/android/native-toolchain/src/gcc/gcc/system.h:531:12: error: from previous declaration 'int vsnprintf(char*, size_t, const char*, __va_list_tag*) throw ()' extern int vsnprintf(char *, size_t, const char *, va_list); ^ Makefile:3839: recipe for target 'build/genhooks.o' failed make[3]: *** [build/genhooks.o] Error 1 rm gcov.pod fsf-funding.pod gfdl.pod cpp.pod gcc.pod make[3]: Leaving directory '/home/muzhen/android/android/native-toolchain/build/gcc/gcc' Makefile:3889: recipe for target 'all-gcc' failed make[2]: *** [all-gcc] Error 2 make[2]: Leaving directory '/home/muzhen/android/android/native-toolchain/build/gcc' Makefile:837: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/home/muzhen/android/android/native-toolchain/build/gcc' native-toolchain/Android.mk:11: recipe for target 'out/target/product/vexpress/system/bin/gcc' failed make: *** [out/target/product/vexpress/system/bin/gcc] Error 2 make: *** 正在等待未完成的任务.... root@muzhen-virtual-machine:/home/muzhen/android# ******************************************************************************************************************************* I donot know how to solve it, Look forward to your reply.
linaro-android@lists.linaro.org