From owner-freebsd-current@freebsd.org Mon Feb 12 14:54:35 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 BE27CF210FA for ; Mon, 12 Feb 2018 14:54:34 +0000 (UTC) (envelope-from zakharov.vv@gmail.com) Received: from mail-lf0-x229.google.com (mail-lf0-x229.google.com [IPv6:2a00:1450:4010:c07::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3919B783A0; Mon, 12 Feb 2018 14:54:34 +0000 (UTC) (envelope-from zakharov.vv@gmail.com) Received: by mail-lf0-x229.google.com with SMTP id 37so1925713lfs.7; Mon, 12 Feb 2018 06:54:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=huQvqAxam4YpaRMsOwK1TMq0Qp2MTpJ4CBa+V4nd28w=; b=dSoak4wQTbWOFF4x9udN0QgIMk8PBytWm3N7kpwZSyuXlaFtoHbBpS/Aqk9zfqgiu1 qDtrCMBQMDyo+9fqt9AwX67JO86mhdJa8W2UqF6sm+fJpQCnUHgFCJY8EDBGA4I65nQQ aCgLa6WLc5Phy2IVYCMdWeGmlrKH5GHSypkC6nEkXUbucafpIHSqZ1F/tVuqCEAmmQhL zqimPkyXmqbMPtl0fUQ9ll4SOktUvv8OYxN4iEpT/HO0qqZmsbvD9hHFbLogPH8ErWF/ DS+ca5K8TNsYVc2Y+ZwqPx9sqq2UsgWYHuI2T6jMtmO0zKIEJvANu9tqWfP9Yr4Y4wyl zEwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=huQvqAxam4YpaRMsOwK1TMq0Qp2MTpJ4CBa+V4nd28w=; b=HzrTQdgiENPgjhMJxZq3RmNPu3JMrhJOfUekeQ/TUHU65aPGqo93lx0IynPDccIAYa jOQ9DZEBP0a15cHVGdg7W4GUTZDgaDi84qtMowi23hfcSXgfNFUVWTxLM7dFnvfrMGNd fMnpC/UsEphf4AD8UWsO6xF8h5lbI91KjEll0l2ILo4QCSdT40wgMuOcZyP+d7Ys2r15 smoCsGqW0KVY+B71/ipA1cZVzY/CW1SVM+KaC+sDDm7S03tqQ1HaKEkQ9hlioO4JSbox C1KRCsCpDpASa+J54MDRo2nTGV1YMoLpUgZTF8p5bCyeLTGcPhuBr4zDxIdfNa0Z73ea fKbQ== X-Gm-Message-State: APf1xPAcIbv6LAA3Qev89wIHXqiS2hIJG8U+ds4nLtbq7RBtyAYSNMq3 LSArtZxaFC6fIHf6bAa6kpmI7fhg X-Google-Smtp-Source: AH8x227CszjanPntMbT29fGTwCeRqT69m80Q8mCDiTiLCVW6I6zh1DIR9nOzKne+pCfoBo/wjvCYnQ== X-Received: by 10.46.82.26 with SMTP id g26mr2810371ljb.67.1518447272376; Mon, 12 Feb 2018 06:54:32 -0800 (PST) Received: from localhost ([81.19.73.153]) by smtp.gmail.com with ESMTPSA id h78sm1731000lfk.31.2018.02.12.06.54.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Feb 2018 06:54:31 -0800 (PST) Date: Mon, 12 Feb 2018 17:54:30 +0300 From: Vladimir Zakharov To: Bryan Drewery Cc: freebsd-current@freebsd.org Subject: Re: buildkernel with PORTS_MODULES fails: Variable OBJTOP is recursive Message-ID: <20180212145430.r5ygphq3yskm7gxi@vzakharov> References: <20180201091030.qmq4boyzvvvqkug6@vzakharov> <2e2d0a5d-b032-894b-b0a8-d2ab9163159c@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2e2d0a5d-b032-894b-b0a8-d2ab9163159c@FreeBSD.org> X-Operating-System: FreeBSD 12.0-CURRENT amd64 X-PGP-Key: http://vzakharov.ru/pubkey.asc User-Agent: NeoMutt/20171215 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 14:54:35 -0000 Hello, Bryan! 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 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 = graphics/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. > > For some reason I cannot recreate this issue. It seems, setting WITH_AUTO_OBJ in /etc/src-env.conf causes an error. At least, removing it fixes build for me. Build successful with the following settings: # cat /etc/src-env.conf WITH_META_MODE= #WITH_AUTO_OBJ= # env | grep MAKE MAKEOBJDIRPREFIX=/home/obj # cat /etc/make.conf MALLOC_PRODUCTION=yes KERNCONF= GENERIC-NODEBUG CPUTYPE?=native 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 -- Regards, | "In theory there is no difference between theory Vladimir Zakharov | and practice. In practice there is."- Yogi Berra