5.5. GCC-4.3.3 - Pass 1

katot at jp.fujitsu.com katot at jp.fujitsu.com
Tue Mar 17 00:49:51 PDT 2009


Hello all.

This is my first E-amil to lfs-dev.
I from Japan, and please call katot.

I have a question.
According this page,
http://www.linuxfromscratch.org/lfs/view/development/chapter05/gcc-pass1.html

we only need 

tar -jxf ../mpfr-2.4.1.tar.bz2
mv mpfr-2.4.1 mpfr
tar -jxf ../gmp-4.2.4.tar.bz2
mv gmp-4.2.4 gmp

for compile gcc-4.1.1.

But I try compile gcc, I can't complete to configure.
I think we need compile first gmp and mpfr.


I propose to add the following. 

gmp-4.2.4:
./configure --build=$LFS_TGT --prefix=/tools
make
make install

mpfr-2.4.1:
./configure --target=$LFS_TGT --prefix=/tools --with-gmp-include=/tools/include --with-gmp-lib=/tools/lib
make
make install

And change gcc configure options.

../gcc-4.3.3/configure \
    --target=$LFS_TGT --prefix=/tools \
    --disable-nls --disable-shared --disable-multilib \
    --disable-decimal-float --disable-threads \
    --disable-libmudflap --disable-libssp \
    --disable-libgomp --enable-languages=c \
    --with-gmp-include=/tools/include --with-gmp-lib=/tools/lib \
    --with-mpfr-include=/tools/include --with-mpfr-lib=/tools/lib

Best Regards.





More information about the lfs-dev mailing list