-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
libcxx: fix build on linux musl #70244
Conversation
@GrahamcOfBorg build libunwind libcxx libcxxabi |
@GrahamcOfBorg build pkgsStatic.libunwind pkgsStatic.libcxx pkgsStatic.libcxxabi |
This should go to staging as it's darwin stdenv rebuild. Good work :) |
Yeah unfortunately due to https://github.com/NixOS/nixpkgs/pull/70244/files#diff-94997ad820e0a722e115eb7b6b93a404R17 I couldn't avoid the rebuild on non-static |
@@ -9,6 +9,11 @@ stdenv.mkDerivation rec { | |||
sha256 = "1y0l08k6ak1mqbfj6accf9s5686kljwgsl4vcqpxzk5n74wpm6a3"; | |||
}; | |||
|
|||
# There's no "gcc_s" (shared gcc lib) on musl. |
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.
According to this, libunwind is broken on musl:
https://github.com/libunwind/libunwind#libc-requirements
We should probably switch to using LLVM's libunwind. I've added it for llvm/8/, but it may make sense to add it here as well:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/llvm/8/libunwind.nix
We can probably drop the first commit once #70321 lands |
Dropped the first commit since libunwind isn't needed anymore (#70321 ). Good to merge? |
(do we have a musl team (@nixos/musl? no?)? Regardless, and no worries for new folks, but please cc me on musl issues :). I don't always have time, maybe less time than I'd like, but I would definitely fix something like this should it break again in the future! Sorry folks!) |
Motivation for this change
Before this,
libunwind
,libcxxabi
andlibcxx
failed to build on x86_64-linux-musl.On current master with
on this branch:
I have not, I repeat not, built the
pkgsStatic
versions on darwin, although thepkgs
versions do still work.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @basvandijk