[GHC] #13472: `gcc.exe' failed in phase `Assembler'. (Exit code: -1073741502)

#13472: `gcc.exe' failed in phase `Assembler'. (Exit code: -1073741502) -------------------------------------+------------------------------------- Reporter: sgraf | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Keywords: | Operating System: Windows Architecture: x86_64 | Type of failure: GHC doesn't work (amd64) | at all Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- 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): {{{#!hs $ 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. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13472 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13472: `gcc.exe' failed in phase `Assembler'. (Exit code: -1073741502) -------------------------------------+------------------------------------- Reporter: sgraf | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: GHC doesn't work | (amd64) at all | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by sgraf): This seems to be related: https://github.com/commercialhaskell/stack/issues/2998 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13472#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13472: `gcc.exe' failed in phase `Assembler'. (Exit code: -1073741502) -------------------------------------+------------------------------------- Reporter: sgraf | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: GHC doesn't work | (amd64) at all | Test Case: Blocked By: | Blocking: Related Tickets: 13411 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by sgraf): * related: => 13411 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13472#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13472: `gcc.exe' failed in phase `Assembler'. (Exit code: -1073741502) -------------------------------------+------------------------------------- Reporter: sgraf | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.2 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: GHC doesn't work | (amd64) at all | Test Case: Blocked By: | Blocking: Related Tickets: 13411 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * cc: Phyx- (added) * milestone: => 8.2.1 Comment: Phyx, does this look like #13411 to you? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13472#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13472: `gcc.exe' failed in phase `Assembler'. (Exit code: -1073741502) -------------------------------------+------------------------------------- Reporter: sgraf | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.2 Resolution: duplicate | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: GHC doesn't work | (amd64) at all | Test Case: Blocked By: | Blocking: Related Tickets: 13411 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * status: new => closed * resolution: => duplicate Comment: Yup, this is a duplicate. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13472#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13472: `gcc.exe' failed in phase `Assembler'. (Exit code: -1073741502) -------------------------------------+------------------------------------- Reporter: sgraf | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.2 Resolution: duplicate | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: GHC doesn't work | (amd64) at all | Test Case: Blocked By: | Blocking: Related Tickets: 13411 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by sgraf): What would be required to push point releases to existing GHC versions? I imagine this will make all past GHC versions unusable on Windows in the near future. Since one (me) seemingly can't roll back from Fast-Ring Insider builds to Release Preview other than letting Stable versions slowly catch up (WTF, Microsoft?!), this seems like the more sustainable course of actions. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13472#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13472: `gcc.exe' failed in phase `Assembler'. (Exit code: -1073741502) -------------------------------------+------------------------------------- Reporter: sgraf | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.2 Resolution: duplicate | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: GHC doesn't work | (amd64) at all | Test Case: Blocked By: | Blocking: Related Tickets: 13411 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): The GHC maintainers generally aren't in the business of keeping old GHC releases afloat forever. That being said, many OS distributions do ship versions of GHC with critical patches included to make them work. For instance, I believe hvr's [https://launchpad.net/~hvr/+archive/ubuntu/ghc Ubuntu PPA for GHC] includes a patch (see #12759) needed to make GHC work with recent versions of GCC. Considering that this patch isn't much work to apply, we might be able to convince Phyx- to apply it to his [https://github.com/Mistuke/GhcChoco Chocolatey GHC packages] if we ask him nicely :) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13472#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13472: `gcc.exe' failed in phase `Assembler'. (Exit code: -1073741502) -------------------------------------+------------------------------------- Reporter: sgraf | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.2 Resolution: duplicate | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: GHC doesn't work | (amd64) at all | Test Case: Blocked By: | Blocking: Related Tickets: 13411 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): I generally agree that we shouldn't keep updating older releases. I can apply it to the chocolatey distros but, that said, this is a special case. To emphasise the issue: In a few weeks (and at the pace 8.2 is going, likely before 8.2 is released) we won't have a single working official release of the compiler on Windows 10 at all. Given Microsoft's upgrade policy, the "Creator's Update" (reportedly build 15063) will be shoved down your throat no matter if you want it or not. We risk the situation that no one on Windows 10 can use GHC at all, which is not a good situation to be in. I'm sure the stack folks can patch their distros as well. But I think we should have at least a discussion about this, and what happens if it happens again in the future, given the much higher cadence of Windows releases these days. There are more Windows releases than GHC releases these days. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13472#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC