Sunday, April 4, 2010

Building GCC 4.5 On My Laptop - F12 x86_64

Finally, after re-installing and updating Fedora on my laptop, and installed all the neccessary tools to get rpmbuild working.

So again, I had to grab the trunk from GCC via SVN, this took about 30 mins because of my internet connection at home.

After finally grabbing trunk, I created a backup of the directory so I don't need to constantly keep downloading it if/when I mess up.

Once all the little tasks were completed, I went to the trunk directory and started off with the configure command, and received 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, I had install GMP, MPFR, and MPC on the laptop with the following command

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

After issuing that command, I let it the missing build dependencies were installed. Again, I was met with the same fate as my other builds on India, but it took 2x as long.

0 comments:

Post a Comment