How to enable soft-float support in newlib and gcc toolchains for an i386 target

Mian M. Hamayun
Tue Aug 2 14:50:00 GMT 2011

Hello Everyone,

I am newbie to newlib and gcc toolchains, so my question may be a little 
ambiguous for this forum.

In fact I am trying to build a gcc toolchain with newlib for an i386 
target which doesn't support hw float/mmx instructions. In fact it is a 
virtual machine which I am targeting.
So when I compile my applications with "-msoft-float" flag, I get quite 
a few unresolved symbols.

For Example:
Sources/susan.c:979: undefined reference to `__floatsisf'
Sources/susan.c:979: undefined reference to `__divsf3'
Sources/susan.c:1626: undefined reference to `__subdf3'
Sources/susan.c:1628: undefined reference to `__mulsf3'

So my obvious 'guess' is to rebuild the gcc toolchain and/or newlib 
using "--with-float=soft" and/or "--enable-soft-float" options. But so 
far I haven't been able to build a toolchain that solves this issue.

Any help / pointers in this regard will be greatly appreciated.
Please also point-out if this is not the right forum for this type of 

Best Regards,

-- Mian Muhammad HAMAYUN              Bureau: T422              --
-- Doctorant, TIMA/INPG/SLS           Mob   : +33 6 27 41 18 10 --
-- 46, Avenue Felix Viallet,          Tel   : +33 4 76 57 43 34 --
-- F-38031 Grenoble Cedex FRANCE      Fax   : +33 4 76 57 49 81 --

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3781 bytes
Desc: S/MIME Cryptographic Signature
URL: <>

More information about the Newlib mailing list