LinuxSir.cn,穿越时空的Linuxsir!

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

6.9 Glibc-2.3.6出错!(LFS liveCD启动,根据LFS-book-6.2)

[复制链接]
发表于 2007-6-2 09:57:43 | 显示全部楼层 |阅读模式
6.9 Glibc-2.3.6出错!     我是在VMware中用LFS liveCD启动,根据LFS-book-6.2做的。  重新试了几次都出下面这个错误。

cc1:error:unrecognized command line option "-W1,"
Execution of gcc failed!
The script has found some problems with your installation!
Please read the FAQ and the README file and check the following:
- Did you change the gcc specs file (neccessary after upgrading from
  Linux libc5)?
- Are there any symbolic links of the form libXXX.so to old libraries?
  Links like libm.so -> libm.so.5 (where libm.so.5 is an old library)
are wrong,  libm.so should point to the newly installed glibc file - and
there should be  only one such link (check e.g. /lib and /usr/lib)
You should restart this script from your build directory after you've
fixed all problems!
Btw. the script doesn't work if you're installing GNU libc not as your
primary library!
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/src/glibc-2.3.6`
make: *** [install] Error 2
发表于 2007-6-2 11:20:11 | 显示全部楼层
应该是"-Wl"的问题吧,是小写的"L",而不是123的1 。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-2 16:47:22 | 显示全部楼层
谢谢,这个错误解决了,但现在出来一个新的错误,如下:

/toools/lib/gcc/i686-pc-linux-gnu/4.0.3/../../../../i686-pc-linux-gnu/bin/ld::No such file
Execution of gcc failed!
The script has found some problems with your installation!
Please read the FAQ and the README file and check the following:
- Did you change the gcc specs file (neccessary after upgrading from
Linux libc5)?
- Are there any symbolic links of the form libXXX.so to old libraries?
Links like libm.so -> libm.so.5 (where libm.so.5 is an old library)
are wrong, libm.so should point to the newly installed glibc file - and
there should be only one such link (check e.g. /lib and /usr/lib)
You should restart this script from your build directory after you've
fixed all problems!
Btw. the script doesn't work if you're installing GNU libc not as your
primary library!
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/src/glibc-2.3.6`
make: *** [install] Error 2


但是,我运行
#cd /tools/i686-pc-linux-gnu/bin
#ls|grep "ld"
ld
ld-old

不是有这个ld吗? 怎么回事呢??
回复 支持 反对

使用道具 举报

发表于 2007-6-2 18:39:21 | 显示全部楼层
既然已经 chroot 了。
运行一次检查 host 的那个脚本,看一下。
必要时 find /tools -name xxx ,之后做个符号链接到目标。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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