From owner-freebsd-current@freebsd.org Thu Apr 9 07:33:52 2020 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 0796B2B120D for ; Thu, 9 Apr 2020 07:33:52 +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 48yXvM540Bz4FQ8 for ; Thu, 9 Apr 2020 07:33:51 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id ADCCF2B120B; Thu, 9 Apr 2020 07:33:51 +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 AD9512B1209 for ; Thu, 9 Apr 2020 07:33:51 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) 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 48yXvM49hFz4FQ7; Thu, 9 Apr 2020 07:33:51 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr1-x442.google.com with SMTP id w10so10731900wrm.4; Thu, 09 Apr 2020 00:33:51 -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=Ph5l/wHeVOMCyaZSFgLdhThOhdvD+m95zo7xstk/Bww=; b=WEFI0p+bCASRCK4AtjmTFjRkiqUabR/O2YUbmk2dCfRnTI3BUeIZ0U6016qOrrRM/9 IMkDuY0G7fdrjda+rmez72/FlnqkZxwG7193uypcRXxcLDOswHxeil1YkgGnHTVp1zpb 6oFKQwK3rfudYH79G0f3YmpSTkjFTECgaeab+q/YyX8mEFzSFRLDm9DniRmQ42bmaLGd yQMCAOBRpl4VW9obRlwW4xffCg0E4IQ3knsgBDRcwf8KXsJ0ZCM89vQGYUlLUOSHu4v1 5y2SG9gi4gUQptKKSJoHCgFSQVK4xx3xIDstrQw90XdvAkBxR9GTNVLdNGD19zLgPFvU cVBw== 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=Ph5l/wHeVOMCyaZSFgLdhThOhdvD+m95zo7xstk/Bww=; b=svmmmxsbIJvZPG9PB4LvvJTYYSezoAOfvV3F75AQ3V4t68V5lpHMBqHUPKBaSCja22 5+RqrsD8Xr7WPoXUWEmzBYXNXogPTmISaP9WbM3jWlM0q0eYm2OVn0i7Hg5i9TcjTSFO qFvFoYmdnvahQ1SsjU/M6oe6+X8mQTgMUjNUFeXWo1ncATGjB8VRQUpJsnPlNy7mtuML XkBf/tFTDinge4YHXHa4+INuBENklNLb6lORjpON8dFzy+TrVK/0EqfdVy12xZzqXhJ/ 64krntzvT2H+5vIF9p55F/R3ywGCe10N20WBtKy4Z894ctOTgA3DWiA5OcoxXW52TWMB 4jpg== X-Gm-Message-State: AGi0PuZW2AhGmrWxzzYuNLbF9fBujuP20JpFKXKJW/tb/DwQp2FcubBw SRDNM5JYO15CU/jZ68dhBA7KK4Wb X-Google-Smtp-Source: APiQypJ8p2RF1QpDa6nKlxqS64ykEhvb/mazs0GN85m0rj7I0UhRefZO0IinrVCOgoiH9M5xg704ig== X-Received: by 2002:adf:cd0c:: with SMTP id w12mr7607367wrm.12.1586417629853; Thu, 09 Apr 2020 00:33:49 -0700 (PDT) Received: from ernst.home (p5B3BE4AF.dip0.t-ipconnect.de. [91.59.228.175]) by smtp.gmail.com with ESMTPSA id v7sm2337910wmg.3.2020.04.09.00.33.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Apr 2020 00:33:49 -0700 (PDT) Date: Thu, 9 Apr 2020 09:33:46 +0200 From: Gary Jennejohn To: John Baldwin Cc: current@freebsd.org Subject: Re: buildkernel failure because ctfconvert not installed Message-ID: <20200409093346.1aec1bba@ernst.home> In-Reply-To: <814e8e7d-68e6-bead-481b-21c5552583c4@FreeBSD.org> References: <20200408083204.4a2d6dbc@ernst.home> <814e8e7d-68e6-bead-481b-21c5552583c4@FreeBSD.org> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48yXvM49hFz4FQ7 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Thu, 09 Apr 2020 07:33:52 -0000 On Wed, 8 Apr 2020 14:51:14 -0700 John Baldwin wrote: > On 4/7/20 11:32 PM, Gary Jennejohn wrote: > > Has anyone else seen this error? > > > > I tried to build a kernel yesterday, but the build failed while compiling > > modules because ctfconvert was not found. > > > > I've had WITH_CTF=no in my src.conf for years, so neither ctfconvert nor > > ctfmerge were installed. > > > > OK, I'll just go to the source dirctories and build and install. > > > > Nope. I got this error: > > make: exec(ctfconvert) failed (No such file or directory) > > and the build failed. > > > > WTF? ctfconvert requires ctfconvert to build? That makes no sense and is > > a real chicken-and-egg problem if I've ever seen one. > > > > I ended up creating /usr/bin/ctf{convert,merge} shell scripts which simply > > did exit 0. That allowed me to finally compile and install the utilities. > > > > Now I'm forced to have WITH_CTF=yes in my src.conf. No big deal. > > > > Still, it seems like the change to the make infrastructure which assumed > > that cft{convert,merge} are always installed was rather premature. > > The change is that GENERIC has 'makeoptions WITH_CTF=yes'. If you build a > kernel without that, you shouldn't need to have ctfconvert installed. This > does mean you need to use a custom kernel instead of GENERIC. > That is exactly what I found confusing. I tried both with and without CTF in my kernel config file and the build still failed. grep CTF /sys/amd64/conf/ernst_new #makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support #options DDB_CTF # Kernel ELF linker loads CTF data I also have makeoptions MODULES_OVERRIDE="cpuctl msdosfs pseudofs filemon" If I move ctfconvert away then I see this error: cd /usr/src; make buildkernel -------------------------------------------------------------- >>> Kernel build for ernst_new started on Thu Apr 9 08:51:06 CEST 2020 -------------------------------------------------------------- ===> ernst_new -------------------------------------------------------------- >>> stage 1: configuring the kernel -------------------------------------------------------------- Kernel build directory is /home/garyj/obj/usr/src/amd64.amd64/sys/ernst_new Don't forget to do ``make cleandepend && make depend'' -------------------------------------------------------------- >>> stage 2.3: build tools -------------------------------------------------------------- -------------------------------------------------------------- >>> stage 3.1: building everything -------------------------------------------------------------- sh: ctfconvert: not found *** [cpuctl.o] Error code 127 make[4]: *** cpuctl.o removed make[4]: stopped in /usr/src/sys/modules/cpuctl .ERROR_TARGET='cpuctl.o' .ERROR_META_FILE='/home/garyj/obj/usr/src/amd64.amd64/sys/ernst_new/modules/usr/src/sys/modules/cpuctl/cpuctl.o.meta' So, without ctfconvert installed buildkernel ALWAYS fails to build the modules no matter what CTF options are used in the kernel config file. In contrast, buildworld does still work without ctfconvert. -- Gary Jennejohn