Subject: Report on compiling the OS...
To: None <gadams@avernus.com>
From: Gordon W. Ross <gwr@mc.com>
List: port-sun3
Date: 04/13/1995 17:13:14
> From: Geoff Adams <gadams@avernus.com>
> Date: Thu, 13 Apr 1995 16:38:11 -0400

> I have just recompiled the OS natively on my Sun 3/60. [...]
Great.  I was beginning to think it only worked for me...

> This is the first major task I've attempted since I moved the machine's
> root, usr, and swap onto a local SCSI disk. [...]

I have not done much testing with NFS-mounted root or /usr so I
haven't seen the "Error code 139" behavior.

> I am now trying to compile a kernel natively.  Aside from the need to
> uncomment the line
> # maxpartitions 8
> 
> in files.sun3.newconf and redefine AWK=awk and AS=as, I have run into
> some interesting problems.

You also should comment out the line:
XINC = -nostdinc -I../xinc
in Makefile.sun3 (as the comment implies)

> First, a number of .c files, mostly having to do with ddb, require
> include files which are to be found in ../../../../../include, also
> known as /usr/src/include.  Here are a couple examples:
> 
> gcc -msoft-float -O -c -nostdinc -I../xinc -I. -I../.. -I../../../.. -I../../../../sys -I../../../../arch -DNEWCONFIG -DMACHINE_NONCONTIG -DSUN3_50 -DSUN3_60 -Dlotsa-other-options -D_KERNEL -Dmc68020 -Dsun3  ../../../../ddb/db_aout.c
> ../../../../ddb/db_aout.c:41: nlist.h: No such file or directory
> ../../../../ddb/db_aout.c:42: stab.h: No such file or directory

Those would normally come from /usr/include if -nostdinc were absent.

> Next, bwtwo.h, cgtwp.h, and cgfour.h are generated containing (in the
> case of bwtwo.h):
> 
> #define NBWTWO   1
> 
> Unfortunately, .../arch/sun3/sun3/conf.c expects somehing slightly
> different:

That, and many other errors were introduced when Charles Hannum
went on a crusade through all the ports eradicating "gratuitous
differences" without too much discression as to which were useful.
I was annoyed enough that I didn't feel like fixing it right off.
Sorry.  I'll check in a bunch of fixes today.

> Sadly, now I must divert my attentions to other things for the moment.
> I will return later to continue the project.  Hopefully, I'll get
> through a full kernel compile!

I understand completely.  I too have many things going on in my life.

Gordon