build gcc4.1.2两个错误及修正
来源:互联网 发布:网易博客知乎 编辑:程序博客网 时间:2024/06/02 04:03
两个错误及修正
1
然而从这里问题就出现了:
编译了一段时间后出错,其错误信息如下:
WARNING: `makeinfo' is missing on your system. You should only need it if
you modified a `.texi' or `.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy `make' (AIX,
DU, IRIX). You might want to install the `Texinfo' package or
the `GNU make' package. Grab either from any GNU archive site.
make[3]: *** [fastjar.info] 错误 1
make[3]:正在离开目录 `/home/ssm/gcc-obj/fastjar'
make[2]: *** [all] 错误 2
make[2]:正在离开目录 `/home/ssm/gcc-obj/fastjar'
make[1]: *** [all-fastjar] 错误 2
make[1]:正在离开目录 `/home/ssm/gcc-obj'
make: *** [all] 错误 2
解读错误与解决方法:
(主要原因是GCC的版本过高)
1:全英文的这部分说的是你的系统中缺少相应版本的makeinfo软件。
因为gcc4.1以上的版本需要makeinfo的版本为4.2或更高。
所以输入命令行:
makeinfo --version 想查看makeinfo的版本。结果得到了以下信息:
The program 'makeinfo' is currently not installed. You can install it by typing:
sudo apt-get install texinfo
按照提示输入命令,问题得到解决。
2:本机使用的Texinfo是4.11版本,
出现此错误的原因也在于configure文件中texinfo对该版本不支持,可以在解压gcc4.1.1文件夹中的configure文件里找到
以下语句
# For an installed makeinfo, we require it to be from texinfo 4.2 or
# higher, else we use the "missing" dummy.
if ${MAKEINFO} --version \
| egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])' >/dev/null 2>&1; then
:
else
MAKEINFO="$MISSING makeinfo"
fi
;;
其中4\.[2-9]|[5-9]表示的是支持4.2-4.9之间的几个版本,所以需要自己添加4\.[1-9][0-9]*,以支持4.11版本。即把'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])'编辑成'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|4\.[1-9][0-9]*|[5-9])'后保存,编译通过。
2
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make[4]: *** [32/crtbegin.o] Error 1
make[4]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make[3]: *** [extra32] Error 2
make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make: *** [bootstrap] Error 2
在CC="gcc -B/usr/bin/" ../gcc-4.1.2/configure --prefix=/tools --enable-languages=c
后加 --disable-multilib
- build gcc4.1.2两个错误及修正
- arm-linux-gcc4.4.3 交叉编译环境搭建&错误修正 fedora 19(KDE)
- GCC4.6.1安装及错误解决(完美)
- Ubuntu16.04安装mongodb及错误修正
- 错误修正
- SQL Server连接中的常见错误及修正办法
- Query 对ie6的版本检测错误及修正方法
- ndk-build常见错误及解决办法汇总
- GM_Close错误修正
- Link2001错误修正草案
- 错误与修正
- udp 10054错误修正
- ORA-07445错误修正
- 作业错误修正
- ajaxFileUpload中的错误修正
- ubuntu 错误修正
- MySQL++ gcc4.6.1 Ubuntu编译错误解决
- llvm Build error of pthread with gcc4.6
- asp.net 中,什么是div?
- 黑马程序员-java的网络编程
- QT,QT SDK, QT Creator 区别
- 错误码、异常和断言
- lastIndexof(".")
- build gcc4.1.2两个错误及修正
- 页面跳转后禁止后退
- 换不同ffmpeg SDK版本后出错
- mysql 5.5.15编码导致数据库中写入汉字出错的解决方法
- void
- GTI展会后对游戏的看法
- 数据库连接工具软件: Aqua Data Studio 8.0.7
- jQuery 基础知识
- 对数据库的测试 - 表名为null的情况