Bug 271651 - MINIMAL-based NOINET kernel build fails after base 98d06eea14a5
Summary: MINIMAL-based NOINET kernel build fails after base 98d06eea14a5
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL: https://cgit.freebsd.org/src/commit/?...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-26 11:57 UTC by (intentionally left blank)
Modified: 2024-04-13 04:44 UTC (History)
2 users (show)

See Also:


Attachments
legacyipbegone.diff (943 bytes, patch)
2023-05-26 11:57 UTC, (intentionally left blank)
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description (intentionally left blank) 2023-05-26 11:57:39 UTC
Created attachment 242421 [details]
legacyipbegone.diff

$ cp sys/amd64/conf/MINIMAL sys/amd64/conf/MINIMAL-NOINET
$ echo "nooptions INET" >> sys/amd64/conf/MINIMAL-NOINET
$ make KERNCONF=MINIMAL-NOINET NO_MODULES=yes -j$(nproc) buildkernel

[...]
--- in6_pcb.o ---                   
/usr/src/sys/netinet6/in6_pcb.c:571:16: error: variable 'inp' set but not used [-Werror,-Wunused-but-set-variable]
        struct  inpcb *inp;
                       ^                                                    
/usr/src/sys/netinet6/in6_pcb.c:595:16: error: variable 'inp' set but not used [-Werror,-Wunused-but-set-variable]
        struct  inpcb *inp;
                       ^    
2 errors generated.
*** [in6_pcb.o] Error code 1
[...]

"Blind" diff (built, but I didn't look if it's right) attached.
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2023-05-27 17:53:08 UTC
98d06eea14a5 (2023-05-25) was: 

> sys: Enable -Wunused-but-set-variable for clang 15+.
> 
> It was already enabled for older clang versions and GCC.
Comment 2 (intentionally left blank) 2024-04-13 04:44:52 UTC
Should be fixed after base 042fb58d009e