-
-
Notifications
You must be signed in to change notification settings - Fork 372
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
Install fails in windows for ghc >= 8.8.3 on floskell: Access violation in generated code #86
Comments
I am able to reproduce and the log building floskell says:
The error seems to be the same reported here: https://gitlab.haskell.org/ghc/ghc/issues/17926 could you confirm that you get the above error if you run |
I tried running that, it seems to die abruptply like this
According to the log it was building
Edit: So yes, seems like we hit precisely the same problem with building |
Yeah, the full error is the first "Access violation..." and i am afraid that it is an ugly bug in the compiler that it is not fixed.
I am checking both locally but the second one was succesful for me recently |
Yes, based on your link it seems like nothing anybody can do on this end. I hope it gets fixed for GHC 8.10.1. Since my projects are all on GHC 8.8.3 I'll try installing |
|
|
FYI I'm seeing a segfault building floskell with GHC 8.10.1 as well. |
The hypothesis is that the recently released process-1.6.9 might fix it. Would be good for someone to test that out. See haskell/process#176 |
I just spotted that too and was testing it out just in case. But is it the process GHC was built with that matters, or the one being built for hls? (If those are different) |
Dunno, but yeah, I suspect GHC needs to release a new version with that fix included. |
I think (from some experiments) that hls/ghcide are tied to the one that comes with GHC anyway because of the API dependency, so I can't even try with the new process. |
I've just seen that the fix for that bug will be backported to ghc.8.8.4, 🎉 : https://gitlab.haskell.org/ghc/ghc/-/merge_requests/3373 |
The floskell related segfault persists with ghc-8.8.4 which is shipped with the patched process version 😟 |
I am being able to build it with all involved versions building floskell locally (but not always, sometimes it fails):
|
It seems this issue is gone for ghc-8.10.3, maybe we should keep this open until we drop support for ghc-8.8 |
I've workarounded the issue in our ci setting in cabal.project
disabling all compile time optimizations. Not sure if it is a good idea but 🤷 |
This is essentially not fixable as it is a ghc error and ghc is not releasing more fixes for ghc-8.8. It has a workaround for building it and the prebuilt binary is available so i am gonna close |
I'm seeing the install fail on my system for some reason with just
I installed
haskell-language-server
by:shake.yaml
ininstall
folder to:lts-15.11
(GHC 8.8.3)stack ./install.hs hls-8.8.3
I'm running on Windows 10 and
stack
version2.3.1
.The text was updated successfully, but these errors were encountered: