Skip to content

Add option -fms-extensions to kernel tests#84

Open
tzafrir-mellanox wants to merge 1 commit intoopenucx:masterfrom
tzafrir-mellanox:ms_extensions
Open

Add option -fms-extensions to kernel tests#84
tzafrir-mellanox wants to merge 1 commit intoopenucx:masterfrom
tzafrir-mellanox:ms_extensions

Conversation

@tzafrir-mellanox
Copy link
Copy Markdown

Kernel versions >= 6.19 are being built with -fms-extensions, and this allows simpler handling of annonymous structs.

Without it, a simple test of code that includes '#include <linux/fs.h>' fails in Linux 7.0.

Kernel versions >= 6.19 are being built with -fms-extensions, and this
allows simpler handling of annonymous structs. Without it, a simple test
of code that includes '#include <linux/fs.h>' fails in Linux 7.0.
@tzafrir-mellanox
Copy link
Copy Markdown
Author

As usual, ubuntu2310 and rhel9 tests are broken.

@tvegas1
Copy link
Copy Markdown
Collaborator

tvegas1 commented Apr 10, 2026

Fix for CI: #85

Comment thread m4/ac_kernel_checks.m4
save_CFLAGS="$CFLAGS"
save_CPPFLAGS="$CPPFLAGS"
CFLAGS="${KERNEL_CHECKS_CFLAGS:--g -O2}"
CFLAGS="${KERNEL_CHECKS_CFLAGS:--g -O2 -fms-extensions}"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

do you know which release we can add to CI to test that?

@tvegas1
Copy link
Copy Markdown
Collaborator

tvegas1 commented Apr 22, 2026

#85 is merged, CI should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants