-
Notifications
You must be signed in to change notification settings - Fork 244
Error with most TH on mingwW64 on GHC 9.4 and 9.6 #1913
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
Comments
Actually, this is not specific to reading files; similar errors occur with much more trivial TH, e.g. one gets similar errors as soon as the library depends on the main = putStrLn $ show $(TH.lift (1 :: Int)) So something about TH seems to be very broken for mingwW64. EDIT: At least the haskell.nix/test/th-dlls/default.nix Lines 22 to 23 in c0011f6
The original issue (in particular the MRE) is independent of this though. |
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. |
AFAICT this is currently being worked on in #2034 |
This was indeed fixed in #2034, but one sometimes has to use
Will close this issue now, but if I or someone else encounters a situation where |
Describe the bug
Reading files during TH (e.g. via
file-embed
) (EDIT: this is just an example, also happens with much more mundane things, see #1913 (comment)) fails when cross-compiling to mingwW64 from x86_64-linux on GHC 9.4 and 9.6.Steps To Reproduce
Minimal reproducible example: https://github.com/amesgen/stuff/tree/haskell.nix-mingwW64-TH-readFile-again
Concretely:
Full logs
Full logs
Expected behavior
It should compile fine, as it does e.g. on 9.2.
$ nix build github:amesgen/stuff/haskell.nix-mingwW64-TH-readFile-again#ghc927 # works fine
Additional context
Maybe it is again due to a Wine version problem, cf. #1487?
The text was updated successfully, but these errors were encountered: