发新话题
打印

第六章--configure glibc时出错

第六章--configure glibc时出错

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下,不能复制出来,我就手工抄了下来。

不知道问题出在哪里呢?

这个LFS是我在构建完临时环境后,因为是VM,就”暂停“即”挂起“一个星期后,现在才又继续下去的。时间问题???不知道问题会不会是出在这里?难道这样的话又得全部重来?      
一步一脚印。。。

TOP

不知道怎么回事,我的/mnt/lfs目录竟然不存在了,由此也不存在了/mnt/lfs/usr/bin/gcc文件,因此找不到gcc。
看来只能重新再来了。
但是这个:
configure : 2361 : checking for gcc
configure : 2377 : found /tools/bin/gcc
configure : 2387 : result:gcc
不正确么?      
一步一脚印。。。

TOP

found /tools/bin/gcc 正确,但glibc的补丁打上了么? (../glibc-2.3.4/configure : line 2635 : /tools/bin/gcc : No such file or directory)      

TOP

当然,补丁已打。
已经重来了,
只是现在没有时间,正在桂林出差。
偷空来上网,HOHO      
一步一脚印。。。

TOP

发新话题