This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building an xscale cross compiler


On Wed, Aug 28, 2002 at 08:39:52PM -0400, Johnathan Davis wrote:
> build binutils:
> binutils> ../binutils/configure --target=xscale-elf --prefix=/gcc3_install
> binutils> make all install

 There are missing steps here (see below).
 
> build gcc
> gcc3_build> ../gcc304/configure --target=xscale-elf --prefix=/gcc3_install
> gcc3_build> make all install
> 
> This invariably results in the following error:
> 
> checking whether the C compiler (/gcc3_build/gcc/xgcc -B/gcc3_build/gcc/ 
> -B/gcc3_install/xscale-elf/bin/ -B/gcc3_install/xscale-elf/lib/ -isystem 
> /gcc3_install/xscale-elf/include -g -O2 ) works... no
> configure: error: installation or configuration problem: C compiler cannot 
> create executables.
> make: *** [configure-target-libiberty] Error 1
> 
> So I guess its trying to execute a binary called 'xgcc' that is unable to 
> execute on an x86 machine. 

No. If you try to execute that command "by hand" (ie outwith
the 'make') you'll see that it works. I bet you didn't
install your headers and libraries for your target in
/gcc3_install, after installing binutils, and xgcc is
failing because it doesn't find crt0.o (the startup file for
your configuration).

> What am I missing/failing to configure correctly?

Probably the headers+libraries for your target. That depends
on the board and the OS you use. (And probably falls out of
my knowledge, too).

HTH,
Yves


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]