【发布时间】:2016-03-16 22:42:28
【问题描述】:
当我在编译 Android 5.1.1 时,我遇到了很多这样的错误:
...
...
...
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
make 过程最终失败:
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
我尝试过使用和不使用 clang 以及不同版本的 clang 来构建源代码。但在较新的分支上,clang 是必需的,没有它就无法启动。
可能出了什么问题?
【问题讨论】:
标签: android makefile android-source