Wednesday, April 7, 2010

Setting Up Fedora 12 i386 Machine To Compile/ Build GCC 4.5

Since I've been working on a CDOT machine running Fedora 12 on x86_64 architecure, I decided to try this on a i386 architecure machine. So I grabbed a machine installed Fedora 12 & updated it with the updates.

After everything is setup, I downloaded the gcc trunk again and tried to configure with the following syntax:

./configure --prefix=/home/bchao/gcc/dist --disable-multilib


Again, because I haven't installed the libraries needed to compile, I got the following error

configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations. Source code for these libraries can be found at
their respective hosting sites as well as at
ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
http://gcc.gnu.org/install/prerequisites.html for additional info. If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files. They may be located in separate packages.

So again, I had to install the development packages for those packages, I entered the following syntax to get them installed

yum install gmp-devel mpfr-devel libmpc libmpc-devel

After installing the dependencies needed to compile, I issued the configure syntax and it worked like a charm.

So now, I issued the following command, and I will wait for for about 2 hours for gcc 4.5 to compile.

Hope it works out

0 comments:

Post a Comment