But I am getting these errors
Code: Select all
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
Copies of these libraries' source code 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 and/or MPFR 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.
Code: Select all
./configure --target=$TARGET --prefix=$PREFIX --disable-nls --enable-languages=c,c++ --without-headers
Code: Select all
./configure --target=$TARGET --prefix=$PREFIX --disable-nls --enable-languages=c,c++ --without-headers --with-gmp=/usr/lib/libgmp.so --with-mpfr=/usr/lib/libmpfr.so
Note building binutils was rather easy to build if I use the 2.20 version.
I am using the gcc-4.3.5 (4.3.x that was suggested on the tutorial of osdev)
So I don't know how to clear up this problem yet.
Note also I don't think this is a big issue but I am compiling gcc and binutils on partition 2 and partition one is where all the programs , lib's ,...etc folders are installed.
The only other thing I can think of is when I did a search for gmp in the /usr/lib folder I have a couple of different options I believe like libgmp.so.3 , libgmp.so.3.5 ,...etc I just chose the libgmp.so and libmpfr.so. But if they are not the right ones please in form.
I can try to reinstall gmp , mpfr but the package manager say's they are already installed.
I see in the error
checking for correct version of gmp.h... no
seems like I need to install or get the correct gmp version. But I don't know what that should be or if I already have it installed somewhere.