a newbie problem about "-mcpu=xscale"

kyy yangyuan@wellhope.sh
Sat Mar 13 08:35:00 GMT 2004


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?

the arossgcc was made by myself 
>>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 --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
Thread model: posix
gcc version 3.2.3


More information about the crossgcc mailing list