I have built LFS a few times (on different raspberry pi platforms - 2b, 3b, zero) and I always noticed that the first pass of binutils and gcc would install in:


then during pass 2 (and maybe others) the new files were installed in:


I thought perhaps this was something to do with building on ARM, so I started a build on a pc and watched the files as they were installed.

pass 1 = $LFS/i686-lfs-linux-gnu

pass 1 = $LFS/i686-pc-linux-gnu

In the final running system, in /usr/bin there are two copies of several files.  These files are c++, g++, gcc, gcc-7.3.0, gcc-ar, gcc-nm, and gcc-ranlib

One copy is just the filenames as I would expect, the other copy has "i686-pc-linux-gnu" prefixed to the beginning of each of the filenames.: i686-pc-linux-gnu-c++, i686-pc-linux-gnu-g++, i686-pc-linux-gnu-gcc, i686-pc-linux-gnu-gcc-7.3.0, i686-pc-linux-gnu-gcc-ar, i686-pc-linux-gnu-gcc-nm, and i686-pc-linux-gnu-gcc-ranlib

During one build I tried to manually edit the makefiles after running ./config to change the i686-pc-linux-gnu to i686-lfs-linux-gnu, but that failed pretty spectacularly.

Is this what is supposed to happen? Can one set be safely removed? Is there a way to ./configure to give pass 2 the same filenames as pass 1?



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?


Reply via email to