Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Nov 2017 11:16:52 +0100
From:      "O. Hartmann" <ohartmann@walstatt.org>
To:        "O. Hartmann" <ohartmann@walstatt.org>
Cc:        "Simon J. Gerraty" <sjg@FreeBSD.org>, svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Bryan Drewery <bdrewery@FreeBSD.org>, Cy Schubert <Cy.Schubert@komquats.com>
Subject:   Re: svn commit: r325404 - head/share/mk
Message-ID:  <20171105111644.4c294342@thor.intern.walstatt.dynvpn.de>
In-Reply-To: <20171104223133.00f5bf30@thor.intern.walstatt.dynvpn.de>
References:  <201711042102.vA4L2RuR063978@repo.freebsd.org> <20171104223133.00f5bf30@thor.intern.walstatt.dynvpn.de>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/30C4oE74jq/O0_uhngRxUMl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Am Sat, 4 Nov 2017 22:31:33 +0100
"O. Hartmann" <ohartmann@walstatt.org> schrieb:

> Am Sat, 4 Nov 2017 21:02:27 +0000 (UTC)
> "Simon J. Gerraty" <sjg@FreeBSD.org> schrieb:
>=20
> > Author: sjg
> > Date: Sat Nov  4 21:02:26 2017
> > New Revision: 325404
> > URL: https://svnweb.freebsd.org/changeset/base/325404
> >=20
> > Log:
> >   Ensure .OBJDIR has known value
> >  =20
> >   If for any reason we cannot set .OBJDIR=3D=3D_objdir as desired
> >   use .CURDIR so that at least the classic
> >   .if ${.OBJDIR} !=3D ${.CURDIR}
> >   works and dangerous misstakes can be avoided.
> >  =20
> >   Reviewed by: bdrewery
> >=20
> > Modified:
> >   head/share/mk/auto.obj.mk
> >=20
> > Modified: head/share/mk/auto.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=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
> > --- head/share/mk/auto.obj.mk	Sat Nov  4 16:23:34 2017	(r325403)
> > +++ head/share/mk/auto.obj.mk	Sat Nov  4 21:02:26 2017	(r325404)
> > @@ -61,11 +61,17 @@ __objdir_made !=3D echo ${__objdir}/; umask ${OBJDI=
R_UMA
> >  .endif
> >  # This causes make to use the specified directory as .OBJDIR
> >  .OBJDIR: ${__objdir}
> > -.if ${.OBJDIR:tA} !=3D ${__objdir:tA} && ${__objdir_made:Uno:M${__objd=
ir}/*} !=3D ""
> > +.if ${.OBJDIR:tA} !=3D ${__objdir:tA}
> > +# we did not get what we want - do we care?
> > +.if ${__objdir_made:Uno:M${__objdir}/*} !=3D ""
> >  # watch out for __objdir being relative path
> >  .if !(${__objdir:M/*} =3D=3D "" && ${.OBJDIR:tA} =3D=3D ${${.CURDIR}/$=
{__objdir}:L:tA})
> >  .error could not use ${__objdir}: .OBJDIR=3D${.OBJDIR}
> >  .endif
> > +.endif
> > +# apparently we can live with it
> > +# make sure we know what we have
> > +.OBJDIR: ${.CURDIR}
> >  .endif
> >  .endif
> >  .endif
> > _______________________________________________
> > svn-src-head@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/svn-src-head
> > To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org"=
 =20
>=20
> With the recent patches, nvidia driver x11/nvidia-driver fails tobuild wi=
th the error
> shown below:
>=20
> [...]
> =3D=3D=3D> src/nvidia (all) =20
> make[7]: "/usr/src/share/mk/bsd.obj.mk" line 87: Malformed conditional
> (${CANONICALOBJDIR} =3D=3D /${RELDIR} || ${.OBJDIR} =3D=3D /${RELDIR}) ma=
ke[7]: Fatal errors
> encountered -- cannot continue
> [...]

Not really solved for me:

[...]
=3D=3D=3D> src (all)
=3D=3D=3D> src/nvidia (all)
make[7]: "/usr/src/share/mk/bsd.obj.mk" line 89: Malformed conditional (def=
ined(SRCTOP)
&&  (${CANONICALOBJDIR} =3D=3D /${RELDIR} || ${.OBJDIR} =3D=3D /${RELDIR}))=
 make[7]: Fatal errors
encountered -- cannot continue
[...]


Is there something I miss here?

Same for emulators/emulators/virtualbox-ose-kmod

[...]
kBuild:
Installing /usr/obj/usr/src/amd64.amd64/sys/THOR/usr/ports/emulators/virtua=
lbox-ose-kmod/work/VirtualBox-5.2.0/out/freebsd.amd64/release/bin/src/vboxd=
rv/Makefile
=3D=3D=3D Building 'vboxdrv' module =3D=3D=3D make[6]: "/usr/src/share/mk/b=
sd.obj.mk" line 89:
Malformed conditional (defined(SRCTOP) &&  (${CANONICALOBJDIR} =3D=3D /${RE=
LDIR} ||
${.OBJDIR} =3D=3D /${RELDIR})) make[6]: Fatal errors encountered -- cannot =
continue make[6]:
stopped
in /usr/obj/usr/src/amd64.amd64/sys/THOR/usr/ports/emulators/virtualbox-ose=
-kmod/work/VirtualBox-5.2.0/out/freebsd.amd64/release/bin/src/vboxdrv
*** Error code 1

Stop.
make[5]: stopped
in /usr/obj/usr/src/amd64.amd64/sys/THOR/usr/ports/emulators/virtualbox-ose=
-kmod/work/VirtualBox-5.2.0/out/freebsd.amd64/release/bin/src
=3D=3D=3D> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=3Dy=
es and rebuild before
reporting the failure to the maintainer.
*** Error code 1
[...]


By the way: both kernel modules are build with=20

[...]
PORTS_MODULES+=3D                x11/nvidia-driver
PORTS_MODULES+=3D         emulators/virtualbox-ose-kmod
[...]

in /etc/src.conf


Do I miss something or is this a bug?


Kind regards,

Oliver

--=20
O. Hartmann

Ich widerspreche der Nutzung oder =C3=9Cbermittlung meiner Daten f=C3=BCr
Werbezwecke oder f=C3=BCr die Markt- oder Meinungsforschung (=C2=A7 28 Abs.=
 4 BDSG).

--Sig_/30C4oE74jq/O0_uhngRxUMl
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWf7lFAAKCRDS528fyFhY
lB1TAfoDcCr3vhUmoOdZBpn4aHIwojKH86soUKCXAAuRj5jvbEckloBxBVZh4nJ0
Vs7q68NoSCtjETufiK2LlsYGkkX5Af98TzNEb6TDcPN+m0NZONhTaR1vp6H3EGXP
Szr/P843Yd6tqnLs0bYykdn0wouJuNK0ALXwuDzp+xJcS4vHiu5a
=GgDD
-----END PGP SIGNATURE-----

--Sig_/30C4oE74jq/O0_uhngRxUMl--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171105111644.4c294342>