LinuxSir.cn,穿越时空的Linuxsir!

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

LFS6.3-rc2在6.9. Glibc-2.5.1安装出错

[复制链接]
发表于 2007-9-1 21:55:25 | 显示全部楼层 |阅读模式
在etch上进行到6.9. Glibc-2.5.1在make install时出现错误

CC="gcc" /usr/bin/perl scripts/test-installation.pl /sources/glibc-build/
cc1: error: unrecognized command line option "-WL,-dynamic-linker=/lib/ld-linux.so.2"
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 (necessary 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 `/sources/glibc-2.5.1'
make: *** [install] Error 2

不知怎样解决!
希望高手能指点一下!
 楼主| 发表于 2007-9-2 00:16:41 | 显示全部楼层
另在make install 前进行 make check会出现下面的错误:

make[2]: *** [/sources/glibc-build/dlfcn/bug-atexit3.out] Error 1
make[1]: *** [dlfcn/tests] Error 2
make[2]: [/sources/glibc-build/posix/annexc.out] Error 1 (ignored)
make[2]: *** [/sources/glibc-build/nptl/tst-mutex8.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-mutexpi8.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-cond8.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-cancel24.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-cancelx4.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-cancelx5.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-cancelx16.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-cancelx20.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-cancelx21.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-cleanupx4.out] Error 1
make[1]: *** [nptl/tests] Error 2
make: *** [check] Error 2

请大家帮忙看看是那里出了问题!
回复 支持 反对

使用道具 举报

发表于 2007-9-2 08:26:19 | 显示全部楼层
Post by 0626
在etch上进行到6.9. Glibc-2.5.1在make install时出现错误

CC="gcc" /usr/bin/perl scripts/test-installation.pl /sources/glibc-build/
cc1: error: unrecognized command line option "-WL,-dynamic-linker=/lib/ld-linux.so.2"
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 (necessary 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 `/sources/glibc-2.5.1'
make: *** [install] Error 2

不知怎样解决!
希望高手能指点一下!
似乎手册里解释过的,编译前的几行 sed -i 执行了没?

http://www.linuxfromscratch.org/ ... hapter06/glibc.html
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-2 09:46:00 | 显示全部楼层
我是按英文手册执行的,每一步都没有少!
回复 支持 反对

使用道具 举报

发表于 2007-9-14 11:38:38 | 显示全部楼层
“-WL,-dynamic-linker=/lib/ld-linux.so.2”?我觉得应该是“-Wl,-dynamic-linker=/lib/ld-linux.so.2”吧,不知道是不是大小写的问题。
回复 支持 反对

使用道具 举报

发表于 2007-10-28 23:00:32 | 显示全部楼层
我刚刚也遇到了一样的问题,这貌似是个BUG,因为我后来的调整工具链,一点也没错~
回复 支持 反对

使用道具 举报

发表于 2007-12-21 11:20:39 | 显示全部楼层
我也遇到类似问题,不过和楼主不同的是,我是第一次弄LFS,版本是6.1.1
完全按照手册上来的...到6.11 Glibc-2.3.4时操作
make -k check >glibc-check-log 2>&1
grep Error glibc-check-log
发现这样的错误.....
make[2]: [/sources/glibc-build/posix/annexc.out] Error 1 (ignored)
make[2]: *** [/sources/glibc-build/nptl/tst-cancelx4.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-cancelx5.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-cancelx16.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-cancelx17.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-cancelx20.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-cancelx21.out] Error 1
make[2]: *** [/sources/glibc-build/nptl/tst-cleanupx4.out] Error 1
make[1]: *** [nptl/tests] Error 2
make: *** [check] Error 2
查看LFS FAQ没有发现解决方法.....
在google上搜到这来了....
如果不管的话继续执行到make -C ../glibc-2.3.4/linuxthreads/man
则发生这样的错误..
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.4 objdir='pwd' C
make[1]: Entering directory '/sources/glibc-2.3.4'
make[1]: ***No rule to make target 'C'. Stop.
make[1]: Leaving directory '/sources/glibc-2.3.4'
make: *** [C] Error 2
我是一个新手....遇到这样的问题确实是没有辙了....
楼主怎么解决这个问题的,帮帮忙,不吝赐教?谢谢....
回复 支持 反对

使用道具 举报

发表于 2007-12-22 00:34:37 | 显示全部楼层
继续做,不用管它
回复 支持 反对

使用道具 举报

发表于 2008-3-29 16:52:43 | 显示全部楼层
error: unrecognized command line option "-WL,-dynamic-linker=/lib/ld-linux.so.2"

很明显是参数错了,那个 -WL 中的L应该是小写。
这些容易混淆的命令还是直接copy过去的比较好~
回复 支持 反对

使用道具 举报

发表于 2008-3-29 17:08:11 | 显示全部楼层
Post by anbutu;1832513
error: unrecognized command line option "-WL,-dynamic-linker=/lib/ld-linux.so.2"

很明显是参数错了,那个 -WL 中的L应该是小写。
这些容易混淆的命令还是直接copy过去的比较好~

这个设置不了的,是脚本里面生成的。
回复 支持 反对

使用道具 举报

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

本版积分规则

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