I'm at the very beginning of my os development.
I tried to build gcc cross-compiler following the GCC Cross-Compiler tutorial on the wiki, but it didn't work.
I used gcc 4.8.1 and binutils 2.23.2 on Linux Mint Olivia 32 bit.
I wrote this shell script:
Code: Select all
#!/bin/sh
export PREFIX=$HOME/opt/cross
export TARGET=i586-elf
export PATH="$PREFIX/bin:$PATH"
cd $HOME/src
mkdir build-binutils
cd build-binutils
../binutils-2.23.2/configure --target=$TARGET --prefix="$PREFIX" --disable-nls
make
make install
cd $HOME/src
# If you wish to build these packages as part of gcc:
mv gmp-5.1.3 gcc-4.8.1/gmp
mv mpfr-3.1.2 gcc-4.8.1/mpfr
mv mpc-1.0.1 gcc-4.8.1/mpc
mkdir build-gcc
cd build-gcc
../gcc-4.8.1/configure --target=$TARGET --prefix="$PREFIX" --disable-nls --enable-languages=c,c++ --without-headers
make all-gcc
make all-target-libgcc
make install-gcc
make install-target-libgcc
Before make all-gcc everything went well, but then I got this errors:
../gcc-4.8.1/gcc/objc/config-lang.in doesn't set $language.
make: *** Nessuna regola per generare l'obiettivo "all-gcc". Arresto.
make: *** Nessuna regola per generare l'obiettivo "all-target-libgcc". Arresto.
make: *** Nessuna regola per generare l'obiettivo "install-gcc". Arresto.
make: *** Nessuna regola per generare l'obiettivo "install-target-libgcc". Arresto.
In English (I'm Italian) it should be something like:
../gcc-4.8.1/gcc/objc/config-lang.in doesn't set $language.
make: *** No rule to generate target "all-gcc". Stop.
make: *** No rule to generate target "all-target-libgcc". Stop.
make: *** No rule to generate target "install-gcc". Stop.
make: *** No rule to generate target "install-target-libgcc". Stop.
I don't understand what went wrong. Can you help me, please?
Thanks,
TeoZec