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).


I rebuild my crossgcc and glibc without "--without-fp", but the problem is still there.

arm-linux-gcc -v
Reading specs from /pub/arm/lib/gcc-lib/arm-linux/3.2.3/specs
Configured with: ../gcc-3.2.3/configure --prefix=/pub/arm --target=arm-linux --with-local-prefix=/pub/arm --enable-thread=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 -v
Thread model: posix
gcc version 3.2.3

arm-linux-gcc -mcpu=xscale main.c
/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 does not
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 does not
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

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