configure: error: installation or configuration problem: C compiler cannot create executables.

Kai Ulrich kaiu at gmx.de
Sun Feb 11 03:53:05 PST 2007


Hallo

I just try to compile binutils-2.16.1 under hostsystem ubuntu 6.10 and 
lfs Version 6.2

See book
5. Constructing a Temporary System
5.3. Binutils-2.16.1 - Pass 1

By running configure script, I got this mistake :

lfs at frunk:/mnt/lfs/binutils-build$ ./binutils-2.16.1/configure 
--prefix=/tools --disable-nls
creating 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.


Friendly regards
Kai

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:1809: checking for gcc
configure:1922: checking whether the C compiler (gcc  ) works
configure:1938: 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 1933 "configure"
#include "confdefs.h"

main(){return(0);}


Installed Packaged :

bash, version 3.1.17(1)-release
Binutils: version 2.17
bzip2,  Version 1.0.3, 15-Feb-2005.
Coreutils:  5.96
diff (GNU diffutils) 2.8.1
GNU find Version 4.2.27
GNU Awk 3.1.5
gcc (GCC) 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
GNU C Library development release version 2.4,
grep (GNU grep) 2.5.1
gzip 1.3.5
Linux version 2.6.17-11-generic (gcc version 4.1.2
GNU Make 3.81
patch 2.5.9
GNU sed Version 4.1.5
tar (GNU tar) 1.15.91




More information about the lfs-support mailing list