Compiling the compiler

Since release 4.3.0, the GNU compiler collection requires GMP and MPFR to compile the compiler. Instead of compiling these prerequirements before compiling gcc, it is simpler to create links to the sources inside the GNU CC source tree:

tar xjf gcc-core-4.4.2.tar.bz2
tar xjf gmp-4.3.1.tar.bz2
tar xjf mpfr-2.4.1.tar.bz2
cd gcc-4.4.2
ln -s ../gmp-4.3.1 gmp
ln -s ../mpfr-2.4.1 mpfr
cd ..
mkdir gcc-4.4.2-object
cd gcc-4.4.2-object
../gcc-4.4.2/configure
make
make install

Links: