Page MenuHomeFreeBSD

openzfs: fix gcc in-kernel builds
ClosedPublic

Authored by rlibby on Dec 20 2020, 8:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jan 27, 10:12 AM
Unknown Object (File)
Dec 10 2024, 7:43 PM
Unknown Object (File)
Nov 24 2024, 2:56 AM
Unknown Object (File)
Nov 7 2024, 5:52 PM
Unknown Object (File)
Oct 7 2024, 10:54 AM
Unknown Object (File)
Oct 4 2024, 12:25 AM
Unknown Object (File)
Sep 29 2024, 2:33 PM
Unknown Object (File)
Sep 23 2024, 4:19 AM
Subscribers

Details

Summary

Fix gcc builds of in-kernel modules using CDDL_CFLAGS (e.g. options
ZFS).

  • Remove nonexistent include dirs for -Wmissing-include-dirs
  • Suppress -Wnested-externs, a useless warning
  • Sort and uniq warning flags while here
Test Plan

With options ZFS and dependencies added to GENERIC:

make buildkernel
env MAKEOBJDIRPREFIX=/usr/obj/gcc9 CROSS_TOOLCHAIN=amd64-gcc9 make buildkernel

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 35547
Build 32447: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Dec 21 2020, 1:59 PM
sys/conf/kern.pre.mk
230

BTW, @brewery discovered last week that the use of -Wno-uninitialized is covering up bugs in dtrace. I think he is looking at removing this option.

sys/conf/kern.pre.mk
230

Glad to hear it. I'll make sure to try the gcc build again after that goes in.

This revision was automatically updated to reflect the committed changes.