On Tue, Mar 20, 2018 at 04:13:16PM +0200, James wrote:
> 2018-03-20 0:58 GMT+02:00, Ken Moffat <zarniwh...@ntlworld.com>:
> > On Mon, Mar 19, 2018 at 11:06:08PM +0200, Кирилл wrote:
> >> At the chapter 6.7.1 when i do 'make mrproper' it says, that gcc not
> >> found. But before i passed all tests successfully. And already was
> >> trying starting from beginning 2 times(!), but it doesn't help. I was
> >> making all directly, as written in the book. I was also watching
> >> through the mailing list and tried to find the sollution it, but also
> >> did not help.
> >> I was trying to do so: ln -sv /tools/lib/ld-linux-x86-64.so.2
> >> /lib/ld-linux-x86-64.so.2
> >> But also did not help.
> >
> > You are right at the start of doing things in chroot.  This suggests
> > that something is either missing from the build of chapter 5, or
> > else linked to a library on the host system.
> >
> > You have not said what the exact error message was when you tried to
> > run 'make mrproper' but -
> >
[...]
> >
> > We need more information, repeatedly starting again is not the
> > answer.
> >
> 
> Thank you very much for your answer.
> 
> First of all, when I do 'make mrproper' I get this output:
> 
> (lfs) root:/sources/linux-4.15.10# make mrproper
> ./scripts/gcc-version.sh: line 26: /tools/bin/gcc: No such file or directory
> ./scripts/gcc-version.sh: line 27: /tools/bin/gcc: No such file or directory
> ./scripts/gcc-version.sh: line 26: /tools/bin/gcc: No such file or directory
> ./scripts/gcc-version.sh: line 27: /tools/bin/gcc: No such file or directory
> make[2]: gcc: Command not found
>   CLEAN   arch/x86/include/generated

OK.  There are various reports of this on google over the years.
I think something went wrong in pass 2 of binutils or pass 2 gcc.

In particular, the sanity check at the end of pass 2 gcc.
> 
> 2) Yes, I made fresh source for each build
> 
> 3) type -pa gcc
> 
>     gives me:
> 
>     /tools/bin/gcc
> 
> 4) ldd /tools/bin/gcc
> 
>     gives me this:
> 
>    linux-vdso.so.1 (0x00007fff111a3000)
>    libc.so.6 => /tools/lib/libc.so.6 (0x00007f4985200000)
>    /lib64/ld-linux-x86-64.so.2 => /tools/lib64/ld-linux-x86-64.so.2
> (0x00007f49855b4000)

I think you said you had made a symlink for lid-linux, but that it
did not help.  That suggests the sanity check at the end of pass 2
gcc did not give the right answer.

ĸen
-- 
Truth, in front of her huge walk-in wardrobe, selected black leather
boots with stiletto heels for such a barefaced truth.
                                     - Unseen Academicals
-- 
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