From owner-freebsd-current@freebsd.org Tue Feb 13 14:02:12 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E11DEF027B7 for ; Tue, 13 Feb 2018 14:02:11 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mx.catwhisker.org (mx.catwhisker.org [198.144.209.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3F06279F4A; Tue, 13 Feb 2018 14:02:10 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.15.2/8.15.2) with ESMTP id w1DE28F0029127; Tue, 13 Feb 2018 14:02:08 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.15.2/8.15.2/Submit) id w1DE28pj029126; Tue, 13 Feb 2018 06:02:08 -0800 (PST) (envelope-from david) Date: Tue, 13 Feb 2018 06:02:08 -0800 From: David Wolfskill To: Vladimir Zakharov Cc: Bryan Drewery , freebsd-current@freebsd.org Subject: Re: buildkernel with PORTS_MODULES fails: Variable OBJTOP is recursive Message-ID: <20180213140208.GA1180@albert.catwhisker.org> Mail-Followup-To: David Wolfskill , Vladimir Zakharov , Bryan Drewery , freebsd-current@freebsd.org References: <20180201091030.qmq4boyzvvvqkug6@vzakharov> <2e2d0a5d-b032-894b-b0a8-d2ab9163159c@FreeBSD.org> <20180212145430.r5ygphq3yskm7gxi@vzakharov> <20180213094819.ilc2xcbdnpvwsm7a@vzakharov> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4tkssvp36SW1tyIS" Content-Disposition: inline In-Reply-To: <20180213094819.ilc2xcbdnpvwsm7a@vzakharov> User-Agent: Mutt/1.9.3 (2018-01-21) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Feb 2018 14:02:12 -0000 --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--