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] |
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? > > 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 I see you're using --without-fp. Did you apply a soft-float patch to gcc? Did you compile your glibc with that same compiler? It seems there's a mismatch. You might try building your compiler without the --without-fp option... or using crosstool to build a compiler and matching glibc together. - Dan -- My technical stuff: http://kegel.com My politics: see http://www.misleader.org for examples of why I'm for regime change ------ 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] |