Bug 249068 - CURRENT: r365263: WITHOUT_DEBUGFILES: install: /usr/lib/debug/boot/kernel/: No such file or directory
Summary: CURRENT: r365263: WITHOUT_DEBUGFILES: install: /usr/lib/debug/boot/kernel/: N...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Many People
Assignee: Warner Losh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-02 18:01 UTC by O. Hartmann
Modified: 2025-05-12 22:46 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2020-09-02 18:01:03 UTC
Running CURRENT (FreeBSD 13.0-CURRENT #4 r365243: Wed Sep  2 13:13:07 CEST 2020 amd64) and trying to installkernel with /etc/src.conf containing WITHOUT_DEBUG_FILES=YES resuklts in the error shown below when running "make installkernel":

[...]

--- realinstall_subdir_zfs ---
install -T dbg -o root -g wheel -m 555   zfs.ko.debug /usr/lib/debug/boot/kernel/
install: /usr/lib/debug/boot/kernel/: No such file or directory
*** [_kmodinstall] Error code 71

make[4]: stopped in /usr/src/sys/modules/zfs
1 error
Comment 1 Mario Lobo 2025-05-07 12:20:30 UTC
5 years later and the problem reappears.

Current kernel:
FreeBSD 14.2-STABLE #0 stable/14-ccd9c1ef4e90: Wed Feb 12 20:19:39 -03 2025

I just did a git pull --ff-only today (May/6/2025)on my /usr/src.

I have WITHOUT_DEBUG_FILES=yes in /etc/src.conf

make buildworld: no errors
make buildkernel: no errors

make installkernel stops with the following:

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

Stop.
make[4]: stopped in /usr/src/sys/modules/mpi3mr
*** Error code 1

Stop.
make[3]: stopped in /usr/src/sys/modules
*** Error code 1

Stop.
make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/LOBO
*** Error code 1

Stop.
make[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src

All my .conf files are exactly the same as when I built the current kernel.
Comment 2 Herbert J. Skuhra 2025-05-07 12:35:43 UTC
yes, but this is a different issue caused by 80b069913d496bd73b0ea8e515b6bf3706530ea1.
MFC of 4c6cf054c9599a9a520edde8dc19956e5a4e826b is obviously missing.
Comment 3 Mario Lobo 2025-05-07 15:42:14 UTC
(In reply to Herbert J. Skuhra from comment #2)

Ok. In the case of 14 STABLE, how can I correct this?
Comment 4 Herbert J. Skuhra 2025-05-07 15:52:41 UTC
(In reply to Mario Lobo from comment #3)
Somehow I can't reproduce this problem on stable/14. Can you share your src.conf?

You can try 'git cherry-pick -n 4c6cf054c9599a9a520edde8dc19956e5a4e826b' or modify the file manually by removing line #10 : 

DEBUG_FLAGS= -g

(like https://cgit.freebsd.org/src/commit/?id=4c6cf054c9599a9a520edde8dc19956e5a4e826b)

I guess this is also needed for releng/14.3.
Comment 5 Mario Lobo 2025-05-07 15:55:44 UTC
(In reply to Herbert J. Skuhra from comment #4)

src.conf

KERNCONF=LOBO
WITH_CLANG=yes
WITH_LIBCPLUSPLUS=yes
WITH_CLANG_EXTRAS=yes
WITH_CLANG_IS_CC=yes
WITH_MALLOC_PRODUCTION=yes
WITHOUT_LLVM_ASSERTIONS=yes
WITHOUT_GCC=yes
WITHOUT_GNUCXX= yes
WITHOUT_GCC_BOOTSTRAP= yes
WITHOUT_REPRODUCIBLE_BUILD=yes
WITHOUT_DEBUG_FILES=yes
WITHOUT_FREEBSD_UPDATE=yes
WITHOUT_FLOPPY=yes
WITHOUT_GAMES= yes
WITHOUT_IPFILTER=yes
WITHOUT_QUOTAS=yes
WITHOUT_SVN=   yes
WITHOUT_SVNLITE=yes
WITHOUT_TESTS=yes
WITHOUT_TESTS_SUPPORT=yes

"modify the file manually by removing line #10 :"

Which file exactly?
WITHOUT_INETD=yes
Comment 6 Mario Lobo 2025-05-07 15:59:03 UTC
(In reply to Mario Lobo from comment #5)

never mind! I found it!

Thank you so much, Herbert!
Comment 7 commit-hook freebsd_committer freebsd_triage 2025-05-08 02:11:53 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=22ebbdea3f33fdeae5ee83077ea9c25979705f2f

commit 22ebbdea3f33fdeae5ee83077ea9c25979705f2f
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2025-05-08 02:09:45 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-05-08 02:11:13 +0000

    mpi3mr: Remove -g

    This -g was introduce when I didn't review all the cahnges to mpi3mr I
    was MFCing. Remove it. This is a direct commit.

    PR: 249068
    Fixes: 80b069913d496
    Sponsored by:           Netflix

 sys/modules/mpi3mr/Makefile | 2 --
 1 file changed, 2 deletions(-)
Comment 8 Mark Linimon freebsd_committer freebsd_triage 2025-05-11 10:48:49 UTC
^Triage: assigned to committer who resolved.
Comment 9 commit-hook freebsd_committer freebsd_triage 2025-05-12 22:46:31 UTC
A commit in branch releng/14.3 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=e79a3515c241b84dfa1c73f41a25c4cc992d616d

commit e79a3515c241b84dfa1c73f41a25c4cc992d616d
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2025-05-08 02:09:45 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-05-12 22:45:35 +0000

    mpi3mr: Remove -g

    This -g was introduce when I didn't review all the cahnges to mpi3mr I
    was MFCing. Remove it. This is a direct commit.

    PR: 249068
    Fixes: 80b069913d496
    Sponsored by:           Netflix
    Approved by:  re (cperciva)
    (cherry picked from commit 22ebbdea3f33fdeae5ee83077ea9c25979705f2f)

 sys/modules/mpi3mr/Makefile | 2 --
 1 file changed, 2 deletions(-)