Subject: cross building sparc on 1.5/i386
To: None <,>
From: Eric Schnoebelen <>
List: current-users
Date: 04/24/2002 10:24:41

	I'm attempting to cross-build a NetBSD/sparce -current
release on my 1.5/i386 system.  Many of the recent attempts have
failed while trying to install the boot loader on the miniroot.

Is anyone else seeing this?  (I guess I need to send-pr, either

The command line:

	./ -a sparc -m sparc -T $cwd/../tools/ \
		-D /netboot/sparc \
		-O $cwd/../obj.sparc \
		-R /work/release/sparc

The Build log:

	===> DESTDIR path: /netboot/sparc
	===> TOOLDIR path: /scratch/eric/NetBSD-current/src/../tools/
	Build started at: Tue Apr 23 13:20:34 CDT 2002


	ARCHDIR=/scratch/eric/NetBSD-current/src/distrib/miniroot/../sparc/miniroot  DISTRIBREV=15ZC  DISTRIBVER=1.5ZC  KERNOBJDIR=/scratch/eric/NetBSD-current/src/../obj.sparc/sys/arch/sparc/compile _SRC_TOP_=/scratch/eric/NetBSD-current/src  CRUNCHBIN=instbin  CURDIR=/scratch/eric/NetBSD-current/src/distrib/miniroot  DESTDIR=/netboot/sparc  DISTRIBDIR=/scratch/eric/NetBSD-current/src/distrib  MACHINE=sparc  MACHINE_ARCH=sparc  OBJDIR=/scratch/eric/NetBSD-current/src/../obj.sparc/distrib/miniroot TARGETDIR=/scratch/eric/NetBSD-current/src/../obj.sparc/distrib/miniroot/work awk -f /scratch/eric/NetBSD-current/src/distrib/common/parselist.awk -v mode=populate /scratch/eric/NetBSD-current/src/distrib/miniroot/list /scratch/eric/NetBSD-current/src/distrib/miniroot/../sparc/miniroot/list /scratch/eric/NetBSD-current/src/distrib/common/list.sysinst | sh -e   && touch work.built
	Creating image into miniroot.fs...
	rm -f miniroot.fs miniroot.fs.tmp
	/scratch/eric/NetBSD-current/src/../tools//bin/nbmakefs -t ffs -B be -s 7296k -F work.spec  -N /scratch/eric/NetBSD-current/src/etc -o bsize=4096,fsize=512  -o optimization=space,minfree=0,nsectors=1,ntracks=128  -o density=4k miniroot.fs.tmp work  && mv -f miniroot.fs.tmp miniroot.fs
	Calculated size of `miniroot.fs.tmp': 7471104 bytes, 1420 inodes
	miniroot.fs.tmp:	14592 sectors in 114 cylinders of 128 tracks, 1 sectors
		7.1MB in 1 cyl groups (151 c/g, 9.44MB/g, 1792 i/g)
	super-block backups (for fsck -b #) at:
	Populating `miniroot.fs.tmp'
	Image `miniroot.fs.tmp' complete
	/netboot/sparc/usr/mdec/binstall -f miniroot.fs  -m /netboot/sparc/usr/mdec -i /scratch/eric/NetBSD-current/src/../tools//bin/nbsparc-installboot  -v ffs   && touch image.built
	Usage: /netboot/sparc/usr/mdec/binstall [options] <"net"|"ffs"> <directory>
		-h		- display this message
		-u		- install sparc64 (UltraSPARC) boot block
		-U		- install sparc boot block
		-b<bootprog>	- second-stage boot program to install
		-f<pathname>	- path to device/file image for filesystem
		-m<path>	- Look for boot programs in <path> (default: /usr/mdec)
		-i<progname>	- Use the installboot program at <progname>
				  (default: /usr/mdec/installboot)
		-v		- verbose mode
		-t		- test mode (implies -v)
	*** Error code 1

	nbmake: stopped in /scratch/eric/NetBSD-current/src/distrib/miniroot
	*** Error code 1

	nbmake: stopped in /scratch/eric/NetBSD-current/src/distrib
	*** Error code 1

	nbmake: stopped in /scratch/eric/NetBSD-current/src/etc
	*** Error code 1

	nbmake: stopped in /scratch/eric/NetBSD-current/src

The complete build log is available at

		Eric Schnoebelen

Eric Schnoebelen
	The meek shall inherit the earth -- they are too weak to refuse.