Skip to content

`gcc.exe' failed in phase `Assembler'. (Exit code: -1073741502)

Recently, GHC stopped working for me on my Windows 10 machine.

I strongly reckon this has to do with my recent switch to the Windows Insider Fast-Ring builds: I'm currently on version 1703, build 15058.

Here's what I got in a mingw shell (ghc 8.0.2 from the core HP, same output with PowerShell):

$ cat << EOF > hw.hs
> main = putStrLn "hi"
> EOF
$ ghc hw.hs
[1 of 1] Compiling Main             ( hw.hs, hw.o )
`gcc.exe' failed in phase `Assembler'. (Exit code: -1073741502)

This seems to be independent of the GHC version, as I tried stack setup with different stack LTSs, which hit the same error when compiling some sanity checks.

Currently I'm about to reverting back to Slow-Ring, but when the actual switch is to happen is only known to Bill Gates himself it seems. I believe it will then work again, but this is something to look out for when/if the Fast-Ring changes eventually make it into Windows stable.

Trac metadata
Trac field Value
Version 8.0.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information