Jason, Thanks for this quick answer. Le mercredi 04 janvier 2012 à 18:36 -0700, [email protected] a écrit : > > But it went wrong with gcc-4.6.1 : > > > > Franck Chuiton <[email protected]>
> Anyways... you're supposed to be logged in as the user "lfs" for this > part and the environement variables $LFS should point to /mnt/lfs/ > Right, I forgot to mention that I derived a bit from the book. The user I create is named franck and the directory $LFS points to is /mnt/LFS. I don't think it is such a big deal but I will do it anyway as said in the book (user lfs and directory /mnt/lfs) just to be sure. Did it. Went further down but still not to the end of it. Will check the config.log tomorrow. And will try to find out what I was doing wrong before. Thanks again. See you. > BASH CODE SNIPPET ------------------------------BEGIN > > #------------------------------------------------------------------------------ > echo COMPILE: gcc-4.6.1 > #------------------------------------------------------------------------------ > cd $LFS/sources/gcc-4.6.1 > tar -jxf $LFS/lfs7/Jegas/downloads/mpfr-3.1.0.tar.bz2 > rm -R mpfr > mv -v mpfr-3.1.0 mpfr > tar -jxf $LFS/lfs7/Jegas/downloads/gmp-5.0.2.tar.bz2 > rm -R gmp > mv -v gmp-5.0.2 gmp > tar -zxf $LFS/lfs7/Jegas/downloads/mpc-0.9.tar.gz > rm -R mpc > mv -v mpc-0.9 mpc > patch -Np1 -i ../gcc-4.6.1-cross_compile-1.patch > mkdir -v ../gcc-build > cd ../gcc-build > ../gcc-4.6.1/configure \ > --target=$LFS_TGT --prefix=/tools \ > --disable-nls --disable-shared --disable-multilib \ > --disable-decimal-float --disable-threads \ > --disable-libmudflap --disable-libssp \ > --disable-libgomp --disable-libquadmath \ > --disable-target-libiberty --disable-target-zlib \ > --enable-languages=c --without-ppl --without-cloog \ > --with-mpfr-include=$(pwd)/../gcc-4.6.1/mpfr/src \ > --with-mpfr-lib=$(pwd)/mpfr/src/.libs > make > make install > ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | sed > 's/libgcc/&_eh/'` > #------------------------------------------------------------------------------ > > > > BASH CODE SNIPPET ------------------------------END > > > > I know there is a lot THERE but I hope it helps you out. > NOTE: I had trouble with GMP before - and this CODE has my > fix. I'm referring to how there are tar commands opening files and > moving them > before the GCC actually compiles. > > I HOPE This is helpful somewhat. > > --Jason > > > > -- Franck Chuiton <[email protected]> -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
