当我编译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
而且制作过程最终失败了:
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,否则make无法启动。
可能出了什么问题?
cp
命令对我来说可行,而无需进行任何其他操作。谢谢! - Chef Pharaoh