美文网首页
Ubuntu 16.04 编译android源码 error:

Ubuntu 16.04 编译android源码 error:

作者: 海尽天涯 | 来源:发表于2017-01-10 20:48 被阅读1189次

来源: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:

      本文链接:https://www.haomeiwen.com/subject/ocrlbttx.html