Skip to content

buildMozillaMach: use llvmPackages_20 on aarch64-darwin#456351

Merged
mweinelt merged 1 commit intoNixOS:masterfrom
booxter:ff-llvm-21-issue
Oct 28, 2025
Merged

buildMozillaMach: use llvmPackages_20 on aarch64-darwin#456351
mweinelt merged 1 commit intoNixOS:masterfrom
booxter:ff-llvm-21-issue

Conversation

@booxter
Copy link
Copy Markdown
Contributor

@booxter booxter commented Oct 28, 2025

There's a bug in llvm 21 that makes Firefox crash on loading a PNG
favicon that is being investigated in Mozilla bug tracker:

https://bugzilla.mozilla.org/show_bug.cgi?id=1995582

While this is being fixed, switch to llvmPackages_20 for aarch64-darwin.
(x86_64-darwin is not affected.)

Note: this change will also affect Thunderbird. Though strictly speaking
not a required change because we are not aware of a specific issue with
Thunderbird (yet), I feel we may want to stick to the same LLVM for both
types of Mozilla apps while this is being investigated. It also
simplifies the code somewhat.

Fixes #453372

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.

Add a 👍 reaction to pull requests you find important.

@ofborg ofborg Bot added the 6.topic: darwin Running or building packages on Darwin label Oct 28, 2025
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Oct 28, 2025
@IanHollow
Copy link
Copy Markdown
Contributor

@booxter I also thought it would be important to link this issue as well https://bugzilla.mozilla.org/show_bug.cgi?id=1995582

@booxter booxter marked this pull request as draft October 28, 2025 02:33
@booxter
Copy link
Copy Markdown
Contributor Author

booxter commented Oct 28, 2025

It's not just "important". This was the link I was supposed to paste, it's a typo. :)

I am also going to move this special case for LLVM 20 into the builder helper function because looks like there are still some scenarios when at least some build inputs will be 21 despite the override (specifically for LTO).

There's a bug in llvm 21 that makes Firefox crash on loading a PNG
favicon that is being investigated in Mozilla bug tracker:

https://bugzilla.mozilla.org/show_bug.cgi?id=1995582

While this is being fixed, switch to llvmPackages_20 for aarch64-darwin.
(x86_64-darwin is not affected.)

Note: this change will also affect Thunderbird. Though strictly speaking
not a required change because we are not aware of a specific issue with
Thunderbird (yet), I feel we may want to stick to the same LLVM for both
types of Mozilla apps while this is being investigated. It also
simplifies the code somewhat.

Fixes NixOS#453372
@nixpkgs-ci nixpkgs-ci Bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Oct 28, 2025
@booxter booxter marked this pull request as ready for review October 28, 2025 03:25
@booxter
Copy link
Copy Markdown
Contributor Author

booxter commented Oct 28, 2025

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 456351
Commit: 40eea21c1e7baf2ec02fbc5cf0a58805371c3ef4


aarch64-darwin

✅ 13 packages built:
  • firefox-beta-unwrapped
  • firefox-beta-unwrapped.symbols
  • firefox-devedition-unwrapped
  • firefox-devedition-unwrapped.symbols
  • firefox-esr-unwrapped (firefox-esr-140-unwrapped)
  • firefox-esr-unwrapped.symbols (firefox-esr-140-unwrapped.symbols)
  • firefox-unwrapped
  • firefox-unwrapped.symbols
  • librewolf-unwrapped
  • thunderbird-140-unwrapped (thunderbird-esr-unwrapped, thunderbirdPackages.thunderbird-140, thunderbirdPackages.thunderbird-esr)
  • thunderbird-140-unwrapped.symbols (thunderbird-esr-unwrapped.symbols, thunderbirdPackages.thunderbird-140.symbols, thunderbirdPackages.thunderbird-esr.symbols)
  • thunderbird-unwrapped (thunderbird-latest-unwrapped, thunderbirdPackages.thunderbird, thunderbirdPackages.thunderbird-latest)
  • thunderbird-unwrapped.symbols (thunderbird-latest-unwrapped.symbols, thunderbirdPackages.thunderbird-latest.symbols, thunderbirdPackages.thunderbird.symbols)

@mweinelt mweinelt added this pull request to the merge queue Oct 28, 2025
Merged via the queue into NixOS:master with commit 7056c17 Oct 28, 2025
30 of 32 checks passed
@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 Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 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

3 participants