New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Synchronize cross-stdenv LLVM input with pkgs.llvmPackages #107594
Conversation
I imagine this is a big change for Darwin? And you might want to bump the CC @NixOS/darwin-maintainers |
@@ -66,7 +66,7 @@ in lib.init bootStages ++ [ | |||
else if crossSystem.isDarwin | |||
then buildPackages.llvmPackages.clang | |||
else if crossSystem.useLLVM or false | |||
then buildPackages.llvmPackages_8.lldClang |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Who is actually using this cross useLLVM
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WASM. I often use it when testing because its much faster to bootstrap.
I probably should have opened an issue rather than a PR. |
Would it be better to downgrade the cross LLVM to |
WASM won't work with LLVM 7 IIRC. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/cross-compiling-with-clang-for-risc-v/6683/7 |
pkgs/top-level/all-packages.nix
Outdated
@@ -9865,7 +9865,7 @@ in | |||
llvm_6 = llvmPackages_6.llvm; | |||
llvm_5 = llvmPackages_5.llvm; | |||
|
|||
llvmPackages = recurseIntoAttrs llvmPackages_7; | |||
llvmPackages = recurseIntoAttrs llvmPackages_8; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that LLVM 11 is out, why are we so conservative here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ask @NixOS/darwin-maintainers I would assume people try to bump this all the time and there are issues.
be47fcb
to
ee74ca3
Compare
I've rewritten the PR to make the llvmPackages version explicit for some platforms in all-packages.nix, seems like the most transparent thing to do. |
ping @Ericson2314 |
@ehmry hehe nice escape hatch! Also I suppose we could send to master too? I meant to not merge and post that instead haha. |
@Ericson2314 yes, that would be great, this gets me closer to building Genode using an overlay against nixpkgs master. |
Done. |
Do you know how I would override this attribute? I'd like to bump the version of llvmPackages for riscv64 (since llvm 7 doesn't exist for that platform) but I'm not sure where to bump it. |
If you can use a overlay I would do this:
|
Actually I think |
you probably want if |
Motivation for this change
Refer to the unversioned
llvmPackages
inpkgs/stdenv/cross/default.nix
so that it can overriden via an overlay. As a prerequisitellvmPackages
must be updated for consistency with the current cross LLVM.