Hi folks,
I've been trying to compile GPC on my NetBSD/sparc 1.5.2 system. Unfortunately it fails with a bunch of 'undefined reference' errors for calls to libc functions.
Here are a few snips of the output from make. If anyone could suggest a fix, I'd be very grateful.
bash-2.05$ uname -a NetBSD helios 1.5.2 NetBSD 1.5.2 (GENERIC) #0: Wed Aug 22 04:33:09 CST 2001 toor@proxima:/usr/src/sys/arch/sparc/compile/GENERIC sparc
bash-2.05$ make make all-recursive Making all in intl Making all in lib Making all in makeinfo gcc -DIN_GCC -DHAIFA -g -O2 -DHAVE_CONFIG_H -o cccp cccp.o cexp.o intl.o prefix.o version.o mbchar.o obstack.o ../libiberty/libiberty.a /usr/lib/crt0.o: In function `___start': /usr/lib/crt0.o(.text+0xf8): undefined reference to `main' cccp.o: In function `safe_read': /usr/tmp/gcc-2.95.2/gcc/cccp.c(.text+0x224): undefined reference to `_read' /usr/tmp/gcc-2.95.2/gcc/cccp.c(.text+0x238): undefined reference to `___errno' cccp.o: In function `safe_write': /usr/tmp/gcc-2.95.2/gcc/cccp.c(.text+0x280): undefined reference to `_write' /usr/tmp/gcc-2.95.2/gcc/cccp.c(.text+0x294): undefined reference to `___errno' cccp.o: In function `eprint_string': /usr/tmp/gcc-2.95.2/gcc/cccp.c(.text+0x2d8): undefined reference to `_(short, (void))'
<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>
/usr/tmp/gpc-build/gcc/obstack.c(.text+0x510): undefined reference to `_(short, (void))' /usr/tmp/gpc-build/gcc/obstack.c(.text+0x514): undefined reference to `_fputs' collect2: ld returned 1 exit status *** Error code 1
Stop. *** Error code 1
Stop.
Regards,
Philip.