Building a cross compiler with software floating point

Matthew S. McClintock mattsm@arlut.utexas.edu
Tue Oct 28 20:48:00 GMT 2003


I am trying to build gcc for ARM. I am building GCC with the following
command:

CROSS_COMPILE=arm-linux- ../../src/gcc-3.3.2/configure
--prefix=/home/blasig/omap/tools/ --target=arm-linux --with-cpu=arm9tdmi
--without-fp -nfp --disable-fp --enable-languages=c --with-newlib
--without-headers --disable-shared --disable-threads; make all-gcc

However I am running into a problem that when I try to build a program I
get the following error:

arm-linux-ld: ERROR:
/home/blasig/omap/tools/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_udivsi3.o) uses hardware FP, whereas u-boot uses software FP
File in wrong format: failed to merge target specific data of file
/home/blasig/omap/tools/bin/../lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_udivsi3.o)

Is this error a result of me not including an option for GCC so it
compiles a software floating point libgcc.a? If so, how does one
accomplish this? Or is it an error related to something else?

Thanks for your time
-- 
Matthew S. McClintock <mattsm@arlut.utexas.edu>



More information about the Gcc-help mailing list