|
小弟在fedora9下面做lfs6.2,第一次编译gcc的时候就碰到问题了,配置的时候出现下面错误。google了一天没解决,有人说是缺少libc6-dev,可是找不到rpm包,yum也不行,还有人说libc6-dev就是glibc,还是装不起来。
lfs:/mnt/lfs/sources/gcc-4.0.3$ cd gcc-build/
lfs:/mnt/lfs/sources/gcc-4.0.3/gcc-build$ /mnt/lfs/sources/gcc-4.0.3/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
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.
最后又发现个奇怪的现象,我重新回去配置binutils竟然出现了跟配置gcc一样的错误,真是糊涂了,还请大虾们指点啊。。。
lfs:/mnt/lfs/sources/gcc-4.0.3$ cd /mnt/lfs/sources/binutils-2.16.1/binutils-build
lfs:/mnt/lfs/sources/binutils-2.16.1/binutils-build$ /mnt/lfs/sources/binutils-2.16.1/configure --prefix=/tools --disable-nls
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln works... (cached) yes
checking whether ln -s works... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables. |
|