I recently started learning about operating system. When I got to learn about the basics, I reached here on http://wiki.osdev.org/GCC_Cross-Compiler
Now I am stuck at GCC Cross-Compiler Installation.
I downloaded these packages
1)binutils-2.25.tar.gz
2)cloog-parma-0.16.1.tar.gz
3)gcc-4.9.2.tar.gz
4) gmp-6.0.0a.tar.lz
5)isl-0.12.2.tar.gz
6)mpc-1.0.3.tar.gz
7)mpfr-3.1.2.tar.gz
and I followed these instruction on by Ubuntu 14.04 with pre installed gcc version 4.8.2
Preparation
Code: Select all
export PREFIX="$HOME/opt/cross"
export TARGET=i686-elf
export PATH="$PREFIX/bin:$PATH"
Code: Select all
# If you wish to build these packages as part of binutils:
mv isl-x.y.z binutils-x.y.z/isl
mv cloog-x.y.z binutils-x.y.z/cloog
# But reconsider: You should just get the development packages from your OS.
Code: Select all
mkdir build-binutils
cd build-binutils
../binutils-x.y.z/configure --target=$TARGET --prefix="$PREFIX" --with-sysroot --disable-nls --disable-werror
make
make install
GCC
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
mv isl-x.y.z gcc-x.y.z/isl
mv cloog-x.y.z gcc-x.y.z/cloog
# But reconsider: You should just get the development packages from your OS.
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
make all-target-libgcc
Code: Select all
checking for suffix of object files... configure: error: in `/home/coder/src/build-gcc/i686-elf/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make: *** [configure-target-libgcc] Error 1
How shall I proceed?
I have attached the config.log file.