* [ECOS] link errors with mcpu=xscale
@ 2003-04-15 14:48 Jani Monoses
2003-04-16 21:46 ` Jonathan Larmour
0 siblings, 1 reply; 2+ messages in thread
From: Jani Monoses @ 2003-04-15 14:48 UTC (permalink / raw)
To: ecos-discuss
Hi
I had to disable the -mcpu=xscale flag in order to get ecos linked to libgcc.a
while compiling for a PXA target.
gcc 3.2.2 and binutils 2.12.1 configured 'by the book'
with the flag I get errors like this because of different floating point ABI in armv4 and armv5
/usr/local/lib/gcc-lib/arm-elf/3.2.2/../../../../arm-elf/bin/ld: ERROR: /usr/local/lib/gcc-lib/arm-elf/3.2.2/libgcc.a(_clz.o) uses FPA instructions, whereas /home/jani/work/build/pxa/mpc/install/bin/redboot.elf uses VFP instructions
google showed people having similar problems on linux-arm etc
How did Xscale users on this list get this solved since I see the flag is on by default?
thanks
Jani.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] link errors with mcpu=xscale
2003-04-15 14:48 [ECOS] link errors with mcpu=xscale Jani Monoses
@ 2003-04-16 21:46 ` Jonathan Larmour
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2003-04-16 21:46 UTC (permalink / raw)
To: Jani Monoses; +Cc: ecos-discuss
Jani Monoses wrote:
> Hi
> I had to disable the -mcpu=xscale flag in order to get ecos linked to libgcc.a
> while compiling for a PXA target.
> gcc 3.2.2 and binutils 2.12.1 configured 'by the book'
>
> with the flag I get errors like this because of different floating point ABI in armv4 and armv5
>
> /usr/local/lib/gcc-lib/arm-elf/3.2.2/../../../../arm-elf/bin/ld: ERROR: /usr/local/lib/gcc-lib/arm-elf/3.2.2/libgcc.a(_clz.o) uses FPA instructions, whereas /home/jani/work/build/pxa/mpc/install/bin/redboot.elf uses VFP instructions
>
> google showed people having similar problems on linux-arm etc
> How did Xscale users on this list get this solved since I see the flag is on by default?
You need a multilib of libgcc for xscale. The prebuilt GNU tools from
eCosCentric (based on 3.2.1) do this. Or you can use this patch which is
what was used: http://sources.redhat.com/ecos/gcc-3.2.1-arm-multilib.patch
and rebuild yours.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-16 21:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-15 14:48 [ECOS] link errors with mcpu=xscale Jani Monoses
2003-04-16 21:46 ` Jonathan Larmour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).