|
|
lfs@ubuntu-dp:/mnt/lfs/sources/binutils-build$ ../binutils-2.15.94.0.2.2/configure --prefix=/tools --disable-nls
loading cache ./config.cache
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
checking build system type... i686-pc-linux-gnulibc1
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
lfs@ubuntu-dp:/mnt/lfs/sources/binutils-build$ gcc
gcc: no input files
?????
GCC是3.4。4.0我也试过,同样的问题。
gcc的权限是755。这也没问题阿。
所以查看了config.log文件,发现这个问题:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:595: checking host system type
configure:616: checking target system type
configure:634: checking build system type
configure:689: checking for a BSD compatible install
configure:742: checking whether ln works
configure:766: checking whether ln -s works
configure:1798: checking for gcc
configure:1911: checking whether the C compiler (gcc ) works
configure:1927: gcc -o conftest conftest.c 1>&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 1922 "configure"
#include "confdefs.h"
main(){return(0);}
找不到 crt1.o,
接着又找到提示
On Feb 28, 2001, Richard Dybowski <rdybowski@btinternet.com> wrote:
> /usr/bin/ld: cannot open crt1.o: No such file or directory
Install glibc-devel
> added the flag -L/usr/i386-glibc20-linux/lib so that the linker could
> locate the files
-L is for libraries, not object files. In the case of crt files,
-B/usr/i386-glibc20-linux/lib/ (note the trailing slash) helps.
怎么找到crt1.o文件
网上glibc-devel皆为rpm。
怎么办? |
|