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

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

时间:2008-09-27

来源:互联网

我在ubuntu 8.04下作LFS 6.2
在6.9 Glibc,
运行grep Error glibc-check-log,显示:
代码:
make[2]: [/sources/glibc-build/posix/annexc.out] Error 1 (ignored)
然后我接着运行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
请问问题出在哪?
谢谢!

作者: zongtongyi   发布时间: 2008-09-27

你应该用LFS6.3比较好,因为我很有经验,可以帮你解决一切问题,包括ALFS(自动编译LFS)哇哈哈!
建议用官方的LIVECD开展工作,不要用原来的UBUNTU。因为UBUNTU的包都是预编译装上去的,采用的是很通用的选项,谁知道什么地方设置有问题有可能会让你OVER?这也就是一切从源码开始才最清楚的原因。

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

推測可能是 Ubuntu 8.04 裡的 gcc 過新,但 LFS-6.2 裡的 glibc 過舊?做 LFS-6.3 行不?

Btw,我不是很理解,據以往的情況,用 Ubuntu 做 LFS/CLFS 遇到問題都比較多,但用 Debian unstable 卻會順利(再次證明 Ubuntu != Debian)!

作者: d00m3d   发布时间: 2008-09-28

我用的最新的live-cd, 也出现了这个问题? 请问该怎么办? 是忽略还是怎么啊?
谢谢!

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

安装是有错误肯定就不能忽略的
check时有错误不用怎么管他
安装好后检查strings /lib/ld-linux.so.2,看输出中是否包含:
/etc/ld.so.cache
strings /sbin/ldconfig | grep etc,看输出中是否包含:
/etc/ld.so.cache
/etc/ld.so.conf

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

在邮件列表里有这样的回答:

Please ignore, found the solution here:
http://archives.linuxfromscratch.org...ry/050585.html


Another solution would be to ignore the output above. It makes absolutely no sense for LFS because the test program is built with not-yet-adjusted toolchain, i.e. against glibc in /tools. As you can see with readelf -l /tmp/test-prgXXXXXX, the interpreter is /tools/lib/ld-linux.so.2.

--
Alexander E. Patrakov

作者: cq007   发布时间: 2009-04-15