Problems compiling GPC on NetBSD/sparc

Philip Plant philipp at demon.net
Tue Aug 27 16:55:20 CEST 2002


On Tue, Aug 27, 2002 at 03:52:53PM +0200, Marco van de Voort wrote:
> > 
> > <snip>
> > 
> > `___divdi3'
> > /tmp/sky/share/bison.simple(.text+0xafc): undefined reference to
> > `___udivdi3'
> > /tmp/sky/share/bison.simple(.text+0xb70): undefined reference to
> > `___moddi3'
> > /tmp/sky/share/bison.simple(.text+0xb8c): undefined reference to
> > `___umoddi3'
> > 
> > <snip>
> 
> These are normal on *BSD afaik. Libgcc is not automatically linked IIRC,
> and probably needs explicitely a -lgcc

I've tried adding -lgcc to the CFLAGS line in my Makefile, but it still
fails in the same way.  Any ideas, please?

Cheers,

Philip.




More information about the Gpc mailing list