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 -
>
> Did you use fresh source for each build (the multiple builds of gcc,
> and g++, and binutils in chapter 5, and now building the linux
> headers) ?
>
> For gcc -
>
> type -pa gcc
>
> In chroot, and on a minimalist LFS system, 'which' does not exist,
> so I'm really saying 'which gcc'.  It should say /tools/bin/gcc.
> Assuming that it does,
>
> ldd /tools/bin/gcc
>
> One or more of these libs is not found ?  If so, think about how you
> built the system.  You did not say why you thought that symlinking
> ld-linux would help, but if you followed everything in the book
> (including the host system requirements) things should just work.
>
> We need more information, repeatedly starting again is not the
> 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
>

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

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)
-- 
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