-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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 unusable on darwin when linking against -libc++
#149937
Comments
this issue is not stale. |
for future reference, there is a GHC thread associated with this issue: https://gitlab.haskell.org/ghc/ghc/-/issues/16590 |
@jkachmar Do you want to bump the thread on the GHC side maybe? Seems like the issue may have slipped through the cracks as the milestone remains 8.8.2… |
another haskell package broken by this is i am using |
This now affects
entire log
|
I find that I just need to pin to older nixpkgs to make tidal work:
|
Seems like we can do one of four things:
|
How is this related to the koka update? |
I wish it was! Just a mistake when copy-pasting. |
Describe the bug
When a Haskell program that links against
-libc++
is compiled using LLVM & GHC from nixpkgs on macOS (darwin), compilation fails with the following error:This occurs on
x86_64-darwin
as well asaarch64-darwin
.I have verified that it can be alleviated by applying this patch, recompiling GHC, and attempting to rebuild a project that failed previously.
Steps To Reproduce
Steps to reproduce the behavior on a macOS system:
graphql-engine
shell.nix
included below into the repository root directorynix-shell
cp cabal.project.dev-sh.local cabal.project.local
aarch64-darwin
systema. Update the
cabal.project.freeze
index-state
tohackage.haskell.org 2021-12-09T17:38:20Z
cabal update && cabal build graphql-engine
shell.nix
Expected behavior
The project should compile successfully, as it does when the patch linked above is applied.
To verify: replace
haskell.compiler.ghc8107
with the following snippet in theshell.nix
file provided above and rebuild thenix-shell
environment.NOTE Doing this will rebuild GHC from source, which is a very time consuming operation!
Notify maintainers
@cdepillabout @expipiplus1 @maralorn @sternenseemann
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Maintainer information:
The text was updated successfully, but these errors were encountered: