[lfs-support] lfs tool chain technique LFS-7.1

Hadi haiye1018 at 163.com
Sat Aug 25 08:02:30 PDT 2012

Hi Emerson,

Thank your feedback, Emerson. 

I think I should correct you first. After binutils-2.22-Pass1 in Chapter 5
LFS 7.1, binutils are NOT picked up from the /tools directory:

PATH= PATH=/tools/bin:/bin:/usr/bin

In /tools/bin, there is only $LFS_TGT-* tools as following in my X86 virtual

lfs:/mnt/lfs$ ls tools/bin/

i686-lfs-linux-gnu-addr2line  i686-lfs-linux-gnu-elfedit
i686-lfs-linux-gnu-ld       i686-lfs-linux-gnu-ranlib

i686-lfs-linux-gnu-ar         i686-lfs-linux-gnu-gcc
i686-lfs-linux-gnu-ld.bfd   i686-lfs-linux-gnu-readelf

i686-lfs-linux-gnu-as         i686-lfs-linux-gnu-gcc-4.6.2
i686-lfs-linux-gnu-nm       i686-lfs-linux-gnu-size

i686-lfs-linux-gnu-c++filt    i686-lfs-linux-gnu-gcov
i686-lfs-linux-gnu-objcopy  i686-lfs-linux-gnu-strings

i686-lfs-linux-gnu-cpp        i686-lfs-linux-gnu-gprof
i686-lfs-linux-gnu-objdump  i686-lfs-linux-gnu-strip

Or we can use command "which is ld", it shows that ld is the host's:

          lfs:/mnt/lfs$ which is ld

which: no is in (/tools/bin:/bin:/usr/bin)


Although in /tools/i686-lfs-linux-gnu/ there is binutils (ar/ld), but
/tools/i686-lfs-linux-gnu is not in the PATH.

So it is not easy to understand "Binutils is installed first because the
configure runs of both GCC and Glibc perform various feature tests on the
assembler and linker to determine which software features to enable or
disable." and the tool chain constructing process.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20120825/7b2ab60e/attachment.html>

More information about the lfs-support mailing list