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
llvm 6: init #34457
llvm 6: init #34457
Conversation
I introduced a failure in the evaluator today, sorry about that. Testing for a fix: @GrahamcOfBorg eval |
@GrahamcOfBorg build clang_6 lld_6 lldb_6 |
Failure on aarch64-linux (full log) Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Partial log (click to expand)
|
Failure on x86_64-linux (full log) Partial log (click to expand)
|
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.
Everything builds on darwin.
mv compiler-rt-* $sourceRoot/projects/compiler-rt | ||
''; | ||
|
||
outputs = [ "out" ] |
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.
Does this need something similar to #33871 to get python out of the closure?
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.
Good call. Added.
|
||
llvm = llvmPackages.llvm; | ||
|
||
llvm_6 = llvmPackages_6.llvm; |
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.
Should we keep exposing all of these top-level?
in stdenv.mkDerivation (rec { | ||
name = "llvm-${version}"; | ||
|
||
unpackPhase = '' |
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.
I cleaned this up on a test branch recently, let me see if I can find it.
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.
These all need to be refactored, was thinking of starting with refactoring 5 and 6 (possibly 4 and earlier) since they especially are so similar.
Soon (tm)!
EDIT: err, but that's not to say cleanup would be very welcome in the meantime! 👍
8dafcfc
to
585652b
Compare
rc2 has been tagged, but appears they don't upload the source tarballs until the "release testers" all build and upload binaries, so should be available in a few days. Not worth bothering with grabbing off of SVN in the meantime, IMO. |
rc2 has been out for a bit, but I haven't gotten to updating this yet, sorry! |
I don't think this is urgent since the build works. |
585652b
to
da39e61
Compare
da39e61
to
3e4e2cf
Compare
rebased and fixed merge conflicts. Added testing variants like we have for other versions. Will be adding musl compat fixes too, now that they're in master as well 👍. |
Postponing musl fixes here while resolving discussion about musl ... EDIT: nevermind, useful enough for my own purposes to justify :D. |
81f3746
to
2554496
Compare
rebased, rc2 -> rc3 \o/ |
Hold on to your lugnuts! LLVM 6 final has been tagged: http://lists.llvm.org/pipermail/release-testers/2018-March/000667.html Will be a few more days for them to prepare the release and official source tarballs but .... soon!! |
Great! |
Unlike that PR, however, this doesn't need to go to staging since no one depends on a package that doesn't exist yet :).
Release notes: http://releases.llvm.org/6.0.0/docs/ReleaseNotes.html Note this adds support for "retpolines", which may be of interest to those using clang-based stdenv's. |
llvm 6: init (cherry picked from commit b09b557)
Sorry, but how do I use the clang 6? |
I don't think it's hit any channels yet, so in the meantime you can use something like this: $ NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/master.tar.gz nix-shell -p clang_6 and use |
Motivation for this change
Start building and testing LLVM 6, currently on RC1.
Helps ensure release doesn't have bugs re:NixOS / our projects, and hopefully enables us to at least make LLVM 6 available after final release and update the default shortly after.
Anyway, test test please! :)
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)