-
Notifications
You must be signed in to change notification settings - Fork 237
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
Regression: Mingw-w64 runtime failure: 32 bit pseudo relocation #2228
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Just confirming that the problem is still there on current |
(Random bystander) Does that error occur only when cross-compiling, or is that an issue with GHC 9.6.6 on Windows? |
It doesn't happen with a native Windows GHC; and even with haskell.nix, the mingwW64 GHC 9.6.6 didn't have that issue before #2156, so it seems to be specific to the details of the cross compilation infra in haskell.nix. |
Describe the bug
Certain programs fail at runtime when compiled via mingwW64 after #2156:
x86_64-linux
Steps To Reproduce
The following program is the most minimal example I managed to produce so far:
Here,
GHC.Types.SrcLoc
comes fromghc
orghc-lib-parser
. I tried to inline the definition ofPsLoc
, or put it into a separate minimal package, but that made the bug go away in the cases I tried.This minimal reproducible example is also availabe here:
https://github.com/amesgen/stuff/tree/haskell.nix-mingwW64-runtime-bug
nix build github:amesgen/stuff/haskell.nix-mingwW64-runtime-bug
Expected behavior
The program should execute fine (especially as the
Foo
data type above isn't even used), as it did before #2156.Additional context
The example above is minimized from trying to compile Ormolu with haskell.nix after #2156.
The error message is already mentioned in the haskell.nix codebase, so maybe this rings a bell:
haskell.nix/overlays/windows.nix
Lines 26 to 34 in 9549b8a
The text was updated successfully, but these errors were encountered: