"C compiler cannot create executables" a repeated question!

Dan Nicholson dbn.lists at gmail.com
Thu Nov 1 19:13:04 PDT 2007


On 11/1/07, Bijan Hoomand <hoomand at gmail.com> wrote:
>
>  lfs at bijan-desktop> cat config.log
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> configure:611: checking host system type
> configure:632: checking target system type
> configure:650: checking build system type
> configure:705: checking for a BSD compatible install
> configure:758: checking whether ln works
> configure:782: checking whether ln -s works
> configure:1867: checking for gcc
> configure:1980: checking whether the C compiler (gcc -B/usr/bin/  ) works
> configure:1996: gcc -B/usr/bin/ -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 1991 "configure"
> #include "confdefs.h"
>
>  main(){return(0);}
> #############################################
>
> As you can see with the highlighted text, it say there's no /usr/bin/ld
> directory, what's that directory and should I just create it?! I

What it's saying is that ld can't find crt1.o, which is part of glibc.
I think on Debian/Ubuntu, that's the libc-dev package, or something.

--
Dan



More information about the lfs-support mailing list