From nobody Fri Feb 07 16:18:50 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YqK0d4n5yz5mQh3 for ; Fri, 07 Feb 2025 16:18:57 +0000 (UTC) (envelope-from SRS0=RCXN=U6=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4YqK0d3JFyz3jqV for ; Fri, 07 Feb 2025 16:18:57 +0000 (UTC) (envelope-from SRS0=RCXN=U6=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; none Date: Fri, 7 Feb 2025 17:18:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1738945130; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=OGs0PwW4eSs/Ptk2/sZOgzuT+czVtMYXllLgKz5UO+E=; b=u062O5vNkrbH3l/+RRnQT1Rmr00Al6joxAyPL0TTmgnIKWEex7RvGbhO2ZYBGJggO+hhcn fM2Y/5l4pgjQ1SSzFsTXN9tntAFVWDdaG4lsKdyZidr5QsSeQd9gG0lNjw4bEc6+/GHhMr n3HLffo+ecgN5L0adl9xbEJEdlj7LZD3peMoO281AnRJREiCJNietW2rWUlG0T6/zc/8Pb 6xgg7FVHgEArkjAOGpyc7q6yFaODr3h3HVCckTps/xvTtlZ/tT7WM+qTz7TiNreyJZiBTU d46auJyozUKWhLC0G//H5WgJ0FylLlXHjiDumKokB4d0Uchj2TKgOCelszyS/w== From: Ronald Klop To: A FreeBSD User Cc: FreeBSD CURRENT Message-ID: <618457604.2994.1738945130707@localhost> In-Reply-To: <20250207171235.1c3e3507@thor.sb211.local> Subject: Re: make installkernel: failure: install: /usr/lib/debug/boot/kernel: No such file or directory List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2993_1703446821.1738945130704" X-Mailer: Realworks (737.3) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4YqK0d3JFyz3jqV X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL] ------=_Part_2993_1703446821.1738945130704 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Well. This if_mtw code is pretty new: https://cgit.freebsd.org/src/commit/?id=c14b016242613da79516e83fc6faef35d827cc18 Maybe something is not compatible with your NODEBUG settings. Van: A FreeBSD User Datum: 7 februari 2025 17:12 Aan: Ronald Klop CC: FreeBSD CURRENT Onderwerp: Re: make installkernel: failure: install: /usr/lib/debug/boot/kernel: No such file or directory > > > > Am Fri, 7 Feb 2025 16:53:30 +0100 (CET) > Ronald Klop schrieb: > > > What is in your /etc/make.conf and /etc/src.conf? > > > > Regards, > > Ronald. > > Remark: > > I use on all CURRENT boxes a special scheme for configuring the kernel/world. The kernel > config files are located in /etc/config/amd64/kernel_conf/, the kernel config file is > > /etc/config/amd64/kernel_conf/WALHALL (for a certain kernel): > > [...] > include GENERIC > include NODEVICE-WALHALL > include "std.nodebug" > include ADDON-WALHALL > > #makeoptions WITH_KERNEL_RETPOLINE=YES > makeoptions > WITH_EXTRA_TCP_STACKS=YES,WITH_MALLOC_PRODUCTION=YES,-DWITH_MALLOC_PRODUCTION > > ident WALHALL > [...] > > NODEVICE-WALHALL: mostly GENERIC, but unwanted and unneeded options prepended with > "nooptions", same with devices not needed, prepended with "nodevice". > Also an exchange/addendum: > [...] > # For full debugger support use (turn off in stable branch): > include "std.nodebug" > to avoid debugging bloats. > > In ADDON-XXXXX there are several non-optional devices/options in place. > > I realised in my initial post this: > > > > > > > ===> usb/mtw (install) > > > > > > install -T release -o root -g wheel -m 444 if_mtw.ko /boot/kernel/ > > > > > > install -T dbg -o root -g wheel -m 444 if_mtw.ko.debug /usr/lib/debug/boot/kernel/ > > > > > > install: /usr/lib/debug/boot/kernel: No such file or directory > > > > > > *** Error code 71 > > > usb/mtw is the ONLY(!) line in the whole output indicating the debug install of a kernel > module, although I thought I had all DEBUG stuff disabled. > > > /etc/make.conf: > > mostly vanilla, except this last line: > [...] > ## > ## make.conf.local > ## > .include "/usr/local/etc/make.conf.local" > > In /usr/local/etc/make.conf.local we setup some special treatments of several ports (options). > No world settings. > > > /etc/src.conf is : > > # > CPUTYPE?= native > # World > #CFLAGS+= -O3 > # Kernel > #COPTFLAGS+= -O3 > # > #CXXFLAGS+= -std=c++22 > # > WITH_CLANG_EXTRAS= YES > #WITH_LLVM_BINUTILS= YES > # > WITH_OFED_EXTRAS= YES > # > #WITH_BSD_GREP= YES > # > WITH_BEARSSL= YES > # > WITH_SORT_THREADS= YES > # > WITH_ZONEINFO_LEAPSECONDS_SUPPORT= YES > # > WITH_MALLOC_PRODUCTION= YES > # > WITHOUT_ASSERT_DEBUG= YES > WITHOUT_TESTS= YES > WITHOUT_DEBUG_FILES= YES > # > WITHOUT_CLEAN= YES > # > WITHOUT_REPRODUCIBLE_BUILD= YES > # > WITHOUT_LOADER_PXEBOOT= YES > #PXEBOOT_DEFAULT_INTERP= 4th > LOADERSIZE?= 525000 > # > WITH_BHYVE_SNAPSHOT= YES > # > NOINSTALL_DEBUG= YES > > KERNCONF= WALHALL > KERNCONFDIR= /etc/config/amd64/kernel_conf/ > > > > > > Van: A FreeBSD User > > Datum: vrijdag, 7 februari 2025 16:47 > > Aan: Ronald Klop > > CC: FreeBSD CURRENT > > Onderwerp: Re: make installkernel: failure: install: /usr/lib/debug/boot/kernel: No such > > file or directory > > > > > > Am Fri, 7 Feb 2025 14:45:04 +0100 > > > A FreeBSD User schrieb: > > > > > > > Am Fri, 7 Feb 2025 14:08:24 +0100 (CET) > > > > Ronald Klop schrieb: > > > > > > > > > Does it work if you just do > > > > > > > > > > mkdir -p /usr/lib/debug/boot/kernel/ > > > > > > > > > > and restart the make installkernel? > > > > > > > > > > Regards, > > > > > Ronald. > > > > > > > > > > > > Hello Ronald. > > > > > > > > I already did that, but the newly created directory seems to vanish each time I start > > > > "make installkernel" or "make kernel" (or with "-j8" for parallel install ...). > > > > > > > > I've issued newly "make cleanworld" and "make cleandir" additionaly and do a complete new > > > > build - again. It takes a least an hour on my 12 years old hardware ;-) > > > > > > > > Will report in when finished/failes again ... > > > > > > > > Kind regards, > > > > > > > > Oliver > > > > > > > > > No luck! After a complete fresh buildworld/buildkernel, the failure is persistant. > > > > > > > > > > > > > > > > > > > > > Van: A FreeBSD User > > > > > Datum: vrijdag, 7 februari 2025 13:56 > > > > > Aan: FreeBSD CURRENT > > > > > Onderwerp: make installkernel: failure: install: /usr/lib/debug/boot/kernel: No such > > > > > file or directory > > > > > > > > > > > > Hello, > > > > > > > > > > > > Host is actual running > > > > > > > > > > > > 15.0-CURRENT #40 main-n275030-46a9fb7287f4: Sat Jan 25 07:09:38 CET 2025 amd64 > > > > > > > > > > > > Trying to rebuild (from clean/scratch after "make cleanworld") and install > > > > > > kernel/world. > > > > > > > > > > > > make kernel works fine. > > > > > > make installkernel bails out with: > > > > > > > > > > > > [...] > > > > > > ===> usb/rsufw/rsurtl8712fw (install) > > > > > > install -T release -o root -g wheel -m 444 rsu-rtl8712fw.ko /boot/kernel/ > > > > > > ===> usb/mtw (install) > > > > > > install -T release -o root -g wheel -m 444 if_mtw.ko /boot/kernel/ > > > > > > install -T dbg -o root -g wheel -m 444 if_mtw.ko.debug /usr/lib/debug/boot/kernel/ > > > > > > install: /usr/lib/debug/boot/kernel: No such file or directory > > > > > > *** Error code 71 > > > > > > > > > > > > Stop. > > > > > > make[5]: stopped making "install" in /usr/src/sys/modules/usb/mtw > > > > > > *** Error code 1 > > > > > > > > > > > > Stop. > > > > > > make[4]: stopped making "install" in /usr/src/sys/modules/usb > > > > > > *** Error code 1 > > > > > > > > > > > > Stop. > > > > > > make[3]: stopped making "install" in /usr/src/sys/modules > > > > > > *** Error code 1 > > > > > > [...] > > > > > > > > > > > > On a similar box running CURRENT this failure doesn't show up, but the (working) box > > > > > > has been updated more often within the past two weeks. > > > > > > > > > > > > I fear that I might have issued "make delete-old" on the wrong console prior to "make > > > > > > installworld", but I do not know wether the failure shown is a typical/well known > > > > > > symptome. > > > > > > > > > > > > Any tips and tricks to fix this nasty failure? > > > > > > > > > > > > Thanks in advance > > > > > > > > > > > > o.h. > > > > > > > > > > > > -- > > > > > > > > > > > > A FreeBSD user > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > A FreeBSD user > > > > > > > > > > > > > > > > > > > > -- > > A FreeBSD user > > > > > > > ------=_Part_2993_1703446821.1738945130704 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit
Well. This if_mtw code is pretty new:


Maybe something is not compatible with your NODEBUG settings. 



Van: A FreeBSD User <freebsd@walstatt-de.de>
Datum: 7 februari 2025 17:12
Aan: Ronald Klop <ronald-lists@klop.ws>
CC: FreeBSD CURRENT <freebsd-current@freebsd.org>
Onderwerp: Re: make installkernel: failure: install: /usr/lib/debug/boot/kernel: No such file or directory

Am Fri, 7 Feb 2025 16:53:30 +0100 (CET)
Ronald Klop schrieb:

> What is in your /etc/make.conf and /etc/src.conf?
>
> Regards,
> Ronald.

Remark:

I use on all CURRENT boxes a special scheme for configuring the kernel/world. The kernel
config files are located in /etc/config/amd64/kernel_conf/, the kernel config file is

/etc/config/amd64/kernel_conf/WALHALL (for a certain kernel):

[...]
include         GENERIC
include         NODEVICE-WALHALL
include        "std.nodebug"
include         ADDON-WALHALL

#makeoptions    WITH_KERNEL_RETPOLINE=YES
makeoptions
WITH_EXTRA_TCP_STACKS=YES,WITH_MALLOC_PRODUCTION=YES,-DWITH_MALLOC_PRODUCTION

ident           WALHALL
[...]

NODEVICE-WALHALL: mostly GENERIC, but unwanted and unneeded options prepended with
"nooptions", same with devices not needed, prepended with "nodevice".
Also an exchange/addendum:
[...]
# For full debugger support use (turn off in stable branch):
include "std.nodebug"
to avoid debugging bloats.

In ADDON-XXXXX there are several non-optional devices/options in place.

I realised in my initial post this:

> > > > > ===> usb/mtw (install)      
> > > > > install -T release -o root -g wheel -m 444   if_mtw.ko /boot/kernel/
> > > > > install -T dbg -o root -g wheel -m 444   if_mtw.ko.debug /usr/lib/debug/boot/kernel/
> > > > > install: /usr/lib/debug/boot/kernel: No such file or directory
> > > > > *** Error code 71


usb/mtw is the ONLY(!) line in the whole output indicating the debug install of a kernel
module, although I thought I had all DEBUG stuff disabled.


/etc/make.conf:

mostly vanilla, except this last line:
[...]
##
##  make.conf.local
##
.include "/usr/local/etc/make.conf.local"

In /usr/local/etc/make.conf.local we setup some special treatments of several ports (options).
No world settings.


/etc/src.conf is :

#
CPUTYPE?=                               native
# World
#CFLAGS+=                               -O3
# Kernel
#COPTFLAGS+=                            -O3
#
#CXXFLAGS+=                             -std=c++22
#
WITH_CLANG_EXTRAS=              YES
#WITH_LLVM_BINUTILS=            YES
#
WITH_OFED_EXTRAS=               YES
#
#WITH_BSD_GREP=                 YES
#
WITH_BEARSSL=                   YES
#
WITH_SORT_THREADS=              YES
#
WITH_ZONEINFO_LEAPSECONDS_SUPPORT=      YES
#
WITH_MALLOC_PRODUCTION= YES
#
WITHOUT_ASSERT_DEBUG=   YES
WITHOUT_TESTS=                  YES
WITHOUT_DEBUG_FILES=    YES
#
WITHOUT_CLEAN=                  YES
#
WITHOUT_REPRODUCIBLE_BUILD=     YES
#
WITHOUT_LOADER_PXEBOOT= YES
#PXEBOOT_DEFAULT_INTERP=        4th
LOADERSIZE?=                    525000
#
WITH_BHYVE_SNAPSHOT=    YES
#
NOINSTALL_DEBUG=                YES

KERNCONF=                               WALHALL
KERNCONFDIR=                    /etc/config/amd64/kernel_conf/
>
>  
> Van: A FreeBSD User
> Datum: vrijdag, 7 februari 2025 16:47
> Aan: Ronald Klop
> CC: FreeBSD CURRENT
> Onderwerp: Re: make installkernel: failure: install: /usr/lib/debug/boot/kernel: No such
> file or directory
> >
> > Am Fri, 7 Feb 2025 14:45:04 +0100
> > A FreeBSD User schrieb:
> >   
> > > Am Fri, 7 Feb 2025 14:08:24 +0100 (CET)
> > > Ronald Klop schrieb:
> > >  
> > > > Does it work if you just do
> > > >
> > > > mkdir -p /usr/lib/debug/boot/kernel/
> > > >
> > > > and restart the make installkernel?
> > > >
> > > > Regards,
> > > > Ronald.    
> > >
> > >
> > > Hello Ronald.
> > >
> > > I already did that, but the newly created directory seems to vanish each time I start
> > > "make installkernel" or "make kernel" (or with "-j8" for parallel install ...).
> > >
> > > I've issued newly "make cleanworld" and "make cleandir" additionaly and do a complete new
> > > build - again. It takes a least an hour on my 12 years old hardware ;-)
> > >
> > > Will report in when finished/failes again ...
> > >
> > > Kind regards,
> > >
> > > Oliver    
> >
> >
> > No luck! After a complete fresh buildworld/buildkernel, the failure is persistant.
> >
> >   
> > > >
> > > >  
> > > > Van: A FreeBSD User
> > > > Datum: vrijdag, 7 februari 2025 13:56
> > > > Aan: FreeBSD CURRENT
> > > > Onderwerp: make installkernel: failure: install: /usr/lib/debug/boot/kernel: No such
> > > > file or directory    
> > > > >
> > > > > Hello,
> > > > >
> > > > > Host is actual running
> > > > >
> > > > > 15.0-CURRENT #40 main-n275030-46a9fb7287f4: Sat Jan 25 07:09:38 CET 2025 amd64
> > > > >
> > > > > Trying to rebuild (from clean/scratch after "make cleanworld") and install
> > > > > kernel/world.
> > > > >
> > > > > make kernel works fine.
> > > > > make installkernel bails out with:
> > > > >
> > > > > [...]      
> > > > > ===> usb/rsufw/rsurtl8712fw (install)      
> > > > > install -T release -o root -g wheel -m 444   rsu-rtl8712fw.ko /boot/kernel/      
> > > > > ===> usb/mtw (install)      
> > > > > install -T release -o root -g wheel -m 444   if_mtw.ko /boot/kernel/
> > > > > install -T dbg -o root -g wheel -m 444   if_mtw.ko.debug /usr/lib/debug/boot/kernel/
> > > > > install: /usr/lib/debug/boot/kernel: No such file or directory
> > > > > *** Error code 71
> > > > >
> > > > > Stop.
> > > > > make[5]: stopped making "install" in /usr/src/sys/modules/usb/mtw
> > > > > *** Error code 1
> > > > >
> > > > > Stop.
> > > > > make[4]: stopped making "install" in /usr/src/sys/modules/usb
> > > > > *** Error code 1
> > > > >
> > > > > Stop.
> > > > > make[3]: stopped making "install" in /usr/src/sys/modules
> > > > > *** Error code 1
> > > > > [...]
> > > > >
> > > > > On a similar box running CURRENT this failure doesn't show up, but the (working) box
> > > > > has been updated more often within the past two weeks.
> > > > >
> > > > > I fear that I might have issued "make delete-old" on the wrong console prior to "make
> > > > > installworld", but I do not know wether the failure shown is a typical/well known
> > > > > symptome.
> > > > >
> > > > > Any tips and tricks to fix this nasty failure?
> > > > >
> > > > > Thanks in advance
> > > > >
> > > > > o.h.
> > > > >
> > > > > --
> > > > >
> > > > > A FreeBSD user
> > > > >
> > > > >
> > > > >
> > > > >        
> > > >
> > > >      
> > >
> > >
> > >  
> >
> >
> >
> > --
> >
> > A FreeBSD user
> >
> >
> >
> >    
>
>  



-- 

A FreeBSD user




------=_Part_2993_1703446821.1738945130704--