Error while re-adjusting toolchain (6.12)

Dan Nicholson dbn.lists at
Tue Jun 20 16:44:40 PDT 2006

On 6/20/06, Michael Limiero <mike5713 at> wrote:
> I'm following the LFS book for my second time (the first was on a
> different machine), and I got an error. I'm pretty sure I haven't done
> anything differently from the book. I'm on section 6.12, and I got
> this error while doing the sanity test:
> root:/sources# cc dummy.c
> /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld:
> warning:, needed by /lib/, not found (try using
> -rpath or -rpath-link)
> /lib/ undefined reference to `_rtld_global at GLIBC_PRIVATE'

You didn't say what version of LFS you're using.  It's kind of
important because the binutils adjustment has changed.

Anyway, the problem seems to be that ld from binutils has not been
adjusted to look in /tools/lib.  See how it says ld: warning ...
needed by /lib/  It should be trying to use
/tools/lib/  Still, that doesn't exactly explain why it
can't find  Does /tools/lib/ exist?


More information about the lfs-support mailing list