Re: Do I need CLFS ?
On Sun, 19 Sep 2010 10:54:42 -0300 Thiago Padilha wrote: > 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 agree with Bruce, the simplest (and in my opinion, the best) way forward is to start from a 32 bit host. Perhaps the lfs live CD or the distro of your choice. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Do I need CLFS ?
Thiago Padilha wrote: > 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? The easiest way to build for i686 on x86_64 hardware is to get a 32-bit version of a commercial distro, install, and build LFS normally from that. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Do I need CLFS ?
>On Sun, 19 Sep 2010 10:54:42 -0300 >Thiago Padilha wrote: > > 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. You need to use CLFS. In this listing, the top (preceding command) is missing so I can only speculate on the exact error, but it looks as if you built some binary code (for i686, presumably) and tried to link it to x86_64 libraries. -- -Aleksandar Kuktin -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Do I need CLFS ?
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. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page