From owner-freebsd-current@freebsd.org Mon Feb 12 21:28: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 BCB8DF1E7BD for ; Mon, 12 Feb 2018 21:28:11 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5D5076EB64; Mon, 12 Feb 2018 21:28:11 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (unknown [127.0.1.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by freefall.freebsd.org (Postfix) with ESMTPS id 0F499EE1C; Mon, 12 Feb 2018 21:28:11 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id EEA3A8189; Mon, 12 Feb 2018 21:28:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id lOfXiHFCBuho; Mon, 12 Feb 2018 21:28:07 +0000 (UTC) Subject: Re: buildkernel with PORTS_MODULES fails: Variable OBJTOP is recursive DKIM-Filter: OpenDKIM Filter v2.10.3 mail.xzibition.com 5052E8184 To: Vladimir Zakharov , David Wolfskill Cc: freebsd-current@freebsd.org References: <20180201091030.qmq4boyzvvvqkug6@vzakharov> <2e2d0a5d-b032-894b-b0a8-d2ab9163159c@FreeBSD.org> <20180212145430.r5ygphq3yskm7gxi@vzakharov> From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: Date: Mon, 12 Feb 2018 13:27:56 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180212145430.r5ygphq3yskm7gxi@vzakharov> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yn9XXJ8VpPX900SrDDfJzVyBMKzhzwCvB" 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: Mon, 12 Feb 2018 21:28:12 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --yn9XXJ8VpPX900SrDDfJzVyBMKzhzwCvB Content-Type: multipart/mixed; boundary="uLCcFQvc19NLicarwfI9Epwvrk3UFQ5ep"; protected-headers="v1" From: Bryan Drewery To: Vladimir Zakharov , David Wolfskill Cc: freebsd-current@freebsd.org Message-ID: Subject: Re: buildkernel with PORTS_MODULES fails: Variable OBJTOP is recursive References: <20180201091030.qmq4boyzvvvqkug6@vzakharov> <2e2d0a5d-b032-894b-b0a8-d2ab9163159c@FreeBSD.org> <20180212145430.r5ygphq3yskm7gxi@vzakharov> In-Reply-To: <20180212145430.r5ygphq3yskm7gxi@vzakharov> --uLCcFQvc19NLicarwfI9Epwvrk3UFQ5ep Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 2/12/2018 6:54 AM, Vladimir Zakharov wrote: > Hello, Bryan! >=20 > On Fri, Feb 09, 2018, Bryan Drewery wrote: >> On 2/1/2018 1:10 AM, Vladimir Zakharov wrote: >>> Hello! >>> >>> For some time (about a week) building and installing kernel fails wit= h >>> the error "Variable OBJTOP is recursive." when going to build/install= >>> module from ports. >>> >>> Last successful build was at r328426. Next build at r328527 failed an= d >>> still broken at r328649. >>> >>> Without PORTS_MODULES building and installing kernel succeeds. Anothe= r >>> workaround: ignore error and build/install module directly from ports= =2E >>> >>> # cat /etc/make.conf >>> MALLOC_PRODUCTION=3Dyes >>> KERNCONF=3DGENERIC-NODEBUG GENERIC >>> #KERNCONF=3D GENERIC-NODEBUG >>> CPUTYPE?=3Dnative >>> #PORTS_MODULES =3D graphics/drm-next-kmod emulators/virtualbox-ose-km= od >>> PORTS_MODULES =3D graphics/drm-next-kmod=20 >>> >>> DOC_LANG =3D en_US.ISO8859-1 ru_RU.KOI8-R=20 >>> >>> WITH_DEBUG_PORTS =3D mail/neomutt >>> >>> WITH_CCACHE_BUILD=3Dyes >>> CCACHE_DIR=3D/home/ccache >>> >>> #DEVELOPER=3Dyes >>> >>> ... >>> Building /home/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/kernel.ful= l >>> --- kernel.full --- >>> linking kernel.full >>> ctfmerge -L VERSION -g -o kernel.full ... >>> text data bss dec hex filename >>> 22584632 1376209 4748888 28709729 0x1b61361 kernel.full >>> Building /home/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/kernel.deb= ug >>> Building /home/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/kernel >>> --- all --- >>> =3D=3D=3D> Ports module graphics/drm-next-kmod (all) >>> cd ${PORTSDIR:-/usr/ports}/graphics/drm-next-kmod; env -u CC -u CXX= >>> -u CPP -u MAKESYSPATH MAKEFLAGS=3D"-j 4 -J 15,16 -j 4 -J 15,16 -D >>> NO_MODULES_OBJ .MAKE.LEVEL.ENV=3DMAKELEVEL KERNEL=3Dkernel TARGET=3Da= md64 >>> TARGET_ARCH=3Damd64" SYSDIR=3D/usr/src/sys >>> PATH=3D >>> SRC_BASE=3D/usr/src OSVERSION=3D1200056 >>> WRKDIRPREFIX=3D/home/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG make= -B >>> clean build >>> =3D=3D=3D> Cleaning for drm-next-kmod-g20180117 >>> =3D=3D=3D> License BSD2CLAUSE MIT GPLv2 accepted by the user >>> =3D=3D=3D> drm-next-kmod-g20180117 depends on file: /usr/local/sbin= /pkg - found >>> =3D=3D=3D> Fetching all distfiles required by drm-next-kmod-g20180117= for building >>> =3D=3D=3D> Extracting for drm-next-kmod-g20180117 >>> =3D> SHA256 Checksum OK for FreeBSDDesktop-kms-drm-g20180117-622fdd1_= GH0.tar.gz. >>> =3D=3D=3D> Patching for drm-next-kmod-g20180117 >>> =3D=3D=3D> drm-next-kmod-g20180117 depends on file: /usr/local/bin/= ccache - found >>> =3D=3D=3D> Configuring for drm-next-kmod-g20180117 >>> =3D=3D=3D> Building for drm-next-kmod-g20180117 >>> =3D=3D=3D> drm (all) >>> Variable OBJTOP is recursive. >> >> For some reason I cannot recreate this issue. >=20 > It seems, setting WITH_AUTO_OBJ in /etc/src-env.conf causes an error. > At least, removing it fixes build for me. >=20 > Build successful with the following settings: > # cat /etc/src-env.conf > WITH_META_MODE=3D > #WITH_AUTO_OBJ=3D >=20 > # env | grep MAKE > MAKEOBJDIRPREFIX=3D/home/obj >=20 > # cat /etc/make.conf > MALLOC_PRODUCTION=3Dyes > KERNCONF=3D GENERIC-NODEBUG > CPUTYPE?=3Dnative > PORTS_MODULES=3D graphics/drm-next-kmod=20 > DOC_LANG =3D en_US.ISO8859-1 ru_RU.KOI8-R=20 > WITH_DEBUG_PORTS =3D mail/neomutt > WITH_CCACHE_BUILD=3Dyes > CCACHE_DIR=3D/home/ccache > DEVELOPER=3Dyes >=20 Please try this patch (requires a buildkernel). https://people.freebsd.org/~bdrewery/patches/kernel-portsmodules.diff --=20 Regards, Bryan Drewery --uLCcFQvc19NLicarwfI9Epwvrk3UFQ5ep-- --yn9XXJ8VpPX900SrDDfJzVyBMKzhzwCvB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJaggbmAAoJEDXXcbtuRpfPzUkH/jCje82VTQvEKpiqnJE1BvpS nG7VO7/1C2dY5ser/JDDUvxe/37pHHtMKk912TgIp2A/qSCc8t7DD58u95xSY7KT IqT3vnmnwXK8a3Pgxex8qxO4BCnm8W3WdBW2LelFbRcvMyQk1Uya6g3xGUTnp9Nj AIZkV3jo1Bz7D/FEvVQkpB8RhZixI5nMV9dwtUKgkqIwGxMbCxk3THmJ8j+rvyBu caUU/kMlOlapQlZxmg6NloX8b6HUTkmbrjJf1mwvB4OWud+pkcsDE3Pmn5COJ4vW P4pdAcpWRs/v6fkFrwgiU4NVUibsOl7+uataMguPVYNE4B7BbgzAwDw0KErkSAM= =P7fM -----END PGP SIGNATURE----- --yn9XXJ8VpPX900SrDDfJzVyBMKzhzwCvB--