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)
Thu, Mar 28, 9:52 AM
Unknown Object (File)
Feb 18 2024, 9:32 PM
Unknown Object (File)
Dec 20 2023, 6:01 AM
Unknown Object (File)
Dec 12 2023, 3:59 PM
Unknown Object (File)
Nov 6 2023, 5:57 AM
Unknown Object (File)
Sep 6 2023, 7:46 PM
Unknown Object (File)
Sep 6 2023, 7:46 PM
Unknown Object (File)
Sep 6 2023, 7:42 PM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.