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



From: Yves Rutschle <y.rutschle@indigovision.com>
To: Johnathan Davis <maxfischer_81@hotmail.com>
CC: crossgcc@sources.redhat.com
Subject: Re: Building an xscale cross compiler
Date: Thu, 29 Aug 2002 14:47:57 +0100

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).
foo% 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 test.c

/gcc3_build/gcc/xgcc: Exec format error. Wrong Architecture.

Even with this being the case, do you still think it's likely to be a library issue?

> 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

thanks

-j

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.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


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