-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
nix: fix build on musl platforms #112096
nix: fix build on musl platforms #112096
Conversation
A recent update to aws-c-common uses the nonportable glibc-specific pthread_attr_setaffinity_np function, which precludes compilation on musl.
This is just a temporary measure until musl compatibility is restored to aws-c-common.
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Fails to build for me
|
Uh oh, that's a gcc build failure. Looks like the x86_64-musl cross toolchain has broken since I opened this. I'll look into that. Still, this should immediately fix some other platforms which currently can't build nix, and it will be needed on x86_64-musl as well once the toolchain is working again. Give one of these a try (they should be easy on the CPU as these toolchains are in the cross-trunk cache): |
Nix is currently failing to build on musl because as of recently aws-c-common doesn't support musl.
awslabs/aws-c-common#754
Until aws-c-common builds on musl, nix should default to no AWS support on musl platforms.
Fixes e.g.
pkgsMusl.nix
Motivation for this change
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)