为Sony Xperia Z1构建AOSP 5.1失败

时间:2017-06-09 07:30:37

标签: android build android-source sony-xperia

我多次尝试构建AOSP,但我从未以成功的声明结束它。我的主机PC是虚拟机Ubuntu 16.04 我还尝试了不同版本的AOSP 6.0,6.1,5.0,但每次都失败了。 这是部分问题的屏幕。 http://imgur.com/a/WrvFQ

2 个答案:

答案 0 :(得分:0)

确定。也许我说得不对。 现在最新的消息是:

...
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 

答案 1 :(得分:0)

试试这个:

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

它对我有用