LFS-svn chap 6.7 (gcc: No such file or directory)

Ken Moffat zarniwhoop73 at googlemail.com
Sat Sep 4 12:05:17 PDT 2010

2010/9/4 Martin Zajíc <ZAJCA> <zajcaa at gmail.com>:
> Hi, me again
> I have another issue. I'am sure it's my fault but I can't solve it.
> I'am building LFS as my school project and i'am trying write all of it
> in set of bash scripts.
> So I've write scripts for chapter 5 and in chapter 6 I found issue
> that I've do something wrong probably in adjusting toolchain.
> Error is while i'am try build  chapter6 Linux- API Headers
> "make: gcc: Command not found"
> Both test's are OK. Result is       [Requesting program interpreter:
> /tools/lib/ld-linux.so.2]
> but
> readelf -l /tools/bin/gcc |grep interpreter
>      [Requesting program interpreter: /lib/ld-linux.so.2]
> All my scripts are on github.
> http://github.com/zajca/LFS---by-bash-scripts
> Adjusting toolchain is in
> http://github.com/zajca/LFS---by-bash-scripts/blob/master/chap5/linker
> I saw same issue in mailinglist but since I'am doing all in scripts
> it's result always same
> --)

 I can't comment on the *comments* in that script, but
a quick look suggests you are doing the same things as
I do.  So, perhaps the problem is elsewhere.

 We can see that 'make' is apparently found and executable,
but gcc is not.  The first steps are: take a sample of packages
from chapter 5 that come after adjusting the toolchain.  The
purpose is to see if you installed a binary from the package,
and assuming you did, use ldd on the host to see what it links

 Sometimes people accidentally miss one of the packages,
or build it but fail to install it.  Other times, people stop the build,
come back, but do not set things up properly and find that one
or more of hte later packages is mislinked.

 If make is correctly linked, I particularly wonder if you failed
to install pass 2 of gcc.

After tragedy, and farce, "OMG poneys!"

More information about the lfs-support mailing list