Ubuntu16 编译源码出错 unsupported reloc 43
来源:互联网 发布:淘宝怎么设置地区不卖 编辑:程序博客网 时间:2024/06/08 04:52
错误如下
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/include/c++/4.6/bits/basic_string.h:270: error: unsupported reloc 43
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/include/c++/4.6/bits/basic_string.h:270: error: unsupported reloc 43prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/include/c++/4.6/bits/basic_string.h:235: error: unsupported reloc 43
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/include/c++/4.6/bits/basic_string.h:235: error: unsupported reloc 43
libnativehelper/JNIHelp.cpp:310: error: unsupported reloc 43
libnativehelper/JNIHelp.cpp:311: error: unsupported reloc 43
libnativehelper/JNIHelp.cpp:332: error: unsupported reloc 43
libnativehelper/JNIHelp.cpp:322: error: unsupported reloc 43
libnativehelper/JNIHelp.cpp:338: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:89: error: unsupported reloc 43
libnativehelper/JniConstants.cpp:90: error: unsupported reloc 43
解决方法(一)
修改 build/core/clang/HOST_x86_common.mk
diff --git a/core/clang/HOST_x86_common.mk b/core/clang/HOST_x86_common.mkindex 0241cb6..77547b7 100644--- a/core/clang/HOST_x86_common.mk+++ b/core/clang/HOST_x86_common.mk@@ -8,6 +8,7 @@ ifeq ($(HOST_OS),linux) CLANG_CONFIG_x86_LINUX_HOST_EXTRA_ASFLAGS := \ --gcc-toolchain=$($(clang_2nd_arch_prefix)HOST_TOOLCHAIN_FOR_CLANG) \ --sysroot=$($(clang_2nd_arch_prefix)HOST_TOOLCHAIN_FOR_CLANG)/sysroot \+ -B$($(clang_2nd_arch_prefix)HOST_TOOLCHAIN_FOR_CLANG)/x86_64-linux/bin \ -no-integrated-as CLANG_CONFIG_x86_LINUX_HOST_EXTRA_CFLAGS := \
但是对我而言 错误仍在
解决方法(二)
修改 art/build/Android.common_build.mk
# Host.ART_HOST_CLANG := falseifneq ($(WITHOUT_HOST_CLANG),true) # By default, host builds use clang for better warnings. ART_HOST_CLANG := trueendif
改为
# Host.ART_HOST_CLANG := falseifeq ($(WITHOUT_HOST_CLANG),false) # By default, host builds use clang for better warnings. ART_HOST_CLANG := trueendif
仍然不起作用
解决方法(三)
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld
这个之后,编译通过。
转载网址:http://www.cnblogs.com/blowing-in-the-wind/p/6518076.html
阅读全文
0 0
- Ubuntu16 编译源码出错 unsupported reloc 43
- Ubuntu16 编译源码出错 unsupported reloc 43
- Ubuntu16 编译Android5.1 lollipop 源码出错 unsupported reloc 43
- Android 文件系统编译 error: unsupported reloc 43
- Android系统源码编译 unsupported reloc 43 和 make update-api
- Android问题集锦之五十二:unsupported reloc 43
- 编译cocosbuilder源码出错
- 编译redis源码出错
- ubuntu16.0源码编译PCL
- android 编译出错 Unsupported major.minor version 52.0
- Android 源码编译出错汇总
- android 7.1源码编译 出错
- Ubuntu16.0.4安装与编译Android源码
- Ubuntu16.04 LTS 编译Android6.0.1源码
- Ubuntu16.04下编译android6.0源码
- ubuntu16.04下编译linphone源码
- Ubuntu16.04下编译Android 6.0 源码
- 使用Ubuntu16下载编译Android6.0源码
- systemctl用法
- Saltstack job功能开发与调试方法
- java.util.List.subList注意事项
- 百度地图只给核心代码,发布版的sha1
- 笨方法学python 习题27(逻辑之前的内容)习题28(布尔)29、30、31
- Ubuntu16 编译源码出错 unsupported reloc 43
- Hadoop 学习链接
- CCF——出现最多的数
- 关于hive查询与MapReduce并行计算
- 【图论】[NOIP2014]联合权值
- 判断100-200之间有多少素数 并输出所有素数
- oracle位图索引
- Spring AOP之aop:config
- 微信公众平台开发的价值-微信开发教程1