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

Eleanore Boyd cara117 at cox.net
Sat Aug 25 08:10:21 PDT 2012


On 8/25/2012 10:02 AM, Hadi wrote:
>
> 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 box:
>
> 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)
>
> /usr/bin/ld
>
> 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.
>
> Hadi
>
>
>
If /tools is in the path, then all subdirectories are also in the path. 
Binutils primarily contains the assembler and linker needed by GCC to 
build assembler portions of any code.

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


More information about the lfs-support mailing list