-
Notifications
You must be signed in to change notification settings - Fork 94
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
Support GHC-9.6 wrt #979 #997
Conversation
eb5e3a0
to
ca2880f
Compare
It seems the mac failure is something related to homebrew and coreutils. See here: https://forums.developer.apple.com/forums/thread/741149 It's recommended to use the system toolchain if possible on darwin, especially for CC, LD etc. |
The alpine failure is because you are using a version of |
@mpickering thanks for the help
Aren't you using LLVM from nixpkgs in GHC CI too? https://gitlab.haskell.org/ghc/ghc/-/blob/master/.gitlab/darwin/toolchain.nix?ref_type=heads#L99 I'm a bit confused. Why did brew work with a previous GHC? Maybe I try to update LLVM.
Not easily. |
In the script you link to you can see we set In the links I posted it seems something changed in Xcode 15 which might have broken the scripts you had. In any case it doesn't normally work to mix a clang and gcc based toolchain, so can you try removing coreutils as the links suggested this could cause the problems. |
9.6.5 seems to be broken on FreeBSD. I'm not sure if that's a packaging issue or something else:
|
0d8a9ed
to
f5298c5
Compare
@mpickering I don't see where the build on macOS aarch64 is using gcc. This is the export now:
Everything is set to clang/llvm. https://github.com/haskell/ghcup-hs/actions/runs/8896256670/job/24428487013#step:3:12841 |
I looked into this further, the issue turns out to be quite confusing and could be either a cabal issue or ghc issue depending on how you view things. In This breaks On the GHC side, it seems like we should have been more careful in introducing this change, and the impact was not anticipated fully by Cheng when he made the patch. It is possible that we could narrow the scope of this patch to wasm for the 9.6 series (which you should advocate for on the ticket if you think that's the best path forward). I have added a test to the bindist install tests which test installing on aarch64-darwin with a brew based toolchain and added a particular test which fails with a brew toolchain (but not the system toolchain). So the best thing to do for now seems to be to use the system toolchain to build binaries (unless there is a particular other reason to use the toolchain provided by homebrew). |
Thanks for the investigation! |
@mpickering I don't have time to push forwards a proper Cabal fix, though I did put up https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12548 at your convenience. Sorry for the breakage :/ |
Most things work now, except FreeBSD built binaries still crash: https://gitlab.haskell.org/ghc/ghc/-/issues/24672
|
In trying to rebase this onto |
No |
OK, I finally finished rebasing. I pushed a branch in https://github.com/hseg/ghcup-hs/tree/rebased-ghc-9.6, it builds with all tests passing against |
btw, note my comment in #1123 (comment) -- I think there may be some stale references in the docs |
Can you provide a PR? |
superseded by #1132 |
Mac failure: https://github.com/haskell/ghcup-hs/actions/runs/8686247192/job/23819882230#step:3:12356
Alpine Linux musl failure: https://github.com/haskell/ghcup-hs/actions/runs/8686247192/job/23819882474#step:6:12219