From owner-freebsd-current@freebsd.org Wed Mar 17 12:20:06 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E8E325ACAE3 for ; Wed, 17 Mar 2021 12:20:06 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4F0q3p4Ph9z3h3M for ; Wed, 17 Mar 2021 12:20:06 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 909DD5ACCB3; Wed, 17 Mar 2021 12:20:06 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8DF775ACE02 for ; Wed, 17 Mar 2021 12:20:06 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F0q3p3Md8z3h3L for ; Wed, 17 Mar 2021 12:20:06 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm1-x32d.google.com with SMTP id g25so1380560wmh.0 for ; Wed, 17 Mar 2021 05:20:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=bjZkXvLbxk+g/pWB41ssuPHV1d1Swj5VuEzsYJEI5bk=; b=JRBNHegACCNwVlEqX8RYAX+9QEOMM49pQL7NmKsaOwq7Q4+00wXgQuF1l9XDYzjmdj HuKRquNwLetxR9HUu7ZDOXo0cp5MGDjJ4z59V9gJZ9ZSCDCmOSrNzHkWj3x3kwxacU66 7uDgZDK2bVPUJn9UNCbvtuJmbgjDkLHJT+0uz2nJE/JDpLat2OAP1UVvoAHDqolTHZBD 1wABBlmy+klO0fMjzjmmHiwQboH/7+AE4sjA7NQl1s4qowqCBXRI+0fp6mLELnGZ0wuA 33yYpXA6fBmQb8RSW3rjVIjL+P1R0ZPTBEFJi7AmQ3o+NpkTEMJQDLs25ek1OTbF3Z6Z H+3Q== 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:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=bjZkXvLbxk+g/pWB41ssuPHV1d1Swj5VuEzsYJEI5bk=; b=oD6XiO4nav1l7BoG8dMJ1qVRqWSlISHo6r7CsBTSOmmAeD7TiGJjEU7fYifdQvGoQa uodlOdOvvOYjJVwHHQXFYZhKccKBE85K+38I/MuusnKekwLDI+YouIu8xo+1fmoq1ZoZ g7bnDuLrKVxm8O1QxWr+BGOXsgppDmJjH49v9RVS1R9SnamxUUatPbhlztZSzMq+2Xig Bb0iDwp83npulj3zJICpRe4Nf4Uk9G9bdtSAEWIdBteu14r9Vm9aUDc4g1ouiWkE0yIu c8BoL87AxGF5+2pVPY9E3a4fVemlmeKez6WYcL9UFnzOQOknpdcA80qwDYubNWvj4yqn 1Qpg== X-Gm-Message-State: AOAM533I/BNjwot7LjbCB4hBZGPvMiHHBf8pae9UKNsHuWIf2frbceCb rMTbi1feii1F01KngpDwGlY= X-Google-Smtp-Source: ABdhPJy2A/FbSZdf2MAuMRcyPp2dV2Vy9iXKVrmuH1YtfhdwB1vgzwhcLnATFQUhztMSZlXTce/p3w== X-Received: by 2002:a7b:ce16:: with SMTP id m22mr3564584wmc.65.1615983604671; Wed, 17 Mar 2021 05:20:04 -0700 (PDT) Received: from ernst.home (p5b02350e.dip0.t-ipconnect.de. [91.2.53.14]) by smtp.gmail.com with ESMTPSA id t8sm25061707wrr.10.2021.03.17.05.20.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 05:20:04 -0700 (PDT) Date: Wed, 17 Mar 2021 13:18:37 +0100 From: Gary Jennejohn To: David Wolfskill Cc: current@freebsd.org Subject: Re: Problem building x11/nvidia-driver; ref. n245494-6827435548d2 Message-ID: <20210317121837.707dc95a@ernst.home> In-Reply-To: References: Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4F0q3p3Md8z3h3L X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 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: Wed, 17 Mar 2021 12:20:07 -0000 On Wed, 17 Mar 2021 05:08:50 -0700 David Wolfskill wrote: > My laptop is currently running main-n245489-15b82e00a164; after updating > sources to n245498-096a84721670, I am performing a source-based update. > > A simialr update on my build machine (which is headless, and thus does > not use anything related to X11) was successful. > > The laptop is set up to rebuild x11/nvidia-driver when the kernel > is updated. > > The buildkernel step on it fails with: > > ... > awk -f /usr/src/sys/conf/kmod_syms.awk nvidia-modeset.ko export_syms | xargs -J% objcopy % nvidia-modeset.ko > ===> lib (all) > ===> lib/libglvnd (all) > ... > ===> x11/driver (all) > ===> x11/extension (all) > ===> doc (all) > make[6]: "/usr/share/mk/bsd.man.mk" line 53: Malformed conditional (${MK_MANSPLITPKG} == "no") > make[6]: Fatal errors encountered -- cannot continue > make[6]: stopped in /common/S4/obj/usr/src/amd64.amd64/sys/CANARY/common/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-460.56/doc > *** Error code 1 > > Stop. > > > On reviewing the list of files changed in 15b82e00a164..096a84721670, I > note a couple of promising-looking candidates: > > share/mk/bsd.opts.mk | 1 + > share/mk/src.opts.mk | 1 - > > Reviewing the commit log for share/mk/bsd.opts.mk, I see that the most > recent entry is: > > | commit 6827435548d257c672f934db5c6ff01012d96995 > | Author: Jung-uk Kim > | Date: Tue Mar 16 14:16:10 2021 -0400 > | > | pkgbase: Fix building out-of-tree manual pages > | > | c7e6cb9e08d6 introduced MK_MANSPLITPKG but it was not available for > | building out-of-tree manual pages. For example, x11/nvidia-driver fails > | with the following error: > | > | ===> doc (all) > | make[3]: "/usr/share/mk/bsd.man.mk" line 53: Malformed conditional (${MK_MANSPLITPKG} == "no") > | make[3]: Fatal errors encountered -- cannot continue > | > | Move the definition from src.opts.mk to bsd.opts.mk to make it visible. > > which looks ... apropos. > > Indeed, it appears that the n245494-6827435548d2 change was intended to > fix the issue that I am now just seeing. > > But I readily confess that I have neither familairity nor expertise > with share/mk/* (and that delving into it reminds me of "You are > in a mazy twist of passages, all different") > > So... help? What do I need to do to be able to build the kernel now? > > (E.g., if I need to just skip building x11/nvidia-driver once, get > everything installed, then build "normally" (with x11/nvidia-driver) > -- that's fine; I just need a clue.) > For me trying to build nvidia-driver along with the kernel always fails miserably. My tree is at 096a8472167..c96151d3350 main. Building the kernel on its own followed by building nvidia-driver in the ports tree worked for me with no problems (but I didn't install either one of them yet). -- Gary Jennejohn