Subject: Building groff/coff cross compiler
To: None <port-dreamcast@netbsd.org>
From: Brian Alliet <brian@brian-web.com>
List: port-dreamcast
Date: 03/31/2001 22:23:20
Hi-

By following SAITOH Masanobu instructions
(http://mail-index.netbsd.org/port-dreamcast/2001/02/26/0003.html)  I was
able to setup coff and elf cross compilers for the dreamcast on an i386
netbsd box. I was using the hpcsh snapshot binaries for a while but then
decided to try to rebuild the system using the coff cross compiler. I was
able to get everything build except groff. All the programs that link with
libgroff.a give me something like:

shel-dreamcast-netbsdcoff-gcc   -o addftinfo addftinfo.o guess.o
/usr/src/gnu/usr.bin/groff/libgroff/obj/libgroff.a
/tmp/ccS05v41.o(.data+0x4):ccuq3a0z.c: undefined reference to `global
constructors keyed to main'

The instructions said "It may fail on compiling c++ sources.". (groff is
mostly c++) I don't really need groff on my dc, but I just wanted to get
everything build for the sake of completeness.

Also running the native gcc on the dreamcast (which was compiled as part of
the 'make build' from the netbsd sources) gets me dreamcast /netbsd:
tlb_handler: fatal user fault: va 0x0, spc 0x0, exptype 0x40 (cc1). Is this
a gcc problem or a kernel problem? Is there any way to fix it yet?

If I am not playing a game, or breaking something you get my DCs web server
at http://www.brian-web.com:8080/
Thanks for any help,

-Brian Alliet
brian@brian-web.com