Subject: Re: Successful cross-build and boot of dreamcast.
To: Brian Alliet <brian@brian-web.com>
From: Bill Squier <groo@old-ones.com>
List: port-dreamcast
Date: 04/26/2002 20:20:35
On Fri, Apr 26, 2002 at 08:13:24PM -0400, Brian Alliet wrote:
> On Friday, April 26, 2002, at 07:45 PM, Bill Squier wrote:
> I did the same thing, took a few minor changes to get everything happy, 
> but it did compile, just didn't run. Either I did something wrong, or 
> there was some bug that got fixed. It looks like its working now. I'll 

Many bugs in the toolchain have been fixed in the last 2 weeks.

> [...] One last question, then I'll stop 
> bothering you :) Does the native compiler work? (that is, can you 
> compile stuff on the dc itself) Not that its really needed, but cross 
> compiling can be a pain (for stuff not in the netbsd source tree).

No, but I don't think it's the compiler's fault.  I think it's the sh3 pmap.
For example, look at this excerpt from a native build attempt:

[...]
configure: creating ./config.status
config.status: creating buildmake.sh
cc  -O -D_PATH_DEFSHELLDIR="/bin" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -DMAKE_BOOTSTRAP -I/usr/src/tools/make/../../usr.bin/make -c /usr/src/tools/make/../../usr.bin/make/arch.c
In file included from /usr/include/machine/endian.h:3,
                 from /usr/include/sys/types.h:100,
                 from /usr/src/tools/make/../../usr.bin/make/arch.c:102:
/usr/include/sys/endian.h:88: parse error before `__attr'
/usr/include/sys/endian.h:89: parse error before `*'
/usr/include/sys/endian.h:90: parse error before `*'
/usr/include/sys/endian.h:91: parse error before `mktime'
[...]

A glance at endian.h will convince you that some other page is getting mixed
in at the middle of line 88.

Although I really should run some other tests to make sure.

-- 
Bill Squier (groo@old-ones.com)                          http://www.netbsd.org

        I know I don't deserve another chance, but this _is_ America,
        and as an American, aren't I entitled to one?  --Sideshow Bob.