-
Notifications
You must be signed in to change notification settings - Fork 244
Possible regression of cross-compiling TH with mingwW64 #2314
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
@thomasjm I hope to have some time to investigate this next week 😅 |
Thank you! |
Any chance you'll be able to look at this soon @angerman? I'd love to be able to cross-compile my projects rather than use an actual Windows machine... |
I did, but haven't gotten a solution yet :-/ |
Please try replacing |
Thanks @hamishmack -- just tried it and got the same result. Full output here: https://gist.github.com/thomasjm/8ccc2ee06dcb9f66bcbe178fb6f9fb99 |
Hi all -- I saw on #2335 that this was described as "the dreaded" issue haha. I'd like to help push it forward if I can. Any chance you could write down what you found out about the problem so far? To me it initially looked like some kind of encoding issue when communicating with this |
I've done some digging, but I am not sure what is going on. The issue can be reproduced in the haskell.nix repo with:
Replacing
I'm not sure if there was a regression in GHC 9.8 that was fixed by the time 9.12.2 was released or if there is a patch we are not applying to GHC 9.8 and 9.10 that we do apply to 9.6 and 9.12. |
Describe the bug
I've been trying to cross-compile a project from Linux to Windows, and noticed that several dependencies which depend on TH fail to compile in the same manner described in #1913.
There are a few examples, such as exceptions in TH code that reads from a file with file-embed, as in #1913. But for this issue I'll focus on just building
aeson-typescript
, where the TH doesn't even do external IO.This is on
x86_64-linux
. I've tried with GHC 9.6.6 and GHC 9.8.4, which the current repro uses, and the latest Haskell.nix.I think #2034 was meant to address these issues, but I think there might have been some regression. I'd note that the comment in overlays/wine.nix became out of date with #2034, which stopped pinning Wine. That comment mentioned Wine 5.4, but Wine on
nixpkgs-unstable
is up to version 10.0 now.Steps To Reproduce
The build fails with a message like this (which sort of suggests a locale issue?):
Expected behavior
The
pkgsCross.mingwW64
version of theaeson-typescript
library should build successfully.CC @amesgen and @angerman, I'd be very grateful for any help in figuring this out!
The text was updated successfully, but these errors were encountered: