Skip to content

rocmPackages.llvm.llvm: backport patches to support arm64e.x1 support in base llvm - #567075

Merged
LunNova merged 1 commit into
NixOS:staging-nextfrom
anund:fix_llvm
Sep 27, 2026
Merged

LunNova merged 1 commit into
NixOS:staging-nextfrom
anund:fix_llvm

Conversation

@anund

@anund anund commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Rocm fork of llvm uses 22.0.0 as a base until 7.2.4. The release after that is release 10 and it jumps to llvm 23.0.0 as a base. Removing the patch allows llvm to build again for hardware other than arm64e.x1.

If support need to be extended to arm64e.x1 before the update to Rocm 10 a separate patch would need to be created. I don't have access to relevant hardware so I won't be attempting that change.

@LunNova provided necessary patch changes to support arm64e.x1 in rocmPackages.llvm.llvm

cc @NixOS/rocm
cc @vcunat
Closes: #565696

Things done

@nixpkgs-ci
nixpkgs-ci Bot requested a review from a team September 26, 2026 07:11
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 6.topic: rocm ROCm is an Advanced Micro Devices software stack for graphics processing unit programming. labels Sep 26, 2026

@LunNova LunNova 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.

ty for picking this up.

if this works with ca drvs good to go as is, otherwise suggested series of backports instead

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Sep 26, 2026
PR NixOS#564039 introduced support for arm64e_x1 in base llvm. The support
required changes introduced in 22.1.0 not otherwise present in amd fork
of llvm based on 22.0.0. Backport additional patches to get allow the
patch to cleanly apply.
@anund

anund commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review --package pkgs.rocmPackages.llvm
Commit: 00433403504180db1ad0a5b2ac6011414b741be1


x86_64-linux

✅ 9 packages built:
  • pkgs.rocmPackages.llvm.bintools
  • pkgs.rocmPackages.llvm.libcxx
  • pkgs.rocmPackages.llvm.lld
  • pkgs.rocmPackages.llvm.llvm
  • pkgs.rocmPackages.llvm.openmp
  • pkgs.rocmPackages.llvm.rocmClangStdenv
  • pkgs.rocmPackages.llvm.clang-unwrapped
  • pkgs.rocmPackages.llvm.compiler-rt
  • pkgs.rocmPackages.llvm.clang

A larger review will likely run into #560210. This change just gets llvm building cleanly on staging-next.

@anund
anund requested a review from LunNova September 26, 2026 14:25
@anund anund changed the title rocmPackages.llvm.llvm: filter incompatible llvm 22.1.0 based patch rocmPackages.llvm.llvm: backport patches to support arm64e.x1 support in base llvm Sep 26, 2026
@LunNova
LunNova added this pull request to the merge queue Sep 27, 2026
Merged via the queue into NixOS:staging-next with commit 066cb83 Sep 27, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: rocm ROCm is an Advanced Micro Devices software stack for graphics processing unit programming. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 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.

2 participants