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, Nov 7, 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
Unknown Object (File)
Sep 23 2024, 12:51 AM
Unknown Object (File)
Sep 5 2024, 12:43 PM
Unknown Object (File)
Sep 3 2024, 8:44 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.