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

Dan Nicholson dbn.lists at gmail.com
Sun Aug 6 07:24:18 PDT 2006


On 8/6/06, Mag. Leonhard Landrock <1977-Hamlet at gmx.at> wrote:
>
> 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)

This is a major issue. Whatever gcc you're using has hardcoded the
location of ld-linux.so.2 somewhere it doesn't exist. Indeed, you will
never be able to create executables. Almost sounds like you already
did the Ch. 5 toolchain adjustment before glibc in /tools exists.

Why don't you try the above again with:

$ gcc -v -Wl,--verbose SOMEFILE.c

That should tell you a lot more information about what gcc and
binutils are doing.

--
Dan



More information about the lfs-support mailing list