Hello,my name is jefby. I am very interested in porting Arndale octa board to Android 4.4.2 ,and now i have downloaded the linaro source for arndale octa, i follow bellow ,but occurs some error: create my shell (linaro-comiple.sh),its content is listed below:
export USE_CCACHE=1 export CCACHE_DIR=./.ccache prebuilts/misc/linux-x86/ccache/ccache -M 30G #clear the before results make clobber #make TARGET_PRODUCT=full_arndale_octa TARGET_TOOLS_PREFIX=/work/arndale-octa-linaro/gcc-linaro-arm-linux-gnueabihf-4.8-2014.02_linux/bin/arm-linux-gnueabihf- boottarball systemtarball userdatatarball -j16 source build/envsetup.sh echo "set environment" make TARGET_PRODUCT=full_arndale_octa TARGET_TOOLS_PREFIX=prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8-linaro/bin/arm-eabi- boottarball systemtarball userdatatarball -j16
source this shell , error:
system/core/include/utils/TypeHelpers.h:282:1: error: template specialization with C linkage ANDROID_INT32_HASH(bool) ^ system/core/include/utils/TypeHelpers.h:283:1: error: template specialization with C linkage ANDROID_INT32_HASH(int8_t) ^ system/core/include/utils/TypeHelpers.h:284:1: error: template specialization with C linkage ANDROID_INT32_HASH(uint8_t) ^ system/core/include/utils/TypeHelpers.h:285:1: error: template specialization with C linkage ANDROID_INT32_HASH(int16_t) ^ system/core/include/utils/TypeHelpers.h:286:1: error: template specialization with C linkage ANDROID_INT32_HASH(uint16_t) ^ system/core/include/utils/TypeHelpers.h:287:1: error: template specialization with C linkage ANDROID_INT32_HASH(int32_t) ^ system/core/include/utils/TypeHelpers.h:288:1: error: template specialization with C linkage ANDROID_INT32_HASH(uint32_t) ^ system/core/include/utils/TypeHelpers.h:289:1: error: template specialization with C linkage ANDROID_INT64_HASH(int64_t) ^ system/core/include/utils/TypeHelpers.h:290:1: error: template specialization with C linkage ANDROID_INT64_HASH(uint64_t) ^ system/core/include/utils/TypeHelpers.h:291:1: error: template specialization with C linkage ANDROID_REINTERPRET_HASH(float, uint32_t) ^ system/core/include/utils/TypeHelpers.h:292:1: error: template specialization with C linkage ANDROID_REINTERPRET_HASH(double, uint64_t) ^ system/core/include/utils/TypeHelpers.h:294:1: error: template with C linkage template <typename T> inline hash_t hash_type(T* const & value) { ^ In file included from frameworks/native/include/binder/Parcel.h:22:0, from frameworks/native/include/batteryservice/BatteryService.h:20, from system/core/healthd/healthd.h:20, from system/core/healthd/healthd_board_default.cpp:17: system/core/include/utils/RefBase.h:173:1: error: template with C linkage template <class T> ^ system/core/include/utils/RefBase.h:208:1: error: template with C linkage template <typename T> ^ In file included from frameworks/native/include/binder/Parcel.h:22:0, from frameworks/native/include/batteryservice/BatteryService.h:20, from system/core/healthd/healthd.h:20, from system/core/healthd/healthd_board_default.cpp:17: system/core/include/utils/RefBase.h:298:1: error: template with C linkage template <typename T> ^ system/core/include/utils/RefBase.h:306:1: error: template with C linkage template<typename T> ^ system/core/include/utils/RefBase.h:313:1: error: template with C linkage template<typename T> ^ system/core/include/utils/RefBase.h:320:1: error: template with C linkage template<typename T> ^ system/core/include/utils/RefBase.h:329:1: error: template with C linkage template<typename T> template<typename U> ^ system/core/include/utils/RefBase.h:336:1: error: template with C linkage template<typename T> template<typename U> ^ system/core/include/utils/RefBase.h:346:1: error: template with C linkage template<typename T> template<typename U> ^ system/core/include/utils/RefBase.h:355:1: error: template with C linkage template<typename T> ^ system/core/include/utils/RefBase.h:361:1: error: template with C linkage template<typename T> ^ system/core/include/utils/RefBase.h:372:1: error: template with C linkage template<typename T> ^ system/core/include/utils/RefBase.h:384:1: error: template with C linkage template<typename T> ^ system/core/include/utils/RefBase.h:396:1: error: template with C linkage template<typename T> template<typename U> ^ system/core/include/utils/RefBase.h:407:1: error: template with C linkage template<typename T> template<typename U> ^ system/core/include/utils/RefBase.h:419:1: error: template with C linkage template<typename T> template<typename U> ^ system/core/include/utils/RefBase.h:431:1: error: template with C linkage template<typename T> ^ system/core/include/utils/RefBase.h:440:1: error: template with C linkage template<typename T> ^ system/core/include/utils/RefBase.h:450:1: error: template with C linkage template<typename T> ^ system/core/include/utils/RefBase.h:459:1: error: template with C linkage template <typename T> ^ system/core/include/utils/RefBase.h:476:5: error: template with C linkage template<typename TYPE> static inline ^ system/core/include/utils/RefBase.h:495:5: error: template with C linkage template<typename TYPE> static inline ^ In file included from frameworks/native/include/binder/Parcel.h:22:0, from frameworks/native/include/batteryservice/BatteryService.h:20, from system/core/healthd/healthd.h:20, from system/core/healthd/healthd_board_default.cpp:17: system/core/include/utils/RefBase.h:521:1: error: template with C linkage template<typename TYPE> inline ^ system/core/include/utils/RefBase.h:526:1: error: template with C linkage template<typename TYPE> inline ^ system/core/include/utils/RefBase.h:531:1: error: template with C linkage template<typename TYPE> inline ^ system/core/include/utils/RefBase.h:536:1: error: template with C linkage template<typename TYPE> inline ^ In file included from frameworks/native/include/binder/Parcel.h:23:0, from frameworks/native/include/batteryservice/BatteryService.h:20, from system/core/healthd/healthd.h:20, from system/core/healthd/healthd_board_default.cpp:17: system/core/include/utils/String16.h:127:1: error: template specialization with C linkage ANDROID_TRIVIAL_MOVE_TRAIT(String16) ^ In file included from frameworks/native/include/binder/Parcel.h:24:0, from frameworks/native/include/batteryservice/BatteryService.h:20, from system/core/healthd/healthd.h:20, from system/core/healthd/healthd_board_default.cpp:17: system/core/include/utils/Vector.h:33:1: error: template with C linkage template <typename TYPE> ^ system/core/include/utils/Vector.h:42:1: error: template with C linkage template <class TYPE> ^ system/core/include/utils/Vector.h:212:1: error: template with C linkage template<typename T> struct trait_trivial_move<Vector<T> > { enum { value = true }; }; ^ system/core/include/utils/Vector.h:218:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:228:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:233:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:238:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:243:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:249:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:255:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:261:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:267:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:272:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:278:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:286:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:291:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:296:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:301:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:306:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:311:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:316:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:321:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:326:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:331:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:336:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:341:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:346:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:351:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:356:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:361:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:366:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:371:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:376:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:381:1: error: template with C linkage template<class TYPE> inline ^ system/core/include/utils/Vector.h:388:1: error: template with C linkage template<class TYPE> ^ system/core/include/utils/Vector.h:393:1: error: template with C linkage template<class TYPE> ^ system/core/include/utils/Vector.h:398:1: error: template with C linkage template<class TYPE> ^ system/core/include/utils/Vector.h:403:1: error: template with C linkage template<class TYPE> ^ system/core/include/utils/Vector.h:408:1: error: template with C linkage template<class TYPE> ^ system/core/include/utils/Vector.h:413:1: error: template with C linkage template<class TYPE> ^ In file included from system/core/include/utils/Flattenable.h:24:0, from frameworks/native/include/binder/Parcel.h:25, from frameworks/native/include/batteryservice/BatteryService.h:20, from system/core/healthd/healthd.h:20, from system/core/healthd/healthd_board_default.cpp:17: system/core/include/utils/Debug.h:27:1: error: template with C linkage template<bool> struct CompileTimeAssert; ^ system/core/include/utils/Debug.h:28:1: error: template specialization with C linkage template<> struct CompileTimeAssert<true> {}; ^ In file included from system/core/include/utils/Flattenable.h:24:0, from frameworks/native/include/binder/Parcel.h:25, from frameworks/native/include/batteryservice/BatteryService.h:20, from system/core/healthd/healthd.h:20, from system/core/healthd/healthd_board_default.cpp:17: system/core/include/utils/Debug.h:38:1: error: template with C linkage template<bool C, typename LSH, typename RHS> struct CompileTimeIfElse; ^ system/core/include/utils/Debug.h:39:1: error: template with C linkage template<typename LHS, typename RHS> ^ system/core/include/utils/Debug.h:41:1: error: template with C linkage template<typename LHS, typename RHS> ^ In file included from frameworks/native/include/binder/Parcel.h:25:0, from frameworks/native/include/batteryservice/BatteryService.h:20, from system/core/healthd/healthd.h:20, from system/core/healthd/healthd_board_default.cpp:17: system/core/include/utils/Flattenable.h:31:5: error: template with C linkage template<int N> ^ system/core/include/utils/Flattenable.h:37:5: error: template with C linkage template<int N> ^ system/core/include/utils/Flattenable.h:45:5: error: template with C linkage template<int N> ^ system/core/include/utils/Flattenable.h:61:5: error: template with C linkage template<typename T> ^ system/core/include/utils/Flattenable.h:68:5: error: template with C linkage template<typename T> ^ In file included from frameworks/native/include/binder/Parcel.h:25:0, from frameworks/native/include/batteryservice/BatteryService.h:20, from system/core/healthd/healthd.h:20, from system/core/healthd/healthd_board_default.cpp:17: system/core/include/utils/Flattenable.h:82:1: error: template with C linkage template <typename T> ^ In file included from frameworks/native/include/binder/Parcel.h:25:0, from frameworks/native/include/batteryservice/BatteryService.h:20, from system/core/healthd/healthd.h:20, from system/core/healthd/healthd_board_default.cpp:17: system/core/include/utils/Flattenable.h:108:1: error: template with C linkage template<typename T> ^ system/core/include/utils/Flattenable.h:112:1: error: template with C linkage template<typename T> ^ system/core/include/utils/Flattenable.h:116:1: error: template with C linkage template<typename T> ^ system/core/include/utils/Flattenable.h:121:1: error: template with C linkage template<typename T> ^ system/core/include/utils/Flattenable.h:133:1: error: template with C linkage template <typename T> ^ system/core/include/utils/Flattenable.h:150:1: error: template with C linkage template <typename T> ^ system/core/include/utils/Flattenable.h:154:1: error: template with C linkage template <typename T> ^ system/core/include/utils/Flattenable.h:158:1: error: template with C linkage template <typename T> ^ system/core/include/utils/Flattenable.h:162:1: error: template with C linkage template <typename T> ^ system/core/include/utils/Flattenable.h:173:1: error: template with C linkage template <typename T> ^ In file included from frameworks/native/include/batteryservice/BatteryService.h:20:0, from system/core/healthd/healthd.h:20, from system/core/healthd/healthd_board_default.cpp:17: frameworks/native/include/binder/Parcel.h:30:1: error: template with C linkage template <typename T> class Flattenable; ^ frameworks/native/include/binder/Parcel.h:31:1: error: template with C linkage template <typename T> class LightFlattenable; ^ In file included from frameworks/native/include/batteryservice/BatteryService.h:20:0, from system/core/healthd/healthd.h:20, from system/core/healthd/healthd_board_default.cpp:17: frameworks/native/include/binder/Parcel.h:106:5: error: template with C linkage template<typename T> ^ frameworks/native/include/binder/Parcel.h:109:5: error: template with C linkage template<typename T> ^ frameworks/native/include/binder/Parcel.h:163:5: error: template with C linkage template<typename T> ^ frameworks/native/include/binder/Parcel.h:166:5: error: template with C linkage template<typename T> ^ frameworks/native/include/binder/Parcel.h:225:5: error: template with C linkage template<class T> ^ frameworks/native/include/binder/Parcel.h:228:5: error: template with C linkage template<class T> T readAligned() const; ^ frameworks/native/include/binder/Parcel.h:230:5: error: template with C linkage template<class T> ^ frameworks/native/include/binder/Parcel.h:277:5: error: template with C linkage template<typename T> ^ frameworks/native/include/binder/Parcel.h:316:1: error: template with C linkage template<typename T> ^ frameworks/native/include/binder/Parcel.h:322:1: error: template with C linkage template<typename T> ^ frameworks/native/include/binder/Parcel.h:340:1: error: template with C linkage template<typename T> ^ frameworks/native/include/binder/Parcel.h:346:1: error: template with C linkage template<typename T> ^ frameworks/native/include/binder/Parcel.h:386:71: error: declaration of C function 'void android::flatten_binder(const android::spandroid::ProcessState&, const android::wpandroid::IBinder&, android::flat_binder_object*)' conflicts with const wp<IBinder>& binder, flat_binder_object* out); ^ frameworks/native/include/binder/Parcel.h:383:6: error: previous declaration 'void android::flatten_binder(const android::spandroid::ProcessState&, const android::spandroid::IBinder&, android::flat_binder_object*)' here void flatten_binder(const sp<ProcessState>& proc, ^ frameworks/native/include/binder/Parcel.h:390:75: error: declaration of C function 'android::status_t android::unflatten_binder(const android::spandroid::ProcessState&, const android::flat_binder_object&, android::wpandroid::IBinder*)' conflicts with const flat_binder_object& flat, wp<IBinder>* out); ^ frameworks/native/include/binder/Parcel.h:387:10: error: previous declaration 'android::status_t android::unflatten_binder(const android::spandroid::ProcessState&, const android::flat_binder_object&, android::spandroid::IBinder*)' here status_t unflatten_binder(const sp<ProcessState>& proc, ^ In file included from frameworks/native/include/batteryservice/BatteryService.h:22:0, from system/core/healthd/healthd.h:20, from system/core/healthd/healthd_board_default.cpp:17: system/core/include/utils/String8.h:234:1: error: template specialization with C linkage ANDROID_TRIVIAL_MOVE_TRAIT(String8) ^ system/core/include/utils/String8.h: In function 'int android::compare_type(const android::String8&, const android::String8&)': system/core/include/utils/String8.h:239:63: error: declaration of C function 'int android::compare_type(const android::String8&, const android::String8&)' conflicts with inline int compare_type(const String8& lhs, const String8& rhs) ^ In file included from frameworks/native/include/binder/Parcel.h:23:0, from frameworks/native/include/batteryservice/BatteryService.h:20, from system/core/healthd/healthd.h:20, from system/core/healthd/healthd_board_default.cpp:17: system/core/include/utils/String16.h:132:12: error: previous declaration 'int android::compare_type(const android::String16&, const android::String16&)' here inline int compare_type(const String16& lhs, const String16& rhs) ^ In file included from frameworks/native/include/batteryservice/BatteryService.h:22:0, from system/core/healthd/healthd.h:20, from system/core/healthd/healthd_board_default.cpp:17: system/core/include/utils/String8.h: In function 'int android::strictly_order_type(const android::String8&, const android::String8&)': system/core/include/utils/String8.h:244:70: error: declaration of C function 'int android::strictly_order_type(const android::String8&, const android::String8&)' conflicts with inline int strictly_order_type(const String8& lhs, const String8& rhs) ^ In file included from frameworks/native/include/binder/Parcel.h:23:0, from frameworks/native/include/batteryservice/BatteryService.h:20, from system/core/healthd/healthd.h:20, from system/core/healthd/healthd_board_default.cpp:17: system/core/include/utils/String16.h:137:12: error: previous declaration 'int android::strictly_order_type(const android::String16&, const android::String16&)' here inline int strictly_order_type(const String16& lhs, const String16& rhs) ^ system/core/healthd/healthd_board_default.cpp: At global scope: system/core/healthd/healthd_board_default.cpp:19:6: warning: unused parameter 'config' [-Wunused-parameter] void healthd_board_init(struct healthd_config *config) host C: libz <= external/zlib/src/uncompr.c ^ system/core/healthd/healthd_board_default.cpp:25:5: warning: unused parameter 'props' [-Wunused-parameter] int healthd_board_battery_update(struct android::BatteryProperties *props) ^ host C: libz <= external/zlib/src/zutil.c target Generated: libvpx <= out/target/product/arndale_octa/obj/STATIC_LIBRARIES/libvpx_intermediates/vp8/encoder/vp8_asm_enc_offsets.intermediate target Generated: libvpx <= out/target/product/arndale_octa/obj/STATIC_LIBRARIES/libvpx_intermediates/vpx_scale/vpx_scale_asm_offsets.intermediate target thumb C: cpuidle_killer <= external/pm-qa/cpuidle/cpuidle_killer.c make: *** [out/target/product/arndale_octa/obj/STATIC_LIBRARIES/libhealthd.default_intermediates/healthd_board_default.o] 错误 1 make: *** 正在等待未完成的任务.... target thumb C: cpuburn <= external/pm-qa/utils/cpuburn.c target thumb C: cpucycle <= external/pm-qa/utils/cpucycle.c target thumb C: heat_cpu <= external/pm-qa/utils/heat_cpu.c target thumb C: nanosleep <= external/pm-qa/utils/nanosleep.c target thumb C: bc <= external/tools_for_pm-qa/bc/main.c target thumb C: bc <= external/tools_for_pm-qa/bc/bc.c external/pm-qa/utils/cpucycle.c: In function 'sigalarm': external/pm-qa/utils/cpucycle.c:40:19: warning: unused parameter 'sig' [-Wunused-parameter] void sigalarm(int sig) ^ external/pm-qa/cpuidle/cpuidle_killer.c: In function 'adjtimex': external/pm-qa/cpuidle/cpuidle_killer.c:15:2: warning: implicit declaration of function 'syscall' [-Wimplicit-function-declaration] return syscall(__NR_adjtimex, buf); ^ external/pm-qa/cpuidle/cpuidle_killer.c: In function 'sighandler': external/pm-qa/cpuidle/cpuidle_killer.c:29:21: warning: unused parameter 'sig' [-Wunused-parameter] void sighandler(int sig) ^ external/pm-qa/cpuidle/cpuidle_killer.c: In function 'timeout': external/pm-qa/cpuidle/cpuidle_killer.c:34:18: warning: unused parameter 'sig' [-Wunused-parameter] void timeout(int sig) ^ external/pm-qa/cpuidle/cpuidle_killer.c: In function 'tick_me': external/pm-qa/cpuidle/cpuidle_killer.c:45:9: warning: missing initializer for field 'it_interval' of 'struct itimerval' [-Wmissing-field-initializers] struct itimerval t = { }; ^ In file included from bionic/libc/include/sys/time.h:33:0, from bionic/libc/include/sys/select.h:32, from bionic/libc/include/unistd.h:34, from external/pm-qa/cpuidle/cpuidle_killer.c:4: bionic/libc/kernel/common/linux/time.h:59:17: note: 'it_interval' declared here struct timeval it_interval; ^ external/pm-qa/cpuidle/cpuidle_killer.c: In function 'main': external/pm-qa/cpuidle/cpuidle_killer.c:103:14: warning: unused parameter 'argc' [-Wunused-parameter] int main(int argc, char *argv[]) ^ external/pm-qa/cpuidle/cpuidle_killer.c:103:26: warning: unused parameter 'argv' [-Wunused-parameter] int main(int argc, char *argv[]) ^ external/tools_for_pm-qa/bc/main.c: In function 'use_quit': external/tools_for_pm-qa/bc/main.c:352:10: warning: unused parameter 'sig' [-Wunused-parameter] int sig; ^
And I want to know its my command is correct or arm-linux-gcc has some error ? Could you show me the correct method for compiling linaro-android source. Thanks very much! jefby