Date: Sun, 5 Nov 2017 08:13:27 -0800 From: "Simon J. Gerraty" <sjg@juniper.net> Cc: David Wolfskill <david@catwhisker.org>, <current@freebsd.org>, <sjg@juniper.net> Subject: Re: Build failed: /usr/src/share/mk/bsd.obj.mk" line 89: Malformed conditional Message-ID: <13456.1509898407@kaos.jnpr.net> In-Reply-To: <13241.1509897599@kaos.jnpr.net> References: <20171105124444.GG1156@albert.catwhisker.org> <13241.1509897599@kaos.jnpr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Simon J. Gerraty <sjg@juniper.net> wrote: > David Wolfskill <david@catwhisker.org> wrote: > > =3D=3D=3D> Building for nvidia-driver-340-340.102 > > =3D=3D=3D> src (all) > > make[6]: "/usr/src/share/mk/bsd.obj.mk" line 89: Malformed conditional= (defined(SRCTOP) && (${CANONICALOBJDIR} =3D=3D /${RELDIR} || ${.OBJDIR} = =3D=3D /${RELDIR})) > > make[6]: Fatal errors encountered -- cannot continue > > make[6]: stopped in /common/S4/obj/usr/src/amd64.amd64/sys/CANARY/comm= on/ports/x11/nvidia-driver-340/work/NVIDIA-FreeBSD-x86_64-340.102/src > > *** Error code 1 > = > I think I might have a fix for that. Or rather I know what the issue is - RELDIR isn't defined because .CURDIR isn't under SRCTOP, if OBJTOP were defined at that point, the fix is trivial, but in the current tree that may not be so. If .CURDIR isn't under SRCTOP, RELDIR is of questionable value anyway. For now you can avoid the error with below. Index: share/mk/bsd.obj.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- share/mk/bsd.obj.mk (revision 325436) +++ share/mk/bsd.obj.mk (working copy) @@ -85,7 +85,7 @@ CANONICALOBJDIR:=3D/usr/obj${.CURDIR} .endif = -.if defined(SRCTOP) && \ +.if defined(RELDIR) && \ (${CANONICALOBJDIR} =3D=3D /${RELDIR} || ${.OBJDIR} =3D=3D /${RELDIR}= ) .error .OBJDIR incorrectly set to /${RELDIR} .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13456.1509898407>