LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 543|回复: 0

[lfs求助]关于虚拟根环境下的gcc安装

[复制链接]
发表于 2003-11-12 17:03:48 | 显示全部楼层 |阅读模式
我是参考lfs5.0稳定版文档来安装lfs的,机器配置如下:
赛扬2 533MHZ+256M内存+RedHat8.0

第五章结束后,文档并没有提及曾安装过两次的gcc以及glibc源码目录和编译目录的处理,我不敢贸然删除它们。在第六章,我只好照着文档重新把它们的源码包解压缩并覆盖它们。这样行吗?

在第六章安装gcc3.3.1时,文档中提及:
patch -Np1 -i ../gcc-3.3.1-suppress-libiberty.patch
第二个补丁是禁止安装gcc中的libiberty,因为我们将使用binutils里提供的库

而make的输出中有这么一段话
checking whether the C compiler ( /mnt/lfs/sources/gcc-build/gcc/xgcc -B/mnt/lfs/sources/gcc-build/gcc/ -B/tools/i686-pc-linux-gnu/bin/ -B/tools/i686-pc-linux-gnu/lib/ -isystem /tools/i686-pc-linux-gnu/include -O2 -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make: *** [configure-target-libiberty] Error 1
接着make check
=== g++ Summary ===

# of expected passes                7733
# of unexpected failures        244
# of unexpected successes        1
# of expected failures                210
# of unresolved testcases            6
# of untested testcases                9  
# of unsupported tests                14

=== gcc Summary ===

# of expected passes                21579
# of unexpected failures        2
# of expected failures                65
# of unsupported tests                85

=== libstdc++-v3 Summary ===

# of expected passes                453
# of unexpected successes        24
# of expected failures                4

这样的结果正确吗?也就是说,编译成功吗?毕竟gcc的正确安装在第六章很重要啊,我还不敢继续下去。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表