编译Android-6.0.1的过程中遇到的一些问题及处理方法:
error: unsupported reloc 43
- 错误信息如下:
error: unsupported reloc 43
- 解决思路如下:
- 修改文件
art/build/Android.common_build.mk
中的如下内容:
为:# Host. ART_HOST_CLANG := false ifneq ($(WITHOUT_HOST_CLANG),true) # By default, host builds use clang for better warnings. ART_HOST_CLANG := true endif
# Host. ART_HOST_CLANG := false ifneq ($(WITHOUT_HOST_CLANG),false) # By default, host builds use clang for better warnings. ART_HOST_CLANG := true endif
- 执行如下命令:
cd prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/bin cp /usr/bin/ld.gold ld
- 修改文件
- 相关链接:
https://stackoverflow.com/questions/36048358/building-android-from-sources-unsupported-reloc-43
网友评论