From owner-freebsd-current@freebsd.org Fri Feb 2 05:38:10 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 1164EEE63AC for ; Fri, 2 Feb 2018 05:38:10 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 749247B0E8 for ; Fri, 2 Feb 2018 05:38:09 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from freyja.zeit4.iv.bundesimmobilien.de ([87.138.105.249]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MgKoE-1eLxJn2GTW-00Ngqr; Fri, 02 Feb 2018 06:38:01 +0100 Date: Fri, 2 Feb 2018 06:37:55 +0100 From: "O. Hartmann" To: Vladimir Zakharov Cc: freebsd-current@freebsd.org Subject: Re: buildkernel with PORTS_MODULES fails: Variable OBJTOP is recursive Message-ID: <20180202063755.02aa231a@freyja.zeit4.iv.bundesimmobilien.de> In-Reply-To: <20180201091030.qmq4boyzvvvqkug6@vzakharov> References: <20180201091030.qmq4boyzvvvqkug6@vzakharov> Organization: Walstatt MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:fD6I2rjXDf6iM/487JRqHG88rR8YHTjSkukqUnEsLoQ3o5IkqjF CMQt8DN/b9iNvecGBKYg8gJtb2f0TxY2kmokflkYO+XfXFaFbNlPnUEea1EkPVDmKyxK+a4 T9LDk0yu8QzmXLz8W1F9i/TCwbUonjvdhR7w9KnvMakcBMFiOKwM8EvxNWZdnchA/Q9C6as T7QyVBz9sZRzo4SYnrk2g== X-UI-Out-Filterresults: notjunk:1;V01:K0:IsbkuLpdeUU=:0QOhbUex0zPKqFSGGv9D3M TP+ZUzorx909sOup+9qoCONt90eYZjIh43jNnddyDLX8gvPo9EBIFCTqmI+BPIX8yXWEvkKmJ cnfUlr773mXvoeABrzKXGN65JSnOqFwYngaAH/rlAGdQzq5O5SWx1btTh/52uOkbII9UvPLf8 qDQp209z8NxnIC4ytGKscjgY6zwNJ3mMU2TWEKzCgLX48ydL3nRdgPgSWlLjVVE1ZTOfvPR38 prUtK0AkiyKKOh/echxkfl56mGdvSA23b7AP21mt/YXQq9VKeGPjN794oR5Ex9ZEW9q5q8OKp oej5n3bh8swHu1D2Dufi8ezzCI2rHLvfn8vd33LaeDOkLSp7md3IowvcTKXmXTT4k8rA3cRXy Op3rm7JxmjuqnLMGhX6JivdsSWt3Pa6y3ZtnvBpM6H2z5hFR2knd3pv+lu7dM5EuZHmOvhREu FX0DbwCAUhZJV4slNbDAYTSYPd4/CORqY8QfhYzIiA5+zOnxLJPPcWe5I7V1CyqpB21jJ+OlN UdMDBAKmPtFeze28yXtvsJ6P84PwHWLxTva1NvmjaEx7bfiXE2ssJH3w6q8TRIh5CVt5ANrCL FY9b3KtVMwkZE+Kl7/gK8PAD1jkjb0gFUWeEHA5Aeup04bOz4iyjqKwSyFzw5wwPkCC5jlSSV eOHRMcsDUR9ungkol/2ADPfs3jMQuERpRvgYCzByexfI6XyMjfHGsce50x5qvCQW+wgkoxirR YTuByasSmfI7F+Of0OhBOWnvSq1/HfFImh5jH8hmTRx55nkiYi6t0iMRWb9FhqnLWazFc3t/M Hg9+ShFqZY1S47y01F+2jhQXnWxEp9sM7Y2mA6UtgSZ6XPg63U= 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: Fri, 02 Feb 2018 05:38:10 -0000 On Thu, 1 Feb 2018 12:10:30 +0300 Vladimir Zakharov wrote: > Hello! > > For some time (about a week) building and installing kernel fails with > 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 and > still broken at r328649. > > Without PORTS_MODULES building and installing kernel succeeds. Another > workaround: ignore error and build/install module directly from ports. > > # cat /etc/make.conf > MALLOC_PRODUCTION=yes > KERNCONF=GENERIC-NODEBUG GENERIC > #KERNCONF= GENERIC-NODEBUG > CPUTYPE?=native > #PORTS_MODULES = gPORTS_MODULES raphics/drm-next-kmod > emulators/virtualbox-ose-kmod PORTS_MODULES = graphics/drm-next-kmod > > DOC_LANG = en_US.ISO8859-1 ru_RU.KOI8-R > > WITH_DEBUG_PORTS = mail/neomutt > > WITH_CCACHE_BUILD=yes > CCACHE_DIR=/home/ccache > > #DEVELOPER=yes > > ... > Building /home/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/kernel.full > --- 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.debug > Building /home/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/kernel > --- all --- > ===> 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="-j 4 -J 15,16 -j 4 -J 15,16 -D > NO_MODULES_OBJ .MAKE.LEVEL.ENV=MAKELEVEL KERNEL=kernel TARGET=amd64 > TARGET_ARCH=amd64" SYSDIR=/usr/src/sys > PATH= > SRC_BASE=/usr/src OSVERSION=1200056 > WRKDIRPREFIX=/home/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG make -B > clean build > ===> Cleaning for drm-next-kmod-g20180117 > ===> License BSD2CLAUSE MIT GPLv2 accepted by the user > ===> drm-next-kmod-g20180117 depends on file: /usr/local/sbin/pkg - found > ===> Fetching all distfiles required by drm-next-kmod-g20180117 for building > ===> Extracting for drm-next-kmod-g20180117 > => SHA256 Checksum OK for FreeBSDDesktop-kms-drm-g20180117-622fdd1_GH0.tar.gz. > ===> Patching for drm-next-kmod-g20180117 > ===> drm-next-kmod-g20180117 depends on file: /usr/local/bin/ccache - found > ===> Configuring for drm-next-kmod-g20180117 > ===> Building for drm-next-kmod-g20180117 > ===> drm (all) > Variable OBJTOP is recursive. > > make[6]: stopped in > *** Error code 2 > > Stop. > make[5]: stopped in > ===> Compilation failed unexpectedly. > Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to > the maintainer. > *** Error code 1 > > Stop. > make[4]: stopped in /home/ports/graphics/drm-next-kmod > *** Error code 1 > > Stop. > make[3]: stopped in /home/ports/graphics/drm-next-kmod > *** [all] Error code 1 > ... > I have had the very same issue! You need to perform a "installworld" first (just comment out the PORTS_MODULES= parts of /etc/src.conf or /etc/make.conf, buildworld and buildkernel (maybe not a full buildworld, but I do not know the state of your source tree) and perform a regular installation of the world. It could be something easier by direkctly install-only the mk-portions, but recently, some changes to world (LLVM) made it worth anyway to buildworld. As recommended by others earlier on this list according to this subject, this procedure makes the problem go away. Kind regards, Oliver