Hello. Cant build Android from WiKi tutorial. libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43 clang: error: linker command failed with exit code 1 (use -v to see invocation) build/core/host_shared_library_internal.mk:44: recipe for target 'out/host/linux-x86/obj32/lib/libnativehelper.so' failed make: *** [out/host/linux-x86/obj32/lib/libnativehelper.so] Error 1 make: *** Waiting for unfinished jobs.... host C++: dalvikvm <= art/dalvikvm/dalvikvm.cc host StaticLib: libunwindbacktrace_32 (out/host/linux-x86/obj32/STATIC_LIBRARIES/libunwindbacktrace_intermediates/libu nwindbacktrace.a) make: *** wait: No child processes. Stop. #### make failed to build some targets (03:17 (mm:ss)) #### Build machine Ubuntu 16.04. GnuMake 4.1 Can any one help me resolve it? Thanks
NanoPiM3 Android Build problem
run make in one thread -j1 Receive next : . . including ./vendor/nexell/s5p6818/Android.mk ... build/core/Makefile:34: warning: overriding recipe for target 'out/target/product/nanopi3/system/lib/libstagefright_wfd.so' build/core/base_rules.mk:550: warning: ignoring old recipe for target 'out/target/product/nanopi3/system/lib/libstagefright_wfd.so' No private recovery resources for TARGET_DEVICE nanopi3 Checking API: checkpublicapi-last Checking API: checkpublicapi-current Checking API: checksystemapi-last Checking API: checksystemapi-current target Java: mms-common (out/target/common/obj/JAVA_LIBRARIES/mms-common_intermediates/classes) . . ...long errors log . . external/libcxx/include/thread:149: error: unsupported reloc 43 external/libcxx/include/thread:149: error: unsupported reloc 43 clang: error: linker command failed with exit code 1 (use -v to see invocation) build/core/host_shared_library_internal.mk:44: recipe for target 'out/host/linux-x86/obj32/lib/libc++.so' failed make: *** [out/host/linux-x86/obj32/lib/libc++.so] Error 1
So, I loaded same version of aosp(5.1.1.r6) from google and get same problem. Looks like issue in toolchain.
Looks like its known issue. Problem in prebuilts tools, actually on linker utility. Tried copy local linker instead, seams like working solution cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld