Skip to content

gbenchmark: constrain -Wno-error=c2y-extensions to clang - #547452

Merged
FliegendeWurst merged 1 commit into
NixOS:stagingfrom
trofi:gbenchmark-fix-gcc-17
Aug 3, 2026
Merged

FliegendeWurst merged 1 commit into
NixOS:stagingfrom
trofi:gbenchmark-fix-gcc-17

Conversation

@trofi

@trofi trofi commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Without the change gbencmark will fail the build on upcoming gcc-17 as:

cc1plus: error: ‘-Wno-error=c2y-extensions’: no option ‘-Wc2y-extensions’; did you mean ‘-Wc++20-extensions’?
ninja: build stopped: subcommand failed.

This happens because gcc never suported -Wc2y-extensions and gcc-17 not fails on unrecognized -W flags.

Things done

Without the change `gbencmark` will fail the build on upcoming `gcc-17`
as:

    cc1plus: error: ‘-Wno-error=c2y-extensions’: no option ‘-Wc2y-extensions’; did you mean ‘-Wc++20-extensions’?
    ninja: build stopped: subcommand failed.

This happens because `gcc` never suported `-Wc2y-extensions` and `gcc-17`
not fails on unrecognized `-W` flags.
@trofi trofi mentioned this pull request Jul 30, 2026
1 of 13 tasks
@nixpkgs-ci
nixpkgs-ci Bot requested a review from MiniHarinn July 30, 2026 16:45
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. labels Jul 30, 2026
@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Aug 3, 2026
@FliegendeWurst
FliegendeWurst added this pull request to the merge queue Aug 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 3, 2026
@FliegendeWurst
FliegendeWurst added this pull request to the merge queue Aug 3, 2026
Merged via the queue into NixOS:staging with commit 4becad7 Aug 3, 2026
36 of 38 checks passed
@trofi
trofi deleted the gbenchmark-fix-gcc-17 branch August 3, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants