Ubuntu 16.04 编译android源码 error: unsupported reloc 42|error: unsupported reloc 43

来源:http://stackoverflow.com/questions/36048358/building-android-from-sources-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

change to :

# Host.
ART_HOST_CLANG := false
ifeq ($(WITHOUT_HOST_CLANG),false)
# By default, host builds use clang for better warnings.
ART_HOST_CLANG := true
endif

If it still not works,try this in your android root path:
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld

你可能感兴趣的:(Ubuntu 16.04 编译android源码 error: unsupported reloc 42|error: unsupported reloc 43)