|
我是参考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的正确安装在第六章很重要啊,我还不敢继续下去。 |
|