some issues when creating cross compiler
Posted: Sat Nov 02, 2013 4:20 am
So the problem is all in the title. I'm following the tutorial here to build a GCC cross Compiler:
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 :
It fails with this as the last line:
I wish I could give more detail, the whole damn thing took so long and then the power got cut of to the PI. This happened twice and I lost all the detail. I can try again and reproduce it. (But Ive done this twice so far with this same error)
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.
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.