码迷,mamicode.com
首页 > 其他好文 > 详细

error: unsupported reloc 43

时间:2019-06-21 19:55:42      阅读:104      评论:0      收藏:0      [点我收藏+]

标签:usr   ***   article   ted   port   修改   net   tar   href   

在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

标签:usr   ***   article   ted   port   修改   net   tar   href   

原文地址:https://www.cnblogs.com/tid-think/p/11066470.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!