Building an i586-linux -> arm-elf cross compiler

Jacob Tjornholm
Fri Jan 4 07:41:00 GMT 2002

Hello all,

I am trying to build a toolchain for compiling for ARM from an i586 Mandrake
Linux system.

I am using the following versions:

The very newest versions, as you see. I am following the guide in the

Building binutils works fine. I am comfiguring like this:
"../binutils-2.11.2/configure --target=arm-elf --host=i586-mandrake-linux --
build=i586-mandrake-linux --prefix=/raid/home/jtj/cross -v "
Building: "make all"
and installing: "make install"

"i586-mandrake-linux" is the output of gcc -dumpmachine

The troubles begin when trying to build gcc. I invoke "configure" and "make"
in exactly the same way as with binutils.

Configuring works fine, and the build run fine for a while. I then get the
following error:

checking whether the C compiler
(/raid/home/jtj/build/build-gcc/gcc/xgcc -B/raid/home/jtj/build/build-gcc/gc
c/ -B/raid/home/jtj/cross/arm-elf/bin/ -B/raid/home/jtj/cross/arm-elf/lib/ -
isystem /raid/home/jtj/cross/arm-elf/include -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.

A number of lines up is the line: "Configuring in arm-elf/libiberty"

I am generally confused about which assembler/compiler is used at each step
of the toolchain build process. Maybe that's why I am missing something
obvious here :-/

Any ideas?

Thanks in advance,
Jacob Tjornholm
Systems Engineer
Cryptomathic A/S
Kannikegade 14, 3.
DK-8000 Aarhus C
tel. +45 8613 9020

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list