gcc 5.2.0编译错误
2015-11-19 10:23
471 查看
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for long long int... yes
checking for intmax_t... yes
checking for intptr_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for unsigned long long int... yes
checking for uintmax_t... yes
checking for uintptr_t... yes
checking for int64_t underlying type... long long
configure: error: error verifying int64_t uses long long
make[2]: *** [configure-stage1-gcc] Error 1
make[2]: Leaving directory `/home/sjarvis/dev/gcc/srcdir'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/sjarvis/dev/gcc/srcdir'
make: *** [all] Error 2
错误是因为没有装g++ 导致,安装g++可解决
g++ -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -o build/genmddeps \
build/genmddeps.o build/read-md.o build/errors.o ../build-x86_64-unknown-linux-gnu/libiberty/libiberty.a
/tools/bin/ld: this linker was not configured to use sysroots
collect2: error: ld returned 1 exit status
make[3]: *** [build/genmddeps] Error 1
make[3]: Leaving directory `/opt/mylinux/build/gcc-build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/opt/mylinux/build/gcc-build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/opt/mylinux/build/gcc-build'
make: *** [bootstrap] Error 2
编译binutils时,configure参数没有指定--with-sysroot=XXX(你要存放使用的目录)导致,重新编译安装binutils
checking for int32_t... yes
checking for int64_t... yes
checking for long long int... yes
checking for intmax_t... yes
checking for intptr_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for unsigned long long int... yes
checking for uintmax_t... yes
checking for uintptr_t... yes
checking for int64_t underlying type... long long
configure: error: error verifying int64_t uses long long
make[2]: *** [configure-stage1-gcc] Error 1
make[2]: Leaving directory `/home/sjarvis/dev/gcc/srcdir'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/sjarvis/dev/gcc/srcdir'
make: *** [all] Error 2
错误是因为没有装g++ 导致,安装g++可解决
g++ -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -o build/genmddeps \
build/genmddeps.o build/read-md.o build/errors.o ../build-x86_64-unknown-linux-gnu/libiberty/libiberty.a
/tools/bin/ld: this linker was not configured to use sysroots
collect2: error: ld returned 1 exit status
make[3]: *** [build/genmddeps] Error 1
make[3]: Leaving directory `/opt/mylinux/build/gcc-build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/opt/mylinux/build/gcc-build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/opt/mylinux/build/gcc-build'
make: *** [bootstrap] Error 2
编译binutils时,configure参数没有指定--with-sysroot=XXX(你要存放使用的目录)导致,重新编译安装binutils
相关文章推荐
- Linux服务器上监控网络带宽的18个常用命令
- dispatcherservlet详解
- Oracle多行记录合并/连接/聚合字符串的几种方法
- java版模拟浏览器下载百度动漫图片到本地。
- SQL查询除了某一列的其他列
- android screen monitor 进行真机屏幕展示
- Android编程实现WebView全屏播放的方法(附源码)
- JavaScript操作Select
- TestLink学习四:TestLink1.9.13使用说明
- 开发基本路线框架
- 在字符串中找出连续最长的数字串
- KVC一句话搞定赋值
- centos6.4安装sphinx(php)
- 版本控制
- cmake入门
- ubuntu12.04 MX28调试记录
- Swift 中类的初始化器与继承
- java 每日习题(五) 下落的小球
- sharepoint 通过数据库擅长列表项
- 融云会话里添加附加信息