Skip to content

llvmPackages: llvmPackages_21 -> llvmPackages_22 - #524570

Open
alexfmpe wants to merge 2 commits into
NixOS:stagingfrom
alexfmpe:llvm_22_bump
Open

alexfmpe wants to merge 2 commits into
NixOS:stagingfrom
alexfmpe:llvm_22_bump

Conversation

@alexfmpe

@alexfmpe alexfmpe commented May 26, 2026 •

Copy link
Copy Markdown
Member

EDIT(whispersofthedawn): mostly superseded by #562683

I tested a few packages on darwin back when first working on #494634. My notes show

  • hello
  • ispc
  • ghc
  • nodejs
  • boost
  • qt6Packages.qtwebengine

Any other sanity checks?

Things done

@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 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. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 8.has: changelog This PR adds or changes release notes 6.topic: stdenv Standard environment labels May 26, 2026
@nixpkgs-ci nixpkgs-ci Bot added the 8.has: documentation This PR adds or changes documentation label May 26, 2026
@RossComputerGuy
RossComputerGuy requested a review from a team May 26, 2026 22:25
@nixpkgs-ci nixpkgs-ci Bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label May 26, 2026
@alyssais
alyssais requested a review from a team May 27, 2026 09:19
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jul 19, 2026

@philiptaron philiptaron left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm doing some builds on Linux.

@philiptaron

philiptaron commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

After-action report from having my machine grind on this on Linux. No Darwin report.

compiler-rt bootstrap fails on aarch64: missing sys/auxv.h

pkgsCross.aarch64-multiplatform.pkgsLLVM.hello failed while building the libc-less bootstrap compiler-rt:

compiler-rt/lib/builtins/cpu_model/aarch64.c:51:10: fatal error: 'sys/auxv.h' file not found

Why? LLVM 22 refactored LSE-atomics runtime detection into cpu_model/aarch64.c with per-OS .inc files, related to the refactor around llvm/llvm-project#116706. The #elif defined(__linux__) branch unconditionally does #include <sys/auxv.h>. The bootstrap compiler-rt-no-libc stage builds before any libc exists, so the header is absent. The existing COMPILER_RT_DISABLE_AARCH64_FMV workaround (from NixOS/nixpkgs#393603) does not help since the new include sits outside the DISABLE_AARCH64_FMV guard.

Upstream status is apparently unreported. LLVM main still has the unguarded include, and issue/PR searches found nothing.

I resolved this by adding a postPatch in pkgs/development/compilers/llvm/common/compiler-rt/default.nix rewriting both #elif defined(__linux__) branches to #elif defined(__linux__) && __has_include(<sys/auxv.h>), so the libc-less build falls through to the stub (LSE detection disabled, matching the "unimplemented" path). aarch64 cross build succeeds with this. riscv64 was unaffected.

I'm not too happy with this and wouldn't ship it.

Firefox: clang 22 rejects the wasm32-wasi target triple

firefox failed in configure:

clang: error: argument '--target=wasm32-wasi' is deprecated, use --target=wasm32-wasip1 instead [-Werror,-Wdeprecated]
ERROR: Can't find clock() in wasi sysroot.

Firefox's RLBox sandbox compiles against pkgsCross.wasi32, whose triple is wasm32-unknown-wasi. clang 22 deprecated the wasm32-wasi triple in favor of wasm32-wasip1, and mach's configure probes the wasi compiler with -Werror, turning the deprecation warning into a hard failure.

To resolve this, I cherry-picked the open PR NixOS/nixpkgs#537429 ("systems: rename extant wasi targets to wasip1"). Firefox 153.0 then built and runs.

That PR, or a version of it, is a prerequisite for this PR to land.

@sepointon

Copy link
Copy Markdown
Contributor

FWIW, I think the wasip1 renaming PR looks good to go (modulo whatever new reviews turn up), so that oughtn't be a blocker.

@philiptaron

Copy link
Copy Markdown
Contributor

Landed #537429

nixpkgs-branch-check[bot]

This comment was marked as outdated.

nixpkgs-manual-edit-check[bot]

This comment was marked as outdated.

@nixpkgs-ci nixpkgs-ci Bot added llm-assisted Contributions that include code generation with LLMs 6.topic: python Python is a high-level, general-purpose programming language. 6.topic: haskell General-purpose, statically typed, purely functional programming language labels Aug 5, 2026
@nixpkgs-branch-check
nixpkgs-branch-check Bot dismissed their stale review August 5, 2026 09:01

Review dismissed automatically

@nixpkgs-manual-edit-check
nixpkgs-manual-edit-check Bot dismissed their stale review August 5, 2026 09:02

Review dismissed automatically

@vcunat vcunat removed 6.topic: python Python is a high-level, general-purpose programming language. 6.topic: haskell General-purpose, statically typed, purely functional programming language llm-assisted Contributions that include code generation with LLMs labels Aug 5, 2026
@vcunat

vcunat commented Aug 5, 2026 •

Copy link
Copy Markdown
Member

@vcunat vcunat mentioned this pull request Aug 6, 2026
4 of 13 tasks
@K900 K900 mentioned this pull request Aug 6, 2026
3 of 13 tasks
@balsoft balsoft moved this from Needs Review to Reviewed in Nixpkgs security review Aug 14, 2026
@nicoonoclaste nicoonoclaste mentioned this pull request Aug 24, 2026
2 of 7 tasks
@wegank wegank added the 2.status: wait for branch‐off Waiting for the next Nixpkgs branch‐off label Oct 14, 2026
@whispersofthedawn whispersofthedawn mentioned this pull request Oct 25, 2026
3 of 13 tasks
@whispersofthedawn whispersofthedawn removed the 2.status: wait for branch‐off Waiting for the next Nixpkgs branch‐off label Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: stdenv Standard environment 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 8.has: package (update) This PR updates a package to a newer version 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. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

Archived in project
Status: Reviewed
Status: In Progress

Development

Successfully merging this pull request may close these issues.

7 participants