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

William A. Gatliff bgat@saturn.billgatliff.com
Sat Jan 5 05:59:00 GMT 2002


Try the updated FAQ at http://billgatliff.com

b.g.

On Fri, Jan 04, 2002 at 04:07:28PM +0100, Jacob Tjornholm wrote:
> 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:
> binutils-2.11.2
> gcc-3.0.3
> glibc-2.2.4
> 
> The very newest versions, as you see. I am following the guide in the
> CrossGCC FAQ:
> http://www.objsw.com/CrossGCC/FAQ-4.html
> 
> 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
> ________________________
> Jacob Tjornholm
> Systems Engineer
> Cryptomathic A/S
> Kannikegade 14, 3.
> DK-8000 Aarhus C
> tel. +45 8613 9020
> www.cryptomathic.com
> ________________________
> 
> 
> 
> 
> ------
> Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
> 

-- 
Bill Gatliff
bgat@billgatliff.com

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list