Re: make installkernel: failure: install: /usr/lib/debug/boot/kernel: No such file or directory
Date: Fri, 07 Feb 2025 16:18:50 UTC
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 <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 > > > > > > >