+ -
当前位置:首页 → 问答吧 → LFS6.3-rc2在6.9. Glibc-2.5.1安装出错

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

时间:2007-09-02

来源:互联网

在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

不知怎样解决!
希望高手能指点一下!

作者: 0626   发布时间: 2007-09-02

另在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

请大家帮忙看看是那里出了问题!

作者: 0626   发布时间: 2007-09-02

引用:
作者: 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/lfs/...r06/glibc.html

作者: d00m3d   发布时间: 2007-09-02

我是按英文手册执行的,每一步都没有少!

作者: 0626   发布时间: 2007-09-02

“-WL,-dynamic-linker=/lib/ld-linux.so.2”?我觉得应该是“-Wl,-dynamic-linker=/lib/ld-linux.so.2”吧,不知道是不是大小写的问题。

作者: 红烧鸟   发布时间: 2007-09-14

我刚刚也遇到了一样的问题,这貌似是个BUG,因为我后来的调整工具链,一点也没错~

作者: stahine   发布时间: 2007-10-29

我也遇到类似问题,不过和楼主不同的是,我是第一次弄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
我是一个新手....遇到这样的问题确实是没有辙了....
楼主怎么解决这个问题的,帮帮忙,不吝赐教?谢谢....

作者: cashkan   发布时间: 2007-12-21

继续做,不用管它

作者: d00m3d   发布时间: 2007-12-22

error: unrecognized command line option "-WL,-dynamic-linker=/lib/ld-linux.so.2"

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

作者: anbutu   发布时间: 2008-03-29

引用:
作者: anbutu
error: unrecognized command line option "-WL,-dynamic-linker=/lib/ld-linux.so.2"

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

作者: 地球发动机   发布时间: 2008-03-29

引用:
作者: 地球发动机
这个设置不了的,是脚本里面生成的。
这个是上面的那个 sed 设置的!!!

作者: anbutu   发布时间: 2008-03-30

创建 glibc 时,make check出现以下错误,
make[2]:***[/mnt/lfs/sources/glibc-build/dlfcn/bug-atexit3.out] error 1

不管它继续make install 最终如图:
不知是哪里错了。

或者还是可以继续,不明白.请帮忙说说看。
上传的图像
glibc_make_install.PNG (22.0 KB, 16 次查看)

作者: life_31   发布时间: 2008-11-27

glibc是库文件,它安装的是lib库,而根本没有安装任何的二进制文件。所以你用glibc命令当然会出错了。
你已经安装成功,继续下一步吧。

我发现楼上的比较可爱,装binutils时就用binutil命令来测试,装glibc就用glibc命令来测试,好玩,哈哈。其实每个包安装了哪些内容,手册里都列出来了,不过都放到了第6章。你只要仔细看看就不会乱测试了。

作者: ti8er   发布时间: 2008-11-27

说了 N 多遍的话,就是没有人听:请详细阅读 LFS 手册才动手!

手册会告诉你每个包装了什麽!

作者: d00m3d   发布时间: 2008-11-27

3d兄,我详细看了一次《制作一个Linux发布难吗》,然后就开始作.
已经改错,详细看lfs手册.谢谢

谢谢ti8er.

还需要你们继续多多指导.再谢.

作者: life_31   发布时间: 2008-11-28

lz,请确定一下 etch 中 perl 的版本,如果是 perl-base,务必升级到 perl。

LFS手册上的宿主需求只是指明要 perl,但 debian 基本系统默认安装的是 perl-base,不符合要求的。

另,请确定您生成的临时系统中的perl(5.28. Perl)是完整版本。

作者: 聚焦深空   发布时间: 2008-11-28