Subject: Re: 5000/120s
To: Leslie Todd Masco <cactus@hks.net>
From: James MacKinnon <jmack@Phys.UAlberta.Ca>
List: port-pmax
Date: 06/07/1995 15:46:32
On Wed, 7 Jun 1995, Leslie Todd Masco wrote:

> 
> James MacKinnon writes:
>  > Aren't they in current as:
>  > 
>  > 13 [11:03pm dene]:/sys/arch/pmax/stand>ls
>  > Makefile        conf.c          dec_exec.h      dec_prom.h      mkboot.c
>  > rz.c            boot.c          dec_boot.h      dec_label.c     libsa
>  > mkboottape.c    start.S
>  > 
>  > rzboot and bootrz are made in this directory. To test it out, make
>  > backups of /usr/mdec files, build the ones above, and move them into
>  > /usr/mdec. Then run disklabel to install.
> 
> Alas, right after supping (/sys/.. is the allsrc sup directory):
> 
> zyro# cd /sys/../include
> zyro# make install
> install -d -o bin -g bin -m 755 /usr/include
> [...]
> zyro# cd /sys/arch/pmax/stand
> zyro# make
> [...]
> making sure the kern library is up to date...
> `libkern.a' is up to date.
> cc -O2 -I/sys/arch/pmax/stand -I/sys/arch/pmax/stand/../.. -I/sys/arch/pmax/stad/../../.. -I/sys/arch/pmax/stand/../../../lib/libsa -DSTANDALONE -DSMALL  -c bot.c
> boot.c:45: byteswap.h: No such file or directory
> zyro# cd /sys/..
> zyro# find . -name byteswap.h -print
> zyro# 
> 
> Bummer.  A good suggestion anyway, tho...
> 

I hadn't actually tried it before either, since I'm only on DS2100's 
at this point, but "faking" it opens another pandora's box ...

dene# cd /sys/arch/pmax/stand
dene# make depend
... (output deleted for ./ and libsa/)

dene# touch byteswap.h

dene# make rzboot
cc -O2 -I/sys/arch/pmax/stand -I/sys/arch/pmax/stand/../.. 
-I/sys/arch/pmax/stand/../../.. -I/sys/arch/pmax/stand/../../../lib/libsa 
-DSTANDALONE -DSMALL -o mkboot /sys/arch/pmax/stand/mkboot.c
making sure the kern library is up to date...
`libkern.a' is up to date.
make: don't know how to make filesystem.o. Stop

ok, so some more fake:

dene# cat > filesystem.c
/* dummy */
^C

dene# make rzboot
making sure the kern library is up to date...
`libkern.a' is up to date.
cc -O2 -I/sys/arch/pmax/stand -I/sys/arch/pmax/stand/../.. 
-I/sys/arch/pmax/stand/../../.. -I/sys/arch/pmax/stand/../../../lib/libsa 
-DSTANDALONE -DSMALL  -c filesystem.c
ld -Map boot.map -N -Ttext 80200000 -e start start.o boot.o bootconf.o 
filesystem.o /sys/arch/pmax/stand/libdrive.a /sys/arch/pmax/stand/libsa/libsa.a  
/NetBSD/SUP-apr29/src/sys/lib/libkern/libkern.a -o boot.elf
ld: cannot open /sys/arch/pmax/stand/libsa/libsa.a: No such file or 
directory
*** Error code 1

Stop.
dene#

ok, ok, already... we'll do that!

dene# make
dene# make
cc -O2 -I../../include -I/sys -DSMALL  -c ../../../../lib/libsa/alloc.c 
cc -O2 -I../../include -I/sys -DSMALL  -c ../../../../lib/libsa/bcopy.c 
cc -O2 -I../../include -I/sys -DSMALL  -c ../../../../lib/libkern/bzero.c 
cc -O2 -I../../include -I/sys -DSMALL  -c ../../../../lib/libsa/close.c 
cc -O2 -I../../include -I/sys -DSMALL  -c ../../../../lib/libsa/dev.c 
cc -O2 -I../../include -I/sys -DSMALL  -c ../../../../lib/libsa/disklabel.c 
cc -O2 -I../../include -I/sys -DSMALL  -c ../../../../lib/libsa/getfile.c 
cc -O2 -I../../include -I/sys -DSMALL  -c ../../../../lib/libsa/ioctl.c 
cc -O2 -I../../include -I/sys -DSMALL  -c ../../../../lib/libsa/lseek.c 
cc -O2 -I../../include -I/sys -DSMALL  -c ../../../../lib/libsa/open.c 
cc -O2 -I../../include -I/sys -DSMALL  -c ../../../../lib/libsa/read.c 
cc -O2 -I../../include -I/sys -DSMALL  -c ../../../../lib/libsa/ufs.c 
cc -O2 -I../../include -I/sys -DSMALL  -c ../../../../lib/libsa/write.c 
cc -O2 -I../../include -I/sys -DSMALL  -c callvec.c 
callvec.c:65: warning: initialization from incompatible pointer type
cc -O2 -I../../include -I/sys -DSMALL  -c devopen.c 
devopen.c: In function `devopen':
devopen.c:52: argument `fname' doesn't match prototype
/sys/lib/libsa/stand.h:108: prototype declaration
*** Error code 1
 
Stop. 
dene#

ARGHH! guess we'll give up for now until the code get's consistent (soon
hopefully :-)

Cheers,
--
James S. MacKinnon           Office: P-139 Avahd-Bhatia Physics Lab
Department of Physics        Voice : (403) 492-8226
University of Alberta        email : Jim.MacKinnon@Phys.UAlberta.CA
Edmonton, Canada T6G 2N5
        WWW:   http://www.phys.ualberta.ca/~jmack/jmack.html