LinuxSir.cn,穿越时空的Linuxsir!

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

1 个附件 求助:LFS6.1.1,第六章 6.11. Glibc-2.3.4编译不过去!!!

[复制链接]
发表于 2006-4-11 08:53:13 | 显示全部楼层 |阅读模式
我从昨晚到现在一直被一个问题给绊住了,请各位给予帮助。
问题:在第六章6.11 安装glibc-2.3.4时,
root:/sources/glibc-build# ../glibc-2.3.4/configure --prefix=/usr \
>     --disable-profile --enable-add-ons \
>     --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc
这一步在运行时提示如下错误:

。。。。。。
checking for a BSD-compatible install... /tools/bin/install -c
checking whether ln -s works... yes
checking for gcc... gcc
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
在config.log中:

。。。。。。
configure:2644: gcc -V </dev/null >&5
../glibc-2.3.4/configure: line 2645: /tools/bin/gcc: No such file or directory
configure:2647: $? = 127
configure:2651: checking for suffix of object files
configure:2672: gcc -c   conftest.c >&5
../glibc-2.3.4/configure: line 2673: /tools/bin/gcc: No such file or directory
configure:2675: $? = 127
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2689: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.


盼回复!!!
发表于 2006-4-11 09:16:19 | 显示全部楼层
估计是工具链制作出了问题.
回复 支持 反对

使用道具 举报

发表于 2006-4-11 15:20:11 | 显示全部楼层
重编吧,我也是跟你一样在这步出错的(虽然出错的是不能计算long double)
回复 支持 反对

使用道具 举报

发表于 2006-4-11 19:21:05 | 显示全部楼层
Post by youbest
估计是工具链制作出了问题.


你认为大家为啥工具链总是出错呢,难道检查的时候没检查出来?还是根本没检查?。。。。
回复 支持 反对

使用道具 举报

发表于 2006-4-11 20:28:05 | 显示全部楼层
不知道呀,我觉得输入错误的可能性比较大,也许是还不太明白如何检查.
回复 支持 反对

使用道具 举报

发表于 2006-4-11 23:47:26 | 显示全部楼层
应该是许多人根本就没检查.
还有些人 make install 出错都不知道, 还说我明明装了 xxx ,怎么没有?

我真的希望大家能细心一点.

工具链可以用我的脚本检查一下.
http://www.linuxsir.cn/bbs/showthread.php?t=244102
回复 支持 反对

使用道具 举报

发表于 2006-4-12 02:40:37 | 显示全部楼层
那是基础不行,如果 make install 出错都不知道。。这就没办法了。。

我 LFS 那么多次(包括第一次 LFS 5.0)都没出这些问题,不明白。
回复 支持 反对

使用道具 举报

发表于 2006-4-12 09:33:49 | 显示全部楼层
似乎是strip的那一步引起问题。起初我的工具链正常,strip后就出了这个问题。
回复 支持 反对

使用道具 举报

发表于 2006-4-12 09:41:07 | 显示全部楼层
。。看来我当年的选择还是很英明的,,,第五章从来不strip。。 。。

其实关于这个我也写在了 “[迈出第一步] 初学者请进,看完再开始 LFS” 里边的,不过似乎没人读的说。呵呵。
回复 支持 反对

使用道具 举报

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

本版积分规则

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