Do I need CLFS ?

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


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

skipping incompatible
/home/thiago/lfs/build-system/packages/lfs-toolchain/tools/lib/libc.a when
searching for -lc
cannot find -lc
collect2: ld returned 1 exit status
make[2]: *** [] Error 1
make[2]: Leaving directory
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory
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: <>

More information about the lfs-support mailing list