-
Notifications
You must be signed in to change notification settings - Fork 39
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
Crashes on Windows #81
Comments
This seems very surprising! Can you give any more information? Is anyone else experiencing this problem? |
Some more info All versions runs in a REPL.
|
If using formatting 7.0.0 and GHC 8.10.7 this crashes without printing anything.
|
If using GHC 9.2.5 on another computer it still ends without any output.
It ends with no output even if I don't call the function. |
If trying to run the executable inside the debugger WinDbg I get this error: The application was unable to start correctly (0xc000007b). |
If looking at the dependencies of the executable I can see that "libstdc++-6.dll" is a dependency when when building against formatting 7.0.0 and not when building with 6.3.7. I have many versions of that dll on my system so I copied "C:\ghcup\ghc\8.10.7\mingw\bin\libstdc++-6.dll" to the same directory as the built executable but it still didn't work. |
If building formatting with 'no-double-conversion' set to True everything works fine. |
I have now tested with double-conversion package and there is some strange linking problem. If using a MSYS2/MinGW64 shell I can get it to work on one of my machines. From Windows GUI or PowerShell it doesn't work. There are other reports of linking problems on Windows: https://gitlab.haskell.org/ghc/ghc/-/issues/20010. |
@gussen You mentioned GHC 9.2.x. Note that versions 9.2 and before of GHC had problems on Windows, which is why everything was rewritten to use Clang. See release notes:
It might work better on GHC 9.4. Note that to use double-conversion on 9.4, you need to use it from git, since a compatible release wasn't yet released. |
On Windows 10, 64-bit, GHC 8.10.7
If using formatting version 6.3.7 this small program works. It prints "Hello" and "Tre: 3".
If using formatting 7.0.0 or 7.1.3 it crashes. It doesn't write "Hello" or "Tre: 3".
The text was updated successfully, but these errors were encountered: