nix: fix build on musl platforms#112096
Merged
SuperSandro2000 merged 2 commits intoNixOS:masterfrom Feb 23, 2021
Merged
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: |
Member
|
Fails to build for me |
Contributor
Author
|
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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.nixMotivation for this change
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)