error: unsupported reloc 43

Posted tid-think

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了error: unsupported reloc 43相关的知识,希望对你有一定的参考价值。

在Ubuntu 16.04.5 LTS编译android 5.1报错

[19:17:13.062]libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
[19:17:13.062]libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
[19:17:13.062]libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
[19:17:13.062]libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
[19:17:13.063]clang: error: linker command failed with exit code 1 (use -v to see invocation)
[19:17:13.063]build/core/host_shared_library_internal.mk:44: recipe for target out/host/linux-x86/obj32/lib/libnativehelper.so failed
[19:17:13.063]make: *** [out/host/linux-x86/obj32/lib/libnativehelper.so] Error 1
[19:17:13.063]
[19:17:13.063]#### make failed to build some targets (6 seconds) ####

参考

https://blog.csdn.net/u014770862/article/details/52624851

cp /usr/bin/ld.gold   prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld 

修改后重新make ok

以上是关于error: unsupported reloc 43的主要内容,如果未能解决你的问题,请参考以下文章

C/C++链接静态库报错:dangerous relocation: unsupported relocation(-fPIC)

C/C++链接静态库报错:dangerous relocation: unsupported relocation(-fPIC)

Ubuntu16 编译源码出错 unsupported reloc 43

Ubuntu16 编译源码出错 unsupported reloc 43

Thumb和ARM指令不能切换问题(error:unsupported interworking call (Thumb -> ARM))

安装docker报错docker: relocation error: