Subject: build trouble
To: None <port-sun3@NetBSD.ORG>
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
List: port-sun3
Date: 07/10/1996 17:26:17
Is anyone doing sun3 builds on a sun3?  I think gwr said something
about usually cross-building from a sparc.

The reason I ask is that the compiler gets upset over kern_synch.c:

....
cc  -msoft-float -Werror -nostdinc -I. -I../../../../arch -I../../../.. -undef -D__NetBSD__ -Dm68k -Dmc68000 -D_KERNEL -Dmc68020 -Dsun3 -DNEWCONFIG -DMACHINE_NONCONTIG -DTIMEZONE="0" -DDST="0" -DGENERIC -DFPU_EMULATE -DHAVECACHE -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DKTRACE -DDDB -DNFSSERVER -DNFSCLIENT -DFFS -DCD9660 -DFDESC -DFIFO -DKERNFS -DNULLFS -DPROCFS -DUNION -DINET -DNFS_BOOT_RWSIZE="0x400" -DCOMPAT_SUNOS -DCOMPAT_10 -DCOMPAT_11 -DCOMPAT_43 -DTCP_COMPAT_42 -DUCONSOLE -DPMAP_DEBUG -DDIAGNOSTIC -DSCSIDEBUG  -c ../../../../kern/kern_sysctl.c
cc  -msoft-float -Werror -nostdinc -I. -I../../../../arch -I../../../.. -undef -D__NetBSD__ -Dm68k -Dmc68000 -D_KERNEL -Dmc68020 -Dsun3 -DNEWCONFIG -DMACHINE_NONCONTIG -DTIMEZONE="0" -DDST="0" -DGENERIC -DFPU_EMULATE -DHAVECACHE -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DKTRACE -DDDB -DNFSSERVER -DNFSCLIENT -DFFS -DCD9660 -DFDESC -DFIFO -DKERNFS -DNULLFS -DPROCFS -DUNION -DINET -DNFS_BOOT_RWSIZE="0x400" -DCOMPAT_SUNOS -DCOMPAT_10 -DCOMPAT_11 -DCOMPAT_43 -DTCP_COMPAT_42 -DUCONSOLE -DPMAP_DEBUG -DDIAGNOSTIC -DSCSIDEBUG  -c ../../../../kern/kern_synch.c
cc: Internal compiler error: program cc1 got fatal signal 6
*** Error code 1

Stop.

Signal 6 is SIGABRT, which implies it's bugchecking...but it doesn't
say what it's upset about.

I do have some patches applied to to kern_synch.c, but I get the same
error when I use the stock kern_synch.c.  I have patched cc, but all
I've done is (a) add -Wmain-type and -Wno-main-type, and (b) dike out
the "comparison between signed and unsigned".

This is with the sup of July 3rd; I had the same problem with the one
before that, which was mid-June (I no longer have the sup date).

I'd really hate to see 1.2 go out with a supported platform unable to
rebuild itself. :-/  Alternatively, has anyone succeeded in building a
kernel native on a sun3, all built from a native sup?  If so, it may
somehow be my cc patches, unlikely as that seems, and I'll try it with
them removed....

					der Mouse

			    mouse@collatz.mcrcim.mcgill.edu
		    01 EE 31 F6 BB 0C 34 36  00 F3 7C 5A C1 A0 67 1D