[uClibc 0001486]: powerpc: neither soft_float nor kernel emulated fpu working

bugs at busybox.net bugs at busybox.net
Wed Sep 5 07:54:16 UTC 2007


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1486 
====================================================================== 
Reported By:                busyben
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   1486
Category:                   Architecture Specific
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             09-05-2007 00:54 PDT
Last Modified:              09-05-2007 00:54 PDT
====================================================================== 
Summary:                    powerpc: neither soft_float nor kernel emulated fpu
working
Description: 
I always get "illegal instruction" errors when trying to printf(%f,
some_float_or_double). Since I use a embedded powerpc without fpu, I
compiled uclibc with soft-float enabled (-msoft-float). But this does not
seems to work.

Therefore I tried the floating point kernel-emulation in the linux kernel,
which gives lots of warnings during compiling (see below 1.). After that,
there is no illegal instruction anymore, but printf(%f,...) gives always
0.147484 (see 2.)

I am using OpenWrt with uClibc 0.9.28.2, Linux Kernel 2.6.22.1 together
with a PowerPC 405 hard core in a Xilnix VirtexII Pro FPGA XC2VP30.

Is this a but in uClibc's soft-float AND/OR the kernels ppc/math-emu? What
can I do to get fp-requiring applications running? 
If this helps: when I try to run rrdtool, I also get an error about symbol
'rintf' (see 3.), although I compiled everything with option -fPIC.
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-05-07 00:54  busyben        New Issue                                    
09-05-07 00:54  busyben        Status                   new => assigned     
09-05-07 00:54  busyben        Assigned To               => uClibc          
09-05-07 00:54  busyben        File Added: float-test.c                     
======================================================================




More information about the uClibc-cvs mailing list