Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Feb 2018 06:02:08 -0800
From:      David Wolfskill <david@catwhisker.org>
To:        Vladimir Zakharov <zakharov.vv@gmail.com>
Cc:        Bryan Drewery <bdrewery@FreeBSD.org>, freebsd-current@freebsd.org
Subject:   Re: buildkernel with PORTS_MODULES fails: Variable OBJTOP is recursive
Message-ID:  <20180213140208.GA1180@albert.catwhisker.org>
In-Reply-To: <20180213094819.ilc2xcbdnpvwsm7a@vzakharov>
References:  <20180201091030.qmq4boyzvvvqkug6@vzakharov> <2e2d0a5d-b032-894b-b0a8-d2ab9163159c@FreeBSD.org> <20180212145430.r5ygphq3yskm7gxi@vzakharov> <fafe1a89-5c7d-b591-0a97-b61ce191996c@FreeBSD.org> <20180213094819.ilc2xcbdnpvwsm7a@vzakharov>

next in thread | previous in thread | raw e-mail | index | archive | help

--4tkssvp36SW1tyIS
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Feb 13, 2018 at 12:48:19PM +0300, Vladimir Zakharov wrote:
> ....
> > > It seems, setting WITH_AUTO_OBJ in /etc/src-env.conf causes an error.
> > > At least, removing it fixes build for me.

FWIW, I have never specified WITH_AUTO_OBJ -- and I do encounter the
"Variable OBJTOP is recursive" during the "make install kernel" phase
unless I take evasive action (patches).

> ...
> > Please try this patch (requires a buildkernel).
> >=20
> > https://people.freebsd.org/~bdrewery/patches/kernel-portsmodules.diff
> >=20
>=20
> Fixed partly:
>                                 | buildkernel  | installkernel |
> r329196                         |     OK       |     FAIL(*)   |
> r329169 + patch                 |     OK       |     OK        |
> r329196 + WITH_AUTO_OBJ         |     FAIL     |               |
> r329169 + WITH_AUTO_OBJ + patch |     FAIL     |               |
>=20
> (*) - same error "Variable OBJTOP is recursive".
> ....

In my case, I started with r329155, updated sources to r329197,
reverted an earlier patch to src/sys/conf/kern.post.mk, applied the
above, and rebuilt with no issues -- both on my headless build machine
(which runs a GENERIC kernel, has no kernel modules from ports, did not
exhibit the problem, and verified that the patch doesn't break the
"vanilla" configuration.

My laptop, which runs a moderately-customized kernel ("CANARY") based on
GENERIC, uses the x11/nvidia-driver-340 kernel module, and has exhibited
the problem in the past, made it through the build/install/smoke test
without issue (with the above patch).

Peace,
david
--=20
David H. Wolfskill				david@catwhisker.org
The circus around that memo helps confirm that Mr. Trump is unfit for offic=
e.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

--4tkssvp36SW1tyIS
Content-Type: application/pgp-signature; name="signature.asc"

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

iQGTBAEBCgB9FiEEzLfO+ReoAfQwZNd7FTnMQKBJ7hcFAlqC7+BfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEND
QjdDRUY5MTdBODAxRjQzMDY0RDc3QjE1MzlDQzQwQTA0OUVFMTcACgkQFTnMQKBJ
7hfOIgf/cQQgyoVymVZUQANE1bYpOVzHo04Tn0vglV6Vgk8GXGXpo4ns7hb0NSya
hi6LGdDDEzvsUQCzQZonuali/HBVMvRrFp29j+xtV+Rbj/GHnSffu2+EX2J0YO/E
f5FobsU6TjJ5+Nj2O08yzx6IqC9a67w+3x/54MN9WwZtNEi2KdWDmSIrN6sPCgoS
+e6Sq8AY73+KXhwYjwayAcy3Q33b7aVasPh8q4mFYk8uhzpZWQg05YG3/EfL7bXi
s4SB8rDkwDZdQzlPiUSFJHUVRDOrsC23QLMc3QY8HcMI6OnLCY78N1aK6rjY7Zmu
VDg246aqAZw0i32/KfGabrrblCJuXg==
=LH42
-----END PGP SIGNATURE-----

--4tkssvp36SW1tyIS--



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