llvmPackages_{20,21,git}.compiler-rt: no fmv on aarch64 without libc#409265
llvmPackages_{20,21,git}.compiler-rt: no fmv on aarch64 without libc#409265RossComputerGuy merged 1 commit intoNixOS:stagingfrom
Conversation
|
Upstream? |
|
Already tried going upstream but the PR was closed llvm/llvm-project#125922 |
|
Hmm, unfortunate… @Ericson2314 what do you think about applying this? Seems a real shame to be adding a new LLVM patch. |
|
@Ericson2314 just published a blog post adjacent to this: https://blog.obsidian.systems/compiler-bootstrapping-in-nixpkgs/ As patch author, my opinion is that given the timescales involved for a proper fix (e.g. llvm/llvm-project#127227), it would be good to unbreak this today in nixpkgs. |
Wrong issue linked? |
Right issue number, wrong repo. Fixed. |
|
Can we make the patch less linux-specific? Conceptually, we're talking about about generally building a "freestanding" compiler-rt on a non-freestanding platform, of which Linux is merely one example. |
It looks like setting |
8e018d7 to
31c3a2e
Compare
31c3a2e to
3bbd5e0
Compare
alyssais
left a comment
There was a problem hiding this comment.
Looks good but needs to go to staging.
fa5335a to
2a9a814
Compare
aarch64 FMV (Function MultiVersioning) is not available before the libc is available. This causes issues while building with compiler-rt on aarch64. By disabling FMV before the libc is available resolves missing symbol errors.
2a9a814 to
ded560c
Compare
|
Rebasing to fix CI |
|
Successfully created backport PR for |
|
This doesn’t appear to be necessary for Darwin – should we undo it there? I suppose |
|
I had pointed that out that this only really is needed for useLLVM. #409265 (comment) |
|
Sounds like we should adjust the definition of |
…patch
Things done
Fixes #393603
Reverts #380213
Required for #407738
We're sending this patch to master and backporting it so
pkgsLLVMactually works correctly with LLVM 20 and git.nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.