sortie wrote:Also note, to run the cross-compiler, run i686-elf-gcc or i586-elf-gcc - not just 'gcc'. (In a previous post you seemed to say you just ran 'gcc' which isn't your cross-compiler, disregard this if I am mistaken).
Thanks for the info on the i686.
I ran the GCC version your mentioning. I get what you mean by it, and yes that is what I tried. In fact it was in one of my batch file tests. But I also used the regular GCC that was in the cross compiler bin folder. So when I posted the batch file to this thread, that was that particular GCC version. I'll continue to use the one your mentioning from now on. Thanks for the tip.
@ gerryg400
I finally cleaned up that script of yours because it doesn't work. Not sure how you did it when I'm using your same script. Either way, I am to the part of this command : make -j 4 all
I get this error : Makefile:841: recipe for target `all' failed
How did you get around this ? How could you have compiled this with your script with all these errors ? You said you compiled it and it took only 8 minutes. So I am curious how you did it.
This is your script cleaned up :
Code: Select all
#!/bin/sh
export BUILDROOT=$(PWD)/..
export PREFIX=$BUILDROOT/cross-tools/
export TARGET=i586-elf
tar -jxf binutils-2.23.1.tar.bz2
mkdir binutils-build-2.23.1
cd binutils-build-2.23.1
../binutils-2.23.1/configure --target=$TARGET --prefix=$PREFIX --disable-nls
make -j 4 all
make install
cd ..
tar -jxf gcc-4.8.1.tar.bz2
tar -jxf gmp-5.0.2.tar.bz2
mv gmp-5.0.2 gmp
mv gmp gcc-4.8.1
tar -xf mpc-0.9.tar.gz
mv mpc-0.9 mpc
mv mpc gcc-4.8.1
tar -jxf mpfr-2.4.2.tar.bz2
mv mpfr-2.4.2 mpfr
mv mpfr gcc-4.8.1
mkdir gcc-build-$TARGET
cd gcc-build-$TARGET
../gcc-4.8.1/configure --target=$TARGET --prefix=$PREFIX --disable-nls --enable-languages=c,c++ --without-headers
make -j 4 all-gcc
make install-gcc
make -j 4 all-target-libgcc
make install-target-libgcc
cd ..
EDIT UP : Just FYI.. You can see I am using the exact versions of all the files needed as you are.