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: a newbie problem about "-mcpu=xscale"


On Sat, 13 Mar 2004, kyy wrote:

> > hi:
> >     I am trying to build a program for px262, so I add a option "-mcpu=xscale" just as below:
> >
> > >>arm-linux-gcc -mcpu=xscale main.c
> > //main.c is a hellworld program, and I got some error information:
> >
> > /pub/arm/bin/arm-linux-ld: ERROR: /pub/arm/lib/gcc-lib/arm-linux/3.2.3/crtend.o uses FPA instructions, whereas a.out uses VFP instructions
> > File format not recognized: failed to merge target specific data of file /pub/arm/lib/gcc-lib/arm-linux/3.2.3/crtend.o
> > /pub/arm/bin/arm-linux-ld: ERROR: /pub/arm/lib/gcc-lib/arm-linux/3.2.3/../../../../arm-linux/lib/crtn.o uses FPA instructions, whereas a.out uses VFP instructions
> > File format not recognized: failed to merge target specific data of file /pub/arm/lib/gcc-lib/arm-linux/3.2.3/../../../../arm-linux/lib/crtn.o
> > collect2: ld returned 1 exit status
> >
> > anyone can tell me why?

I agree with Dan, check the list archives. I have posted several times
on the matter. One quick advice I can give here is to use at least
binutils 2.14: earlier versions generate quite confusing information
about FP usage.

> > Configured with: ../gcc-3.2.3/configure --host=i686-pc-linux-gnu --prefix=/pub/arm --target=arm-linux --with-local-prefix=/pub/arm --enable-threads=posix --with-gnu-as --with-gnu-ld --with-as=/pub/arm/bin/arm-linux-as --with-ld=/pub/arm/bin/arm-linux-ld --with-headers=/pub/arm/arm-linux/include/ --with-libs=/pub/arm/arm-linux/include/ --enable-languages=c,c++ --with-cpu=xscale --without-fp -v

Unless you have good reaons to configure softfp, you should not do so
for the time being. Proper softfp is experimental at best and not
widely spread (read: if you need bin. compatibility, don't do this).

Regards,
Marius

-- 
Marius Groeger <mgroeger@sysgo.com> | Project Manager

SYSGO Real-Time Solutions AG | Embedded and Real-Time Software
Am Pfaffenstein 14 | 55270 Klein-Winternheim, Germany

Voice: +49-6136-9948-0 | FAX: +49-6136-9948-10
www.sysgo.com | www.elinos.com | www.osek.de | www.imerva.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]