Do I need CLFS ?

Thiago Padilha tpadilha84 at gmail.com
Sun Sep 19 06:54:42 PDT 2010


  Hi,

  My current architeture is x86_64 and I need to build for i686, my question
is : Do I need to follow the CLFS book?
  I already started LFS, whenever theres a reference to '$(uname
-m)-lfs-linux-gnu' I use  'i686-lfs-linux-gnu' instead. So my $LFS_TGT is
set correctly and everything is working until gcc pass 2 (chapter 5). I get
the following error when compiling(notice that I'm not using the /tools
prefix) :

/home/thiago/lfs/build-system/packages/lfs-toolchain/tools/x86_64-unknown-linux-gnu/bin/ld:
skipping incompatible
/home/thiago/lfs/build-system/packages/lfs-toolchain/tools/lib/libc.a when
searching for -lc
/home/thiago/lfs/build-system/packages/lfs-toolchain/tools/x86_64-unknown-linux-gnu/bin/ld:
cannot find -lc
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.so] Error 1
make[2]: Leaving directory
`/home/thiago/lfs/build-system/packages/lfs-toolchain/src/gcc-build/x86_64-unknown-linux-gnu/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory
`/home/thiago/lfs/build-system/packages/lfs-toolchain/src/gcc-build'
make: *** [all] Error 2

  Before binutils pass 2 I had the the 'i686-lfs-linux-gnu' directory under
my tools tree(I guess it was being used so far). After it I also have
'x86_64-unknown-linux-gnu' directory, and it seems gcc tries to use its
tools on pass 2, thus giving me the error. Any help is appreciated.

  Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20100919/fc698e81/attachment.html>


More information about the lfs-support mailing list