http://wiki.osdev.org/GCC_Cross-Compiler
Only thing is I'm doing this on a raspberry pi. Bin utils works and is installed.
Now at this step :
Code: Select all
cd $HOME/src
# If you wish to build these packages as part of gcc:
mv libiconv-x.y.z gcc-x.y.z/libiconv # Mac OS X users
mv gmp-x.y.z gcc-x.y.z/gmp
mv mpfr-x.y.z gcc-x.y.z/mpfr
mv mpc-x.y.z gcc-x.y.z/mpc
mkdir build-gcc
cd build-gcc
../gcc-x.y.z/configure --target=$TARGET --prefix="$PREFIX" --disable-nls --enable-languages=c,c++ --without-headers
make all-gcc #FAILS HERE ################################
make all-target-libgcc
make install-gcc
make install-target-libgcc
It fails with this as the last line:
Code: Select all
make: *** [all-gmp] Error 2
So, can I maybe build and install gmp, mpc and mpfr separately? I will try this whole thing again on my CentOS machine and see how it goes.