On 21/06/2016 22:03, Edgar Alwers wrote:



Am 21.06.2016 um 18:21 schrieb Pierre Labastie:
Actually, what version of LFS were you building? SVN?

The place where /tools/ is added before /lib is in 5.10, GCC Pass 2. it is the long sequence of instructions starting with "for file in". Have you pasted those instructions from the book, or did you recopy them by hand? Make sure you have the line


        SVN-20160611

copy and paste.

Definitly, I do not believe in this case on errors in my work. And I have experience with more than a dozen self built LFS in the last years, without any problems.

OK. Actually, I was wrong, Sorry. "/tools" is added to the programs compiled by gcc, not to gcc itself, by the instructions I mentioned.

But the same instructions in gcc-pass1 allow gcc-pass2 (and binutils-pass2) to be compiled with the linker in /tools...

You may try (outside chroot):

echo 'int main(){}' > dummy.c
/tools/bin/i686-lfs-linux-gnu-gcc dummy.c
readelf -l a.out | grep ': /tools'

And note the result.

Also, another check:
ls -i /tools/bin/i686-pc-linux-gnu-gcc /tools/bin/gcc

to check, that /tools/bin/gcc is linked to the right inode...

Last but not least: do you have the "configure" log from gcc-pass2? If so,
can you check the line beginning with "checking for gcc..."? It should be:
checking for gcc... i686-lfs-linux-gnu-gcc

Regards

Pierre


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