-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Get GHC 9.8 working on M3 macs #296909
Get GHC 9.8 working on M3 macs #296909
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
5107b6e
to
8fb4bd5
Compare
@maralorn any feedback on this one so far? |
@ncfavier maybe you can take a look at this one as well. This makes GHC9.8 work on macs. Not sure whether this is the best approach, but it made the build work locally |
I don't have very much knowledge about darwin or GHC bootstrapping, but I doubt we want to use a non-binary distribution for bootstrapping on darwin. Why not simply update the 9.6.3 binary to 9.6.4? |
I tried this initially (that's why the branch of this PR is named this way). It compiled but the resulting GHC binary couldn't successfully link any haskell program.
I agree, but it's better than no GHC 9.8 at all |
Which GHC binary? |
I think it was the GHC9.6.4 which couldn't link the Hadrian binary anymore to bootstrap the GHC9.8 |
Here's the full error when using the ghc 9.6.4 binary to bootstrap ghc 9.8:
Nix Stacktrace:
|
I've created a PR with the ghc 9.6.4 binary at #297418 |
I have no much stakes in darwin, nor am I very knowledgeable about our ghc builds. But I agree if we can ghc-binary 9.6.4 to work that would be a desirable solution. |
Description of changes
GHC 9.8 cannot currently be built on M3 Macs because it relies on GHC 9.6.3 (through hadrian) which is broken due to https://gitlab.haskell.org/ghc/ghc/-/issues/23746
Error I get when building GHC 9.8:
The fix for that linker error is in GHC 9.6.4. So by upgrading the GHC version we should have things working again.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.