Subject: trying build.sh (was: GENERIC won't config?)
To: None <netbsd-help@NetBSD.org>
From: James K. Lowden <jklowden@schemamania.org>
List: netbsd-help
Date: 01/21/2006 14:00:38
Quentin Garnier wrote:
> Please use build.sh when you don't know very precisely what you are
> doing.

Trying to DTRT without fetching more than I actually need, this is what I
did.  

1.  Naively fetched /usr/src/build.sh with "cvs update build.sh".  
2.  build.sh -h wouldn't run without /usr/src/share, so "cvs update
share". 
3.  build.sh kernel=CHERRY (my kernel) wanted tools, so "cvs update
tools".  
4.  build.sh complained about missing /usr/obj, so "mkdir /usr/obj". 

build.sh then ran, ending thus:

===> makewrapper:      /usr/src/tooldir.NetBSD-2.0-i386/bin/nbmake-i386
===> Updated /usr/src/tooldir.NetBSD-2.0-i386/bin/nbmake-i386
===> Building kernel without building new tools
#    objdir  /usr/obj/sys/arch/i386/compile
===> Building kernel:  CHERRY
===> Build directory:  /usr/src/sys/arch/i386/compile/obj/CHERRY
rm -f a.out [Ee]rrs mklog core *.core .gdbinit 
./build.sh: /usr/src/tooldir.NetBSD-2.0-i386/bin/nbconfig: not found

Guessing, I tried "./build.sh tools", but no joy:

cc  -O -o nbmake *.o  
#    objdir  /usr/obj/tools
===> MACHINE:          i386
===> MACHINE_ARCH:     i386
===> TOOLDIR path:     /usr/src/tooldir.NetBSD-2.0-i386
===> DESTDIR path:     /usr/src/destdir.i386
===> RELEASEDIR path:  /usr/src/releasedir
===> Created /usr/src/tooldir.NetBSD-2.0-i386/bin/nbmake
===> makewrapper:      /usr/src/tooldir.NetBSD-2.0-i386/bin/nbmake-i386
===> Updated /usr/src/tooldir.NetBSD-2.0-i386/bin/nbmake-i386
nbmake: don't know how to make obj-tools. Stop

If someone has a map and a compass, I'd be more than happy for directions
out of this thicket.  I don't even know where to look for directions.  

Thanks again.  

--jkl