On Tue, Feb 21, 2017 at 05:51:03PM -0700, Devin Duren wrote:
> I am using LFS version 7.10.
> In Section 6.7 after chrooting I attempt to run make for the linux
> headers, but receive the following error output from make:
>     make: gcc: Command not found
> 
> and another, more specific error:
>     ./scripts/gcc-version.sh: line 25: /tools/bin/gcc: No such file or
> directory
>     ./scripts/gcc-version.sh: line 26: /tools/bin/gcc: No such file or
> directory
> 
> After checking the  /tools/bin/ directory, I can see gcc within.
> 
> Checking my PATH variable via "echo $PATH" outputs:
> /bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
> 
> On further investigation, I opened a new terminal, logged in as my
> standard user (not root) and was able to run the gcc version listed
> under /tools/bin/gcc.
> 
> I can run other binaries in the /tools/bin/ directory, like grep. Any
> guidance on where I may have gone wrong would be appreciated.
> 
> -Devin

Sounds as if /tools/bin/gcc is linked against a library on the host
system.  In chroot, ldd /tools/bin/gcc might help.  Also running
that outside chroot.

If that is the case, you ought to also check other pckages. If most
things are ok, then I guess you probably stopped the build and on
one occasion you didn't set the environment fully when you resumed.

There are alternative possibilities, such as a file getting deleted,
but those don't usually happen without the builder doing something
he or she can remember when it bites.

ĸen
-- 
`I shall take my mountains', said Lu-Tze. `The climate will be good
for them.'     -- Small Gods
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to