Subject: Re: Something strange with build.sh and make environment vars?
To: NetBSD Users Mailing List <netbsd-users@NetBSD.org>
From: Brian Chase <vaxzilla@jarai.org>
List: current-users
Date: 11/22/2003 09:35:23
On Sat, 22 Nov 2003, Brian Chase wrote:

> Yesterday, I started a build of current on my NetBSD/vax 1.6.1 system
> with the following command:
>
> ./build.sh -R /usr/snapshot release
>
> Early on in the build process it output what is bellow.
>
> [...]
> cc  -O -o nbmake *.o
> #    objdir  /n0/work/netbsd-current/src/tools/obj
> ===> MACHINE:          vax
> ===> MACHINE_ARCH:     vax
> ===> TOOLDIR path:     /n0/work/netbsd-current/src/tooldir.NetBSD-1.6.1-vax
> ===> DESTDIR path:     /n0/work/netbsd-current/src/destdir.vax
> ===> RELEASEDIR path:  /usr/snapshot
> ===> Created /n0/work/netbsd-current/src/tooldir.NetBSD-1.6.1-vax/bin/nbmake
> ===> makewrapper:      /n0/work/netbsd-current/src/tooldir.NetBSD-1.6.1-vax/bin/nbmake-vax
> [...]
>
> Later that build failed when a groff process died, so I updated some
> resource limits, and restarted with build with this command:
>
> ./build.sh -u -R /usr/snapshot release
>
> Which is now showing:
>
> [...]
> cc  -O -o nbmake *.o
> ===> MACHINE:          vax
> ===> MACHINE_ARCH:     vax
> ===> TOOLDIR path:     /n0/work/netbsd-current/src/obj/tooldir.NetBSD-1.6.1-vax
> ===> DESTDIR path:     /n0/work/netbsd-current/src/obj/destdir.vax
> ===> RELEASEDIR path:  /usr/snapshot
> ===> Created /n0/work/netbsd-current/src/obj/tooldir.NetBSD-1.6.1-vax/bin/nbmake
> ===> makewrapper:      /n0/work/netbsd-current/src/obj/tooldir.NetBSD-1.6.1-vax/bin/nbmake-vax
> ===> Updated /n0/work/netbsd-current/src/obj/tooldir.NetBSD-1.6.1-vax/bin/nbmake-vax
> [...]
>
> Why have TOOLDIR and DESTDIR changed from "src/tooldir.NetBSD-1.6.1-vax"
> and "src/destdir.vax" to "/src/obj/tooldir.NetBSD-1.6.1-vax" and
> "src/obj/destdir.vax"?

That leading / on "/src/obj/tooldir.NetBSD-1.6.1-vax" wasn't supposed to
be there.  I've also added current-users to the thread because the
original question is better suited to be asked there.

-brian.