Port-sparc64 archive

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

Re: 32-bit executables on sparc64



On Mon, 11 May 2009 17:21:39 +1000
matthew green <mrg%eterna.com.au@localhost> wrote:

> 
>    Now that gcc accepts -m32 and there are 32-bit libs
>    under /usr/lib/sparc, I'm trying to build a test 32-bit
> executable, but get 'undefined reference' error:
>    
>    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'
>    
>    This is NetBSD-5, am I doing something wrong or this is a bug?
>    
> 
> 
> this should work.
> 
> it does on my 5.99.7 system.
> 
> i'll see about testing netbsd 5.0.  perhaps file a PR.

PR 41406. I can test a patch for NetBSD-5, if anyone knows how to fix
the problem.


Home | Main Index | Thread Index | Old Index