【发布时间】:2017-06-09 07:30:37
【问题描述】:
我多次尝试构建 AOSP,但我从未以成功的语句结束它。我的主机PC是虚拟机Ubuntu 16.04 我还尝试了不同版本的 AOSP 6.0、6.1、5.0,但都失败了。 这是部分问题的屏幕。 http://imgur.com/a/WrvFQ
【问题讨论】:
标签: android build android-source sony-xperia
我多次尝试构建 AOSP,但我从未以成功的语句结束它。我的主机PC是虚拟机Ubuntu 16.04 我还尝试了不同版本的 AOSP 6.0、6.1、5.0,但都失败了。 这是部分问题的屏幕。 http://imgur.com/a/WrvFQ
【问题讨论】:
标签: android build android-source sony-xperia
好的。可能我描述的不太对。 现在最新消息是:
...
libnativehelper/JniConstants.cpp:140: error: unsupported reloc 43
libnativehelper/toStringArray.cpp:21: error: unsupported reloc 43
libnativehelper/toStringArray.cpp:21: error: unsupported reloc 43
...
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
clang: error: linker command failed with error 1
build/core/host_shared_library_internal.mk:44 recipe for target out/host/linux-x86/obj32/lib/libnativehelper.so failed
### make failed with build some targets
【讨论】:
试试这个:
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld
在这里找到解决方案: Building Android from sources: unsupported reloc 43
它对我有用
【讨论】: