Skip to content

llvmPackages.llvm: propagate deps to nativeCC in cross build#260543

Draft
reckenrode wants to merge 12 commits intoNixOS:masterfrom
reckenrode:llvm-cross
Draft

llvmPackages.llvm: propagate deps to nativeCC in cross build#260543
reckenrode wants to merge 12 commits intoNixOS:masterfrom
reckenrode:llvm-cross

Conversation

@reckenrode
Copy link
Contributor

Description of changes

Cross-compiling LLVM fails on Darwin because it cannot link libc++abi. This is because the native compiler’s dependencies are not propagated as expected. This PR propagates them manually for nativeCC when cross-compiling.

Note that x86_64-darwin to aarch64-darwin cross can be tested on master, but aarch64-darwin to x86_64-darwin cross requires #256590.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added 6.topic: cross-compilation Building packages on a different platform than they will be used on 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Oct 11, 2023
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Mar 20, 2024
@reckenrode reckenrode marked this pull request as draft April 19, 2024 01:30
@RossComputerGuy RossComputerGuy self-requested a review April 19, 2024 02:17
@rrbutani rrbutani added the 6.topic: llvm/clang Issues related to llvmPackages, clangStdenv and related label May 27, 2024
@wegank wegank added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: cross-compilation Building packages on a different platform than they will be used on 6.topic: llvm/clang Issues related to llvmPackages, clangStdenv and related 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants