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
Unable to build with ghc-9.2.3 on macOS #348
Comments
Are you able to share a link to the codebase you're trying to build? Are you building with cabal, nix, or stack? What operating system are you using? cc @bgamari in case this is a bug |
I did it as straightforward as I could before reporting it (see below). On macOS 12.4 Intel:
and then got that output I'm pretty sure I've previously attempted deleting all cabal/store/ghc-version to try and fix it when building other things, with no effect; though I can try once again if you really think it might make a difference in finding the issue. I guess I should also EDIT: I might add, I am also unable to compile with Thanks :) |
Maybe this could glean a bit more information |
Unfortunately doesn't seem to buy us much
and there's this warning before which I don't think should be too relevant
Edit: full output @ https://pastebin.mozilla.org/THLoQxJx/slim |
Instead of interpreting and splitting up the output into chunks, it's always preferable to paste the full, uninterrupted output |
From the error logs:
I've not sure if this is a problem with OSX or a problem with @alt-romes's specific set up. On Ubuntu, I can run:
And it works fine. I'd like to know if another OSX user is able to reproduce this issue. |
Hi, I just ran into this today. I reproduced with both LLVM@14 and LLVM@12 from Homebrew. This is also on M1 ARM.
Some more logs
Attempting to use GNU ld yields
|
I've managed to successfully build with ghc versions <9.2, so there may have been problems porting, although this seems like a compiler bug... |
I've opened an issue in GHC for this. It's already tracked and the problem is described here https://gitlab.haskell.org/ghc/ghc/-/issues/21570#note_436198 As a temporary workaround, one might uninstall GHC with ghcup, making sure LLVM isn't in $PATH, and then re-installing GHC with ghcup. Afterwards LLVM can be put back into $PATH if desired Further discussion on the GHC issue tracker. Thanks! |
Hey, I think I haven't been able to build any package that depends on primitive because of a linker error.
I've just tried to do a build from scratch of
primitive
usingghc-9.2.3
, macOS 12.4 Intel, with the result belowUnfortunately I don't know how to troubleshoot linker errors here, but I'd be happy to help try to fix this if you have some pointers.
The text was updated successfully, but these errors were encountered: