-
-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
llvmPackages_7: misc improvements for lldClang #120790
Conversation
Result of 8 packages marked as broken and skipped:
23 packages skipped due to time constraints:
3 packages built successfully:
2 suggestions:
|
Provide a version of nixpkgs which is built using the LLVM toolchain. This is achieved by reusing the useLLVM attribute usable in the cross toolchain bootstrapping which is a) perfectly acceptable and b) the only way to bootstrap a LLVM stdenv across platforms without unreasonable amounts of work. This is mostly working now since we fixed some issues with llvmPackages_7.lldClang in NixOS#119717 and compile glibc with gcc at all times as of NixOS#119786 (since clang can't compile our glibc at the moment). There are seemingly some issues left to be ironed out, for example the C++ library of ncurses fails to build with a linking issue. I have attempted to alleviate that problem with NixOS#120790, but to no avail so far. Nonetheless, having a working pkgsLLVM.hello is a good start. A currently present issue is that there is no way to change the libc since there is some issue with lldClang actually picking up on the set libc. This will need investigation and fixing.
03a5863
to
c188d47
Compare
c188d47
to
8ac82b4
Compare
* Use LLVM_PATH instead of llvm-config * Pass less unnecessary options to cmake
This keeps the "main bootstrap" together.
8ac82b4
to
894f0c6
Compare
This was failing eval but I merged as part of #122655 which wasn't. Bisecting |
Motivation for this change
This stems from my attempts to make
ncurses
(more specifically its C++ library) work withuseLLVM == true
. While this hasn't worked out yet, the libunwind derivation is at least a bit better now.Curiously, it works with LLVM 8 and I'm not sure what difference between the versions exactly causes that.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)