Skip to content

Fix build with llvm 22 for several packages - #494634

Merged
alexfmpe merged 4 commits into
NixOS:stagingfrom
alexfmpe:llvm22-fixes
Jul 28, 2026
Merged

alexfmpe merged 4 commits into
NixOS:stagingfrom
alexfmpe:llvm22-fixes

Conversation

@alexfmpe

Copy link
Copy Markdown
Member

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

@alexfmpe
alexfmpe requested a review from reckenrode February 27, 2026 08:28
github-actions[bot]

This comment was marked as outdated.

@nixpkgs-ci
nixpkgs-ci Bot requested review from a team, UlyssesZh and philiptaron February 27, 2026 08:57
@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: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Feb 27, 2026
Comment thread pkgs/by-name/db/dbus/package.nix Resolved
github-actions[bot]

This comment was marked as outdated.

@alexfmpe
alexfmpe changed the base branch from master to staging February 27, 2026 20:11
@nixpkgs-ci nixpkgs-ci Bot closed this Feb 27, 2026
@nixpkgs-ci nixpkgs-ci Bot reopened this Feb 27, 2026
@github-actions
github-actions Bot dismissed their stale review February 27, 2026 20:11

Review dismissed automatically

@alexfmpe alexfmpe mentioned this pull request Mar 1, 2026
2 of 13 tasks
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Apr 9, 2026
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. and removed 2.status: merge conflict This PR has merge conflicts with the target branch labels May 8, 2026
Comment thread pkgs/by-name/fo/fontforge/package.nix Outdated
Comment on lines +86 to +87
"-Wno-error=incompatible-pointer-types"
+ lib.optionalString stdenv.hostPlatform.isi686 "-msse2 -mfpmath=sse";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Wouldn't this cause the string to be -Wno-error=incompatible-pointer-types-msse2 -mfpmath=sse (without the space between -types and -msse2?

Comment thread pkgs/by-name/gb/gbenchmark/package.nix Outdated
Comment on lines +43 to +44
"-Wno-error=c2y-extensions"
+ lib.optionalString stdenv.cc.isClang "-Wno-c++17-attribute-extensions";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same as the fontforge one

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oh well spotted. As you say

$ nix-shell -A gbenchmark --run 'echo $NIX_CFLAGS_COMPILE'
-Wno-error=c2y-extensions-Wno-c++17-attribute-extensions -frandom-seed=9x5r6wm37q ...

It somehow still worked, or at least the first of the two -Wno was active?
I converted everything to use lib.join " ".

@alexfmpe
alexfmpe force-pushed the llvm22-fixes branch 2 times, most recently from e6e1b34 to c840141 Compare May 10, 2026 00:03
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label May 28, 2026
@nixpkgs-ci
nixpkgs-ci Bot requested a review from MiniHarinn June 30, 2026 23:31
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Jun 30, 2026

@alyssais alyssais left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks fine for what it is. I do worry about the long term impact of adding flag overrides that never get cleaned up as opposed to patches fixing the issue that will get noticed and removed on updates, though…

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jul 14, 2026
@alexfmpe

Copy link
Copy Markdown
Member Author

Looks fine for what it is. I do worry about the long term impact of adding flag overrides that never get cleaned up as opposed to patches fixing the issue that will get noticed and removed on updates, though…

Fair point. I don't mind having a go at that, but it might take a while

@alexfmpe

Copy link
Copy Markdown
Member Author

Fair point. I don't mind having a go at that, but it might take a while

Merging to unblock the bump, will circle back on the patches

@alexfmpe
alexfmpe added this pull request to the merge queue Jul 28, 2026
Merged via the queue into NixOS:staging with commit ce5458b Jul 28, 2026
27 of 29 checks passed
@alexfmpe
alexfmpe deleted the llvm22-fixes branch July 28, 2026 23:02
@trofi

trofi commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Will break the gbenchmark build on gcc-17. Proposed the constrain to clang as #547452

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

Labels

10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants