-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
Fix GHC not building with musl #129289
Merged
Merged
Fix GHC not building with musl #129289
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
8d11c13
pkgsMusl.haskell.compiler.ghc901: Fix evaluation with musl
nh2 a666b15
argp-standalone: Add `-fPIC`.
nh2 947f757
haskell.packages.ghc8102Binary: Add comments
nh2 67e8744
ghc: Refactor: Extract `ghcBinDists`
nh2 8a2de70
haskell.compiler.ghc8102Binary: Fix build on i686.
nh2 1326009
haskell.compiler.ghc8102Binary: Add check for arch-specific libraries.
nh2 5777bd3
haskell.compiler.ghc8102Binary: Remove `sed` of `/usr/bin/*` commands.
nh2 da1cf8c
pkgsMusl.haskell.compiler.ghc8102Binary: Fix musl segfault. Fixes #11…
nh2 c866b8a
haskell.compiler.ghc8102Binary: find `-executable` -> `-perm -0100`
nh2 f154c3a
haskell.compiler.ghc865Binary: Disable "pie" hardening. See #129247
nh2 8b15fcc
pkgsMuslhaskell.compiler.{ghc884,ghc8104}: Use GHC 8.10 as bootstrap …
nh2 8adcd39
ghc: Add comments about `hardeningDisable` `pie` for musl
nh2 f4e62a9
pkgsMusl.haskell.compiler.ghc{8104,884,901,HEAD}: Disable sphinx for …
nh2 c6a7759
haskell.compiler.ghc8102Binary: Split `ghcBinDists` set into default …
nh2 0044356
release-haskell.nix: Add pkgsMusl haskell compilers to Hydra jobs
nh2 63b1e6e
ghc*-binary: Remove no-op `--with-gmp-libraries`
nh2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.
(FYI) This seems to be mostly because of
librsvg
. Issue #126611Regardless, I don't think we want the other dependencies for cross, so +1
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.
Sphinx is only used at build time, so all these should be no problem except for annoying bugs where stuff is target sensative.
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.
@Ericson2314 Yes, the problem with it is that a lot of those build-time dependencies often simply have broken builds in
pkgsMusl
.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.
pkgsMusl.buildPackages
usesglibc
though, so these should just work as normally.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.
Sphinx definitely pulls in musl-based builds of the big stuff when put into
nativeBuildInputs
.With
enableDocs = true;
:Investigation:
nix-store -q --tree $(NIX_PATH=nixpkgs=. nix-instantiate -A pkgsMusl.haskell.compiler.ghc8104)
nix-store -q --tree $(NIX_PATH=nixpkgs=. nix-instantiate -A haskell.compiler.ghc8104)
Diffing those two librsvg derivations:
nix-diff /nix/store/pr7m6hbnn9xhcwmq1mnxcygnm06qkfgk-librsvg-2.50.6.drv /nix/store/bl58hg9v5ni17wl5255n6gn8ryqn0ncr-librsvg-2.50.6.drv
glibc-bootstrap
vsmusl-bootstrap
in here.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.
Resolved on Matrix: https://matrix.to/#/!RbXGJhHMsnQcNIDFWN:nixos.org/$2dtglPPokoMcxS7yQt53iBLFvMkqr-R3yqdYA5hJyVg?via=nixos.org&via=matrix.org&via=orbstheorem.ch