Skip to content

Fix --enable-invariants on FreeBSD#18131

Merged
behlendorf merged 1 commit intoopenzfs:masterfrom
asomers:WITH_DEBUG
Jan 14, 2026
Merged

Fix --enable-invariants on FreeBSD#18131
behlendorf merged 1 commit intoopenzfs:masterfrom
asomers:WITH_DEBUG

Conversation

@asomers
Copy link
Contributor

@asomers asomers commented Jan 13, 2026

The make symbols were never getting forwarded to the correct make subprocess. As far as I can tell, this has never worked. Either that, or something has changed in the behavior of make.

Motivation and Context

The --enable-invariants configure option had no effect on FreeBSD. ASSERT statements in the kernel module were being ignored.

Description

Pass the WITH_DEBUG and WITH_INVARIANTS variables to the make subprocess that builds the kernel.

How Has This Been Tested?

  1. Tested by examining the cc command line used to compile kernel sources
  2. Tested by inserting a trivial ASSERT(false) into the kernel code, and verifying that it causes a panic at runtime.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Quality assurance (non-breaking change which makes the code more robust against bugs)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

The make symbols were never getting forwarded to the correct make
subprocess.  As far as I can tell, this has never worked.  Either that,
or something has changed in the behavior of make.

Signed-off-by: Alan Somers <asomers@gmail.com>
@behlendorf behlendorf added Type: Building Indicates an issue related to building binaries Status: Code Review Needed Ready for review and testing labels Jan 13, 2026
Copy link
Contributor

@behlendorf behlendorf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not that familiar with the FreeBSD build system but this seems pretty reasonable.

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Jan 14, 2026
@behlendorf behlendorf merged commit 3fffe4e into openzfs:master Jan 14, 2026
39 of 42 checks passed
@asomers asomers deleted the WITH_DEBUG branch January 16, 2026 19:54
amotin pushed a commit to amotin/zfs that referenced this pull request Jan 29, 2026
The make symbols were never getting forwarded to the correct make
subprocess.  As far as I can tell, this has never worked.  Either that,
or something has changed in the behavior of make.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alan Somers <asomers@gmail.com>
Closes openzfs#18131
mcmilk pushed a commit to mcmilk/zfs that referenced this pull request Jan 31, 2026
The make symbols were never getting forwarded to the correct make
subprocess.  As far as I can tell, this has never worked.  Either that,
or something has changed in the behavior of make.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alan Somers <asomers@gmail.com>
Closes openzfs#18131
amotin pushed a commit to amotin/zfs that referenced this pull request Feb 3, 2026
The make symbols were never getting forwarded to the correct make
subprocess.  As far as I can tell, this has never worked.  Either that,
or something has changed in the behavior of make.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alan Somers <asomers@gmail.com>
Closes openzfs#18131
amotin pushed a commit to amotin/zfs that referenced this pull request Feb 3, 2026
The make symbols were never getting forwarded to the correct make
subprocess.  As far as I can tell, this has never worked.  Either that,
or something has changed in the behavior of make.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alan Somers <asomers@gmail.com>
Closes openzfs#18131
lundman pushed a commit to openzfsonosx/openzfs-fork that referenced this pull request Feb 5, 2026
The make symbols were never getting forwarded to the correct make
subprocess.  As far as I can tell, this has never worked.  Either that,
or something has changed in the behavior of make.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alan Somers <asomers@gmail.com>
Closes openzfs#18131
tonyhutter pushed a commit that referenced this pull request Feb 5, 2026
The make symbols were never getting forwarded to the correct make
subprocess.  As far as I can tell, this has never worked.  Either that,
or something has changed in the behavior of make.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alan Somers <asomers@gmail.com>
Closes #18131
lundman pushed a commit to openzfsonwindows/openzfs that referenced this pull request Feb 23, 2026
The make symbols were never getting forwarded to the correct make
subprocess.  As far as I can tell, this has never worked.  Either that,
or something has changed in the behavior of make.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alan Somers <asomers@gmail.com>
Closes openzfs#18131
lundman pushed a commit to openzfsonwindows/openzfs that referenced this pull request Feb 23, 2026
The make symbols were never getting forwarded to the correct make
subprocess.  As far as I can tell, this has never worked.  Either that,
or something has changed in the behavior of make.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alan Somers <asomers@gmail.com>
Closes openzfs#18131
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Accepted Ready to integrate (reviewed, tested) Type: Building Indicates an issue related to building binaries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants