Re: buildkernel failure because ctfconvert not installed

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 8 Apr 2020 14:51:14 -0700
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.

-- 
John Baldwin
Received on Wed Apr 08 2020 - 19:51:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:23 UTC