GCC cross compile tool

Link to this post 24 Mar 13

I am trying to create a GCC cross compile tool for arm usin GCC-4.8.0 but I am getting build errors. I need some guidance with creating the cross compile tool chain.

Ubuntu 12.10

Steps I followed:

1: Download GCC-4.8 from and untar it

2: From GCC-4.8 folder I downloaded the prerequisities with command below

3: then from a build folder I configured it using below command
../gcc-4.8.0/configure --target=arm-eabi \
--with-mode=thumb --enable-languages=c,c++ \

4: make

but the build fails.

Can anyone point me to the correct configuration to create a cross compiler for ARM A9/A15

Link to this post 24 Mar 13

I think seeing the error messages that appeared after you executed the make command might tell where your problem is. You'll need to post them in order for anyone to help you.

Link to this post 26 Mar 13

I am to build GCC with these commands, but make install fails in GCC

export CC="gcc -m64"
export CXX="g++ -m64"

mkdir binutils-build
cd binutils-build

../binutils-2.23.52/configure --prefix=/home/karthik/Learn/arm-binutils --target=arm-eabi --enable-interwork --enable-multilib

make all install

export PATH="$PATH:/home/karthik/Learn/arm-binutils/bin"

cd gcc-4.8.0


cd ..

mkdir gcc-arm-cross
cd gcc-arm-cross

../gcc-4.8.0/configure \
--target=arm-eabi \
--host=x86_64-linux-gnu --build=x86_64-linux-gnu \
--with-gmp-version=4.3.2 --with-mpfr-version=2.4.2 --with-gcc-version=4.7.2 \
--disable-nls --disable-shared --disable-multilib \
--disable-decimal-float --disable-threads \
--disable-libmudflap --disable-libssp \
--disable-libgomp --enable-languages=c
Attached all log files

make install fails with following log:

chmod 644 /usr/local/lib/gcc/arm-eabi/4.8.0/libgcc.a
arm-eabi-ranlib /usr/local/lib/gcc/arm-eabi/4.8.0/libgcc.a
/bin/bash: arm-eabi-ranlib: command not found
make[2]: *** [install-leaf] Error 127
make[2]: Leaving directory `/home/karthik/Learn/gcc-arm-cross/arm-eabi/libgcc'
make[1]: *** [install-target-libgcc] Error 2
make[1]: Leaving directory `/home/karthik/Learn/gcc-arm-cross'
make: *** [install] Error 2

Link to this post 26 Mar 13

Attached log

Link to this post 26 Mar 13

attached log

Link to this post 26 Mar 13

attached log

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board