LinuxSir.cn,穿越时空的Linuxsir!

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

configure glibc时出错

[复制链接]
发表于 2006-2-4 22:07:28 | 显示全部楼层 |阅读模式
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 : 2361 : checking for gcc
configure : 2377 : found /tools/bin/gcc
configure : 2387 : result:gcc
configure : 2631 : checking for c compiler version
configure : 2634 : gcc -version </dev/null > &5
../glibc-2.3.4/configure : line 2635 : /tools/bin/gcc : No such file or directory
configure : 2637 : $? = 127
configure : 2639 : gcc -v </dev/null > &5
../glibc-2.3.4/configure : line 2640 : /tools/bin/gcc : No such file or directory
configure : 2642 : $? = 127
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 .....
/* end confdefs.h */
int
main ()
{

        ;
        return 0 ;
}
configure: 2689 : error: cannot compute suffix of object files: cannot compile
See 'config.log' for more details.

因为是在VM下,不能复制出来,我就手工抄了下来。

不知道问题出在哪里呢?怎么办?
发表于 2006-2-4 22:40:10 | 显示全部楼层
木有装gcc
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-5 09:46:52 | 显示全部楼层
但是我在装linux-libc-header和man-pages的时候没问题呀。如果没装gcc,那么我的临时环境应该不能构建完吧?可是已经构建完成了的。
只是有一点。
这个LFS是我在构建完临时环境后,因为是VM,就”暂停“即”挂起“一个星期后,现在才又继续下去的。时间问题???不知道问题会不会是出在这里?难道这样的话又得全部重来?
回复 支持 反对

使用道具 举报

发表于 2006-2-5 09:55:05 | 显示全部楼层
前2个包不需要gcc。

如果用VM的话,这个问题也许你要看看gcc这个文件是否存在。/mnt/lfs/usr/bin/gcc

至于挂起的系统,以前就有人因为这样出问题重来,但是没证明是因为挂起而造成的问题。
回复 支持 反对

使用道具 举报

发表于 2006-2-5 10:47:29 | 显示全部楼层
暂停(挂起)是不会有问题的,我一直就在VM下弄LFS,还没出现过因为暂停而出问题的,VM还是相当稳定的.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-5 11:02:20 | 显示全部楼层
出大问题,不要说gcc这个文件,就连/mnt/lfs目录都不存在了。OK,我关掉VM中的电源,然后从光盘启动(lfslivecd)然后设置完所有环境后,再ls /mnt/lfs/usr/bin,只有一个perl。可是我的临时环境已经完成的了,如果没有gcc,临时环境怎么能完成呢?不解。
看来是真的出大问题了的。
只能重来了~~~
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-5 11:07:57 | 显示全部楼层
configure : 2361 : checking for gcc
configure : 2377 : found /tools/bin/gcc
configure : 2387 : result:gcc

这个不是正确的么?
回复 支持 反对

使用道具 举报

发表于 2006-2-5 12:05:59 | 显示全部楼层
怀疑是你没有正确的 ln。就是一开始建立 tools 的时候。

看看主系统下 /tools 里边有什么。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-5 19:30:16 | 显示全部楼层
已经重来了,莽撞了。
回复 支持 反对

使用道具 举报

发表于 2006-2-6 11:06:38 | 显示全部楼层
我的 问题根你的一模一样,没有你的那么严重,/tools里也是正常的,/tools/bin里也有GCC

下面我该怎么办?
回复 支持 反对

使用道具 举报

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

本版积分规则

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