Subject: kernel rebuild trouble
To: None <current-users@sun-lamp.cs.berkeley.edu,>
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
List: port-sparc
Date: 06/22/1994 10:18:36
I have netbsd running, but only a binary snapshot.  First thing, of
course, is to rebuild from source.  So I snagged a copy of the source
yesterday afternoon (off ftp.iastate.edu, since sun-lamp seemed to be
down at the time).  After unpacking, I then:

cd /usr/src/include
make install

This produces a slightly disturbing message about ufs/*.h not being
found, which I ignore.

cd /sys/arch/sparc/conf
config.new TDR2
cd ../compile/TDR2
make CC=/usr/bin/cc depend

Everything seems normal, so...

make CC=/usr/bin/cc

But this produces

rm -f locore.c; ln -s ../../sparc/locore.s locore.c;  /usr/bin/cc -I. -I../../../../arch -I../../../.. -I../../../../sys -DTIMEZONE="0x1e0" -DDST="1" -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DDEBUG -DDIAGNOSTIC -DKTRACE -DGDB -DKGDBDEV="0xc01" -DKGDBRATE="0x9600" -DRCONSOLE -DSYSVMSG -DSYSVSEM -DFFS -DNFSSERVER -DNFSCLIENT -DINET -DTCP_COMPAT_42 -DCOMPAT_43 -DLKM -DCOMPAT_SUNOS -DKERNEL -I../../sparc -E locore.c > locore.i;  as -o locore.o locore.i; rm -f locore.c locore.i
as: locore.i:1489: Error: Unknown opcode: `PTE_OF_ADDR(%sp, %g7,ctw_invalid)'
*** Error code 1

Stop.

On inspecting locore.c, it appears that nobody is defining SUN4 or
SUN4C.  Should I simply add "options SUN4" (or SUN4C)?  Anybody tried
building a SPARC kernel from -current who wants to talk?

					der Mouse

			    mouse@collatz.mcrcim.mcgill.edu

------------------------------------------------------------------------------