GHC 7.8.0 RC2 fails when compiling a hello world program on Windows 7 32bits
Windows shows a window that says "GHC has stopped working" when compiling a simple hello world.
Steps to reproduce
- Download GHC 7.8 RC2 (http://www.haskell.org/ghc/dist/7.8.1-rc2/ghc-7.8.0.20140228-i386-unknown-mingw32.tar.bz2)
- Extract the contents of the tar to folder
- Add \bin and\mingw\bin folder to the PATH, add env var "LANG=C".
- Create file test.hs with contents:
main = putStrLn "Hello, World!"
- run "ghc test.hs".
Interestingly, the error is not deterministic, ie, after running the command several times the program gets compiled. When that happens, and ff the file test.o is not deleted, further attempts to compile run succesfully.
GHCi appears to work normally (when doing simple tests).
More details: http://stackoverflow.com/questions/22291739/cant-install-packages-with-cabal-using-ghc-7-8rc2-and-windows-7
Trac metadata
Trac field | Value |
---|---|
Version | 7.8.1-rc2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | highest |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |