NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-sparc64/41406: gcc - 32-bit executable generation is broken on sparc64



>Number:         41406
>Category:       port-sparc64
>Synopsis:       gcc - 32-bit executable generation is broken on sparc64
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-sparc64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 11 13:15:00 +0000 2009
>Originator:     RM
>Release:        5
>Organization:
>Environment:
NetBSD ultra10 5.0 NetBSD 5.0 (GENERIC) #2: Sun May 10 16:41:05 BST 2009  
root@ultra10:/opt/obj.sparc64/sys/arch/sparc64/compile/GENERIC sparc64
>Description:
Gcc should be able to generate 32-bit executables on sparc64 when passed -m32 
flag. It fails with 'undefined reference' error.
>How-To-Repeat:
ultra10$ cat test.c
#include <stdio.h>
int main(void)
{
        printf("test\n");
}
ultra10$ gcc -Os -mcpu=ultrasparc -m32 test.c
/usr/lib/../lib/sparc/libc.so: undefined reference to `_strtold'
>Fix:



Home | Main Index | Thread Index | Old Index