Date: Fri, 11 Nov 2016 17:25:36 -0800 From: "Simon J. Gerraty" <sjg@juniper.net> To: Renato Botelho <garga@freebsd.org> Cc: FreeBSD Current <freebsd-current@freebsd.org>, Bryan Drewery <bdrewery@freebsd.org>, <sjg@juniper.net> Subject: Re: 1st build stops when WITH_AUTO_OBJ=yes Message-ID: <19445.1478913936@kaos.jnpr.net> In-Reply-To: <38A0CDBA-83FC-4BA2-AD58-796DD01BAA42@FreeBSD.org> References: <5EB53098-E80D-44D9-AE6A-CAF43EF9C46B@FreeBSD.org> <61054.1478728124@kaos.jnpr.net> <38A0CDBA-83FC-4BA2-AD58-796DD01BAA42@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Renato Botelho <garga@freebsd.org> wrote: > > Interesting; what .OBJDIR do you end up with for say bin/cat ? >=20 >=20 > In this case it fails the first time pointing to expected .OBJDIR, then s= econd time I run it builds >=20 > /u/s/b/cat # =E2=9D=AF=E2=9D=AF=E2=9D=AF make -DWITH_AUTO_OBJ > [Creating objdir obj...] > make: "/usr/src/share/mk/auto.obj.mk" line 61: could not use obj: .OBJDIR= =3D/usr/obj/usr/src/bin/cat The creating line is the clue, it is just obj rather than say /usr/obj/usr/src/bin/cat Do you have MAKEOBJDIRPREFIX set in env? Or are you relying on bsd.obj.mk to set CANONICALOBJDIR:=3D/usr/obj${.CURDIR} ? Since we need to do auto.obj.mk *very* early (so .PATH is correct), it is probably relying on MAKEOBJDIRPREFIX or MAKEOBJDIR (I always have MAKEOBJDIR set) since bsd.obj.mk will not be included yet. If that's all the case though I wouldn't expect it to work any better on subsequent runs.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19445.1478913936>