Ubuntu 16.04 编译android源码 error: unsupported reloc 42|error: unsupported reloc 43
问题是error: unsupported reloc 42,修改源码根目录下的art/build/Android.common_build.mk就没问题了。
in file art/build/Android.common_build.mk, find out:
# 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
ifeq ($(WITHOUT_HOST_CLANG),false)
# By default, host builds use clang for better warnings.
ART_HOST_CLANG := true
endif
如果仍然不正常尝试在你的根目录下:
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld