I am building U-Boot for my embedded ARM9 target. The build is done using Linux Redhat 9 running on a PC.
When I installed my GNU C compiler, I did: ../gcc-$GCC_VER/configure --target=$TARGET --with-newlib
--prefix=$PREFIX --with-gnu-as --with-gnu-ld --nfp make all make install
I want the compiler to generate floating point library calls instead of using the hardware FP.
I get this error at the end of the U-Boot link:
arm-unknown-elf-ld -Bstatic -T /home/dchou/atmel/u-boot-1.0.0/board/at91rm9200dk/u-boot.lds -Ttext
0x21f00000 $UNDEF_SYM cpu/at91rm9200/start.o \ --start-group board/at91rm9200dk/libat91rm9200dk.a cpu/at91rm9200/libat91rm9200.a lib_arm/libarm.a fs/jffs2/libjffs2.a fs/fdos/libfdos.a fs/fat/libfat.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a lib_generic/libgeneric.a -L /usr/local/arm/lib/gcc-lib/arm-unknown-elf/3.3.2 -lgcc --end-group \ -Map u-boot.map -o u-boot arm-unknown-elf-ld: ERROR: /usr/local/arm/lib/gcc-lib/arm-unknown-elf/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 /usr/local/arm/lib/gcc-lib/arm-unknown-elf/3.3.2/libgcc.a(_udivsi3.o) arm-unknown-elf-ld: ERROR: /usr/local/arm/lib/gcc-lib/arm-unknown-elf/3.3.2/libgcc.a(_umodsi3.o) uses hardware FP, whereas u-boot uses software FP File in wrong format: failed to merge target specific data of file /usr/local/arm/lib/gcc-lib/arm-unknown-elf/3.3.2/libgcc.a(_umodsi3.o) arm-unknown-elf-ld: ERROR: /usr/local/arm/lib/gcc-lib/arm-unknown-elf/3.3.2/libgcc.a(_dvmd_tls.o) uses hardware FP, whereas u-boot uses software FP File in wrong format: failed to merge target specific data of file /usr/local/arm/lib/gcc-lib/arm-unknown-elf/3.3.2/libgcc.a(_dvmd_tls.o) make: *** [u-boot] Error 1Help! Dennis