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

0 views
Skip to first unread message

羽衣甘蓝

unread,
Nov 14, 2008, 8:15:26 AM11/14/08
to Linux-release
在ubuntu 8.04下作LFS 6.2
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.

解决方法:
重新安装下glibc可以解决问题
此外:

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

Reply all
Reply to author
Forward
0 new messages