Subject: netbsd-1.6 branch sparc64 problems today
To: None <port-sparc64@netbsd.org, current-users@netbsd.org>
From: Todd Kover <kovert@omniscient.com>
List: port-sparc64
Date: 05/30/2002 22:58:45
I'm attempting to cross-compile the netbsd-1.6 branch from a cvs
checkout of earlier today (1pm EDTish).  Cross compiling on:

[saidin:5 ~] uname -a
NetBSD saidin.omniscient.com 1.5ZC NetBSD 1.5ZC (GENERIC) #2: Mon Apr 29 16:12:
16 EDT 2002     kovert@saidin.omniscient.com:/saidin/obj/netbsd.i386/sys/arch/i
386/compile/GENERIC i386

for sparc64 I'm getting:

---<snip>---
Image `miniroot.fs.tmp' complete
/omniscient/os/NetBSD-1.6/src/tools/obj.sparc64/tools.NetBSD-1.5ZC-i386/bin/nbi
n
stallboot -v -m sparc64 miniroot.fs  /tmp/NetBSD-sparc64-dest-2002-05-30/usr/md
e
c/bootblk || { rm -f miniroot.fs ; false; }
File system:         miniroot.fs
File system type:    ffs (blocksize 16384, needswap 1)
Primary bootstrap:   /tmp/NetBSD-sparc64-dest-2002-05-30/usr/mdec/bootblk
Bootstrap start sector: 1
Bootstrap byte count:   4863
Writing bootstrap
all ===> sparc64/bootfs
rm -f work.spec work.spec.tmp
( for i in /omniscient/os/NetBSD-1.6/src/distrib/common/mtree.dot; do    cat $i
 
;                echo "/unset all" ;     done ) >> work.spec.tmp
NETBSDSRCDIR=/omniscient/os/NetBSD-1.6/src  CRUNCHBIN=  CURDIR=/omniscient/os/N
e
tBSD-1.6/src/distrib/sparc64/bootfs  DESTDIR=/tmp/NetBSD-sparc64-dest-2002-05-3
0
  DISTRIBDIR=/omniscient/os/NetBSD-1.6/src/distrib  MACHINE=sparc64  MACHINE_AR
C
H=sparc64  OBJDIR=/omniscient/os/NetBSD-1.6/src/distrib/sparc64/bootfs/obj.spar
c
64 TARGETDIR=/omniscient/os/NetBSD-1.6/src/distrib/sparc64/bootfs/obj.sparc64/w
o
rk awk -f /omniscient/os/NetBSD-1.6/src/distrib/common/parselist.awk -v mode=mt
r
ee /omniscient/os/NetBSD-1.6/src/distrib/sparc64/bootfs/list >> work.spec.tmp  
&
& mv work.spec.tmp work.spec
Building tree into work
rm -rf work work.built
mkdir -m 755 work
/omniscient/os/NetBSD-1.6/src/tools/obj.sparc64/tools.NetBSD-1.5ZC-i386/bin/nbm
t
ree -def work.spec -p work/ -UW
NETBSDSRCDIR=/omniscient/os/NetBSD-1.6/src  CRUNCHBIN=  CURDIR=/omniscient/os/N
e
tBSD-1.6/src/distrib/sparc64/bootfs  DESTDIR=/tmp/NetBSD-sparc64-dest-2002-05-3
0
  DISTRIBDIR=/omniscient/os/NetBSD-1.6/src/distrib  MACHINE=sparc64  MACHINE_AR
C
H=sparc64  OBJDIR=/omniscient/os/NetBSD-1.6/src/distrib/sparc64/bootfs/obj.spar
c
64 TARGETDIR=/omniscient/os/NetBSD-1.6/src/distrib/sparc64/bootfs/obj.sparc64/w
o
rk awk -f /omniscient/os/NetBSD-1.6/src/distrib/common/parselist.awk -v mode=po
p
ulate /omniscient/os/NetBSD-1.6/src/distrib/sparc64/bootfs/list | sh -e   && to
u
ch work.built
cp: /omniscient/os/NetBSD-1.6/src/distrib/sparc64/bootfs/obj.sparc64/../instfs/
n
etbsd.INSTALL.gz: No such file or directory
*** Error code 1

Stop.
nbmake: stopped in /omniscient/os/NetBSD-1.6/src/distrib/sparc64/bootfs
*** Error code 1
---<snip>---

I'm running:

	when=`date +%Y-%m-%d`
	DESTDIR=/tmp/NetBSD-$destmachine-dest-$when
	RELEASEDIR=/tmp/NetBSD-$destmachine-release-$when
	export DESTDIR RELEASEDIR
	./build.sh -R $RELEASEDIR -a sparc64 -m sparc64 

and in my /etc/mk.conf:

MKTOOLS=yes
USE_NEW_TOOLCHAIN=yes
OBJMACHINE=yes

I poked around in src/distrib/sparc64/bootfs/Makefile and the problem
looks to be in there (well, included Makefiles) and it appears to be a
problem with using OBJ directories, but I'm not sure what the fix is.

Anyone know what's up?

thanks,
-Todd