bugAVR C Runtime Library - Bugs: bug #18169, multiple definition of __fixsfsi

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #18169: multiple definition of __fixsfsi

Submitter:  None
Submitted:  Wed 01 Nov 2006 06:56:21 AM UTC
   
 
Category:  Library Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Assigned to:  joerg_wunsch
Percent Complete:  0% Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  None
Fixed Release:  None

Wed 01 Nov 2006 07:54:20 AM UTC, comment #1: 

Duplicate for bug #3485.

Just link with -lm for the time being.

Joerg Wunsch <joerg_wunsch>
Group administrator
Wed 01 Nov 2006 06:56:21 AM UTC, original submission:  

Forwarding Debian bug #394231 from Stephan Walter <stephan@walter.name>, the problem presists in v 1.4.5:

Compiling the following program with avr-gcc gives an error about
multiple definition of __fixsfsi


// program code starts here - put it in bug.c
#include <stdlib.h>
int main()
{
        double foo = atof("1.0");
        return (int) foo;
}
// program code ends here


$ avr-gcc bug.c
/usr/lib/gcc/avr/4.1.0/../../../../avr/lib/libc.a(fixsfsi.o): In
function `__fixsfsi':
../../../libm/fplib/fixsfsi.S:57: multiple definition of `__fixsfsi'
/usr/lib/gcc/avr/4.1.0/libgcc.a(_sf_to_si.o):: first defined here
$


Compiling the same program with the native gcc target (i486-linux-gnu)
works fine. The problem may also be with the gcc-avr package. Or am I
doing something wrong?


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-11-01 joerg_wunsch StatusNone Duplicate
    Assigned toNone joerg_wunsch
    Open/ClosedOpen Closed
2006-11-01 None Carbon-Copy- Added -unavailable-

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code