[Bug 284639] if_mtw.ko: make installkernel tries to install debug binary although DEBUG is disabled

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 07 Feb 2025 16:51:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284639

            Bug ID: 284639
           Summary: if_mtw.ko: make installkernel tries to install debug
                    binary although DEBUG is disabled
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: ohartmann@walstatt.org

On recent CURRENT (FreeBSD 15.0-CURRENT #40 main-n275030-46a9fb7287f4: Sat Jan
25 07:09:38 CET 2025 amd) with settings in "GENERIC" like
[...]
# For full debugger support use (turn off in stable branch):
include "std.nodebug"

and /etc/src.conf retrofitted with

[...]
NOINSTALL_DEBUG=YES
WITHOUT_ASSERT_DEBUG=YES
WITHOUT_TESTS=YES
WITHOUT_DEBUG_FILES=YES
WITHOUT_CLEAN=YES
WITHOUT_REPRODUCIBLE_BUILD=YES


results in an attempt to install if_mtw(4) with debug informations I presume:
[...]
--- _kmodinstall ---
--- realinstall_subdir_usb/mtw ---
install -T dbg -o root -g wheel -m 444   if_mtw.ko.debug
/usr/lib/debug/boot/kernel/
--- realinstall_subdir_usb/run ---
install -T release -o root -g wheel -m 444   if_run.ko /boot/kernel/
--- realinstall_subdir_usb/rum ---
install -T release -o root -g wheel -m 444   if_rum.ko /boot/kernel/
--- realinstall_subdir_usb/mtw ---
install: /usr/lib/debug/boot/kernel: No such file or directory
*** [_kmodinstall] Error code 71

make[5]: stopped making "install" in /usr/src/sys/modules/usb/mtw
*** [modules-install] Error code 6

-- 
You are receiving this mail because:
You are the assignee for the bug.