You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having trouble compiling with ghc 8.8.3 on windows 10. I get the error 'Access violation in generated code when writing 0x0'. It should be noted that i a year ago had an installation of haskell platform which i uninstalled (along with stack) some time ago. I just today (28/07/2020) installed stack 2.3.1.
I realize this issue has been brought up before in different contexts, however i am not sure if a solution has actually been found. I apologize in advance, if the error is all my own.
Steps to reproduce
run
stack ghc helloWorld.hs
on command prompt,
where helloWorld.hs contains:
main :: IO ()
main = putStrLn "Hello World!"
Expected
The following files generated:
helloWorld.hi
helloWorld.o
helloWorld.exe
Actual
The following printed on command line:
[1 of 1] Compiling Main ( helloWorld.hs, helloWorld.o )
Linking helloWorld.exe ...
Access violation in generated code when writing 0x0
Attempting to reconstruct a stack trace...
Frame Code address
* 0x461da80 0x37f7b66 C:\Users\Jacki\AppData\Local\Programs\stack\x86_64-windows\ghc-8.8.3\bin\ghc.exe+0x33f7b66
* 0x461da88 0x3277bb9 C:\Users\Jacki\AppData\Local\Programs\stack\x86_64-windows\ghc-8.8.3\bin\ghc.exe+0x2e77bb9
* 0x461da90 0x5
* 0x461da98 0x5
* 0x461daa0 0x3d7dc22 C:\Users\Jacki\AppData\Local\Programs\stack\x86_64-windows\ghc-8.8.3\bin\ghc.exe+0x397dc22
* 0x461daa8 0x785cca0
And no helloWorld.exe is generated.
Stack version
Version 2.3.1, Git revision de2a7b6 (8103 commits) x86_64 hpack-0.33.0
General summary/comments
I am having trouble compiling with ghc 8.8.3 on windows 10. I get the error 'Access violation in generated code when writing 0x0'. It should be noted that i a year ago had an installation of haskell platform which i uninstalled (along with stack) some time ago. I just today (28/07/2020) installed stack 2.3.1.
I realize this issue has been brought up before in different contexts, however i am not sure if a solution has actually been found. I apologize in advance, if the error is all my own.
Steps to reproduce
run
on command prompt,
where helloWorld.hs contains:
Expected
The following files generated:
Actual
The following printed on command line:
And no helloWorld.exe is generated.
Stack version
Version 2.3.1, Git revision de2a7b6 (8103 commits) x86_64 hpack-0.33.0
Method of installation
Further Notes
I just tried installing stack on a laptop with no prior installation of anything related to haskell and there is no problem compiling there.
The text was updated successfully, but these errors were encountered: