Subject: Re: How do I build -current?
To: None <pappires@vortex.del.ufrj.br>
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
List: port-sun3
Date: 07/24/1996 09:06:30
> I am trying to build -current for my Sun3 system but I got stuck on
> several errors that I hope you can [help] me solve.

> I started [by] building /usr/src/usr.sbin/config in order to build
> the kernel.  Config OK, but when compiling the kernel, I got

> cc  -O2 -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 -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DKTRACE -DDDB -DNFSSERVER -DNFSCLIENT -DFFS -DCD9660 -DFDESC -DFIFO -DKERNFS -DNULLFS -DPROCFS -DUNION -DINET -DNFS_BOOT_RWSIZE="0x400" -DCOMPAT_SUNOS -DCOMPAT_09 -DCOMPAT_10 -DCOMPAT_11 -DCOMPAT_43 -DTCP_COMPAT_42 -DUCONSOLE -DXSERVER -DPMAP_DEBUG -DDIAGNOSTIC  -c ../../../../nfs/nfs_vnops.c
> ../../../../nfs/nfs_vnops.c: In function `nfsspec_close':
> ../../../../nfs/nfs_vnops.c:3258: internal error--insn does not satisfy its constraints:
> (insn 135 50 52 (set (reg:DI 10 a2)
>         (mem/s:DI (plus:SI (reg:SI 11 a3)
>                 (const_int 168)))) 39 {movdi} (nil)
>     (nil))
> cc: Internal compiler error: program cc1 got fatal signal 6
> *** Error code 1
> 
> Stop.

Rebuild and reinstall the compiler (/usr/src/gnu/usr.bin/gcc); this is
a compiler bug in an old version of the compiler - you're probably
using a toolchain old enough to have it.  Then try the kernel again.
(There is at least one bug in the current compiler when applied to the
kernel, but provided you leave optimization turned on it doesn't seem
to manifest itself.)

					der Mouse

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