LFS Version 6.2 - Binutils-2.16.1 - Pass 1 - compilation fails

Mag. Leonhard Landrock 1977-Hamlet at gmx.at
Sun Aug 6 04:47:50 PDT 2006


First of all thanks for the helpful answer!

Am Samstag, 5. August 2006 18:50 schrieb Vladimir A. Pavlov:
> On Saturday 05 August 2006 18:03, Mag. Leonhard Landrock wrote:
> > checking whether the C compiler (gcc  ) works... no
> > configure: error: installation or configuration problem: C compiler
> > cannot create executables.
> > make: *** No targets specified and no makefile found.  Stop.
> > make: *** No rule to make target `install'.  Stop.
> > make: *** ld: No such file or directory.  Stop.
> > make: *** ld: No such file or directory.  Stop.
>
> Try to compile something simple yourself with 'gcc SOMEFILE.c' using the
> compiler that "cannot create executables" and look at the following output.
> In the case of an error the output will be helpful.
>
> For example, you can use the following file as SOMEFILE.c
> SOMEFILE_BEGIN
> int main () {}
> SOMEFILE_END

lfs at veneto:/media/sdb3/sources$ cat >  SOMEFILE.c << "EOF"
int main () {}
EOF
lfs at veneto:/media/sdb3/sources$ gcc SOMEFILE.c
/tools/bin/ld: warning: ld-linux.so.2, needed by /lib/libc.so.6, not found 
(try using -rpath or -rpath-link)
/lib/libc.so.6: undefined reference to `_rtld_global at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `__libc_enable_secure at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `__libc_stack_end at GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_rtld_global_ro at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_out_of_memory at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `___tls_get_addr at GLIBC_2.3'
/lib/libc.so.6: undefined reference to `_r_debug at GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_argv at GLIBC_PRIVATE'
collect2: ld returned 1 exit status

Compiing "SOMEFILE.c" works in my "normal" environment (as user "leo").

> --
> Nothing but perfection
> pv

Leonhard.



More information about the lfs-support mailing list