Skip to content
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

ghc-{8.2.2,8.4.3}: "useLLVM" when target is musl as well #42455

Merged
merged 2 commits into from
Jun 23, 2018

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Jun 23, 2018

Without this build fails complaining unable to find LLVM,
with this option cross-x86_64-musl builds ghc's that at least
can build a simple hello-world "hello.hs".

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@dtzWill dtzWill requested a review from peti as a code owner June 23, 2018 18:25
@dtzWill
Copy link
Member Author

dtzWill commented Jun 23, 2018

Building packages (including "hello") seems to run into problems,
but this is a start!

Here's the error when trying to build "hello": https://gist.github.com/09a713cf27a317a9667831a95e4a1483

Oh! ghc843 doesn't have the fixes introduced with #37598 . Let's see how 822 does...

@GrahamcOfBorg GrahamcOfBorg added 6.topic: haskell 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild 10.rebuild-linux: 0 This PR does not cause any packages to rebuild labels Jun 23, 2018
@dtzWill
Copy link
Member Author

dtzWill commented Jun 23, 2018

With this ghc822 works (again?) with cross-musl (targeting x86_64-unknown-linux-musl or aarch64-multiplatform-musl, at least for the simple "hello" package!

@dtzWill dtzWill requested a review from Ericson2314 June 23, 2018 19:49
@dtzWill
Copy link
Member Author

dtzWill commented Jun 23, 2018

Well this looks safe (borg says 0 rebuilds) so going ahead!

LMK if you have any thoughts/comments, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: haskell 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild 10.rebuild-linux: 0 This PR does not cause any packages to rebuild
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants