Error while re-adjusting toolchain (6.12)
dbn.lists at gmail.com
Tue Jun 20 16:44:40 PDT 2006
On 6/20/06, Michael Limiero <mike5713 at gmail.com> 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
> 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'
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/libc.so.6? It should be trying to use
/tools/lib/libc.so.6. Still, that doesn't exactly explain why it
can't find ld-linux.so.2. Does /tools/lib/ld-linux.so.2 exist?
More information about the lfs-support