+ -
当前位置:首页 → 问答吧 → LFS-6.3 Chapter6.9 Glibc在make install的时候出错

LFS-6.3 Chapter6.9 Glibc在make install的时候出错

时间:2008-10-25

来源:互联网

我下的是最新的livecd.
lfslivecd-x86-6.3-r2145.iso

在第二次安装glibc的时候

运行make install,结果出现错误
代码:
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.3.6'
make: *** [install] Error 2
请问问题出在哪?
该怎么解决呢?
谢谢!

作者: scutan   发布时间: 2008-10-25

直接用脚本的?
工具链调整部分都已经核实安装无误?

作者: lofeng410   发布时间: 2008-10-25

难道是在
代码:
sed -i \
's|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=/lib/ld-linux.so.2 -o|' \
 scripts/test-installation.pl
的时候那个
-Wl 写成了 -W1 ?

作者: scutan   发布时间: 2008-10-25

引用:
作者: lofeng410
直接用脚本的?
工具链调整部分都已经核实安装无误?
我是手动敲的命令. 好像就是把
-Wl 看成了-W1了.

那我现在怎么办? 重新编译一次glibc吗?

作者: scutan   发布时间: 2008-10-25

引用:
作者: scutan
难道是在
代码:
sed -i \
's|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=/lib/ld-linux.so.2 -o|' \
 scripts/test-installation.pl
的时候那个
-Wl 写成了 -W1 ?
这个我就不清楚了,但是Wl,那个l是字母

我是按照手册中来的 是没有问题的
BTW:俺太菜,看不懂那个脚本,只好找简单容易明白的来

作者: lofeng410   发布时间: 2008-10-25

引用:
作者: scutan
我是手动敲的命令. 好像就是把
-Wl 看成了-W1了.

那我现在怎么办? 重新编译一次glibc吗?
删除glibc-build和glibc-***,然后重新来过。这样应该可以,我没有试验过,不敢确信

作者: lofeng410   发布时间: 2008-10-25

引用:
作者: lofeng410
这个我就不清楚了,但是Wl,那个l是字母

我是按照手册中来的 是没有问题的
BTW:俺太菜,看不懂那个脚本,只好找简单容易明白的来
谢谢, 我重新编译一次glibc.

作者: scutan   发布时间: 2008-10-25

命令再打一次就好了

作者: 红头猪   发布时间: 2008-10-27