building non-FPU cross-compiler for ARM

Richard Earnshaw rearnsha@arm.com
Wed Jun 25 21:39:00 GMT 2003


> I tried to build a gcc-3.3 for an "arm-elf" target with binutils-2.13.1 and 
> newlib-1.11.0, each configured with "--nfp" on a x86-host. Though, when 
> compiling a program with "-msoft-float" gcc complains:
> 
The --nfp option to the configure is ignored.  But that doesn't matter 
because an arm-elf configuration *is* soft-float by default.  So there's 
no need to pass -msoft-float when compiling (and doing so reveals the 
problems you are seeing).

> File format not recognized: failed to merge target specific data of file 
> libc.a( [...various...] )
> /arm-elf/bin/ld: ERROR: libgcc.a( [...various...] ) uses hardware FP, whereas 
> [...] uses software FP
> 

This is a long-standing bug to which there is no easy solution that 
doesn't break backwards compatibility... :-(

R.




More information about the Gcc mailing list