Error compiling Ch. 5 - Binutils- - pass 1

Joel Miller cheeziologist at
Sat Apr 16 01:08:00 PDT 2005

Chakkaradeep C C wrote:
> configure:2310: checking for gcc
> configure:2326: found /tools/bin/gcc
> configure:2336: result: gcc
> configure:2580: checking for C compiler version
> configure:2583: gcc --version </dev/null >&5
> ../glibc-2.3.4-20040701/configure: line 2584: /tools/bin/gcc: No such
> file or directory

GCC was was not compiled correctly in chapter five. My guess from this 
output is that the gcc in /tools/bin is linked against host libraries, 
which of course don't exist once you are in the chroot. Recompile gcc 
from the instructions in chapter five, then re-enter the chroot and try 
chapter six again.

Registered LFS User 6929
Registered Linux User 298182

More information about the lfs-support mailing list