[GHC] #13411: GCC driver fails on Windows 10 15019+
#13411: GCC driver fails on Windows 10 15019+ -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Driver | Version: 8.0.2 Keywords: | Operating System: Windows Architecture: | Type of failure: Compile-time Unknown/Multiple | crash or panic Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Our GCC driver seems to be failing with a compatibility error on Windows 10 Insider builds 15019+. Leaving error code 0xc0000142. This driver has been unchanged since Windows XP and may just need some old APIs replaced. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13411> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13411: GCC driver fails on Windows 10 15019+ -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: new Priority: normal | Milestone: Component: Driver | Version: 8.0.2 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * owner: (none) => Phyx- -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13411#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13411: GCC driver fails on Windows 10 15019+ -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: patch Priority: highest | Milestone: 8.4.1 Component: Driver | Version: 8.0.2 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3319 Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * priority: normal => highest * status: new => patch * differential: => Phab:D3319 * milestone: => 8.4.1 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13411#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13411: GCC driver fails on Windows 10 15019+ -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: patch Priority: highest | Milestone: 8.2.1 Component: Driver | Version: 8.0.2 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3319 Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * milestone: 8.4.1 => 8.2.1 Comment: Picked wrong milestone. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13411#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13411: GCC driver fails on Windows 10 15019+ -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: patch Priority: highest | Milestone: 8.2.1 Component: Driver | Version: 8.0.2 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3319 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"4b673e804fb8598dac02596f107544c7f2ea263b/ghc" 4b673e8/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="4b673e804fb8598dac02596f107544c7f2ea263b" Fix Windows GCC driver In Windows 10 Insiders build 15019+ which will probably be released mainstream somewhere this year Microsoft seems to have started being stricter with API calls. The call to `FreeConsole` just after `CreateProcess` is making Windows treat the process as an interactive process. In which case it tries to use the `Desktop session` but fails resulting in the cryptic error reported. I don't understand why the call to `FreeConsole` was there and it doesn't seem to be needed, so removed. This fixes #13411 Test Plan: ./validate, alternative just do anything with ghc which requires compilation. Reviewers: austin, bgamari, simonmar Reviewed By: bgamari Subscribers: rwbarton, thomie, #ghc_windows_task_force Differential Revision: https://phabricator.haskell.org/D3319 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13411#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13411: GCC driver fails on Windows 10 15019+ -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: merge Priority: highest | Milestone: 8.2.1 Component: Driver | Version: 8.0.2 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3319 Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * status: patch => merge -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13411#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13411: GCC driver fails on Windows 10 15019+ -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: closed Priority: highest | Milestone: 8.2.1 Component: Driver | Version: 8.0.2 Resolution: fixed | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3319 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: Merged to `ghc-8.2` in 018ac7f4b2f7345e28d21fb1f99b44dbc79f6e85. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13411#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13411: GCC driver fails on Windows 10 15019+ -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: closed Priority: highest | Milestone: 8.2.1 Component: Driver | Version: 8.0.2 Resolution: fixed | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3319 Wiki Page: | -------------------------------------+------------------------------------- Comment (by IlanGodik): Now this update in coming in to everyone, breaking all previous GHC versions. I'd recommend cherry-picking this fix into 8.0 and to 7.10 branches ASAP to allow people to continue using these versions of GHC, also given that 8.2 isn't out yet. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13411#comment:7> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13411: GCC driver fails on Windows 10 15019+ -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: closed Priority: highest | Milestone: 8.2.1 Component: Driver | Version: 8.0.2 Resolution: fixed | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3319 Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): I have prepared a new set of tarballs with a patched GCC; they are being uploaded as we speak. I'll send out an announcement tonight when the uploads are complete. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13411#comment:8> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13411: GCC driver fails on Windows 10 15019+ -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: closed Priority: highest | Milestone: 8.2.1 Component: Driver | Version: 8.0.2 Resolution: fixed | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3319 Wiki Page: | -------------------------------------+------------------------------------- Comment (by dyukha): I have downloaded ghc few minutes ago from here https://www.haskell.org/ghc/download_ghc_8_0_2#windows64 , but I still have the same problem. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13411#comment:9> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13411: GCC driver fails on Windows 10 15019+ -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: closed Priority: highest | Milestone: 8.2.1 Component: Driver | Version: 8.0.2 Resolution: fixed | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3319 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): Those links have not been updated, please use the correct ones as pointed to by https://mail.haskell.org/pipermail/ghc-devs/2017-April/014131.html -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13411#comment:10> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13411: GCC driver fails on Windows 10 15019+ -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: closed Priority: highest | Milestone: 8.2.1 Component: Driver | Version: 8.0.2 Resolution: fixed | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3319 Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): The announcement is [[https://mail.haskell.org/pipermail/ghc- devs/2017-April/014123.html|here]]. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13411#comment:11> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13411: GCC driver fails on Windows 10 15019+ -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: closed Priority: highest | Milestone: 8.2.1 Component: Driver | Version: 8.0.2 Resolution: fixed | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3319 Wiki Page: | -------------------------------------+------------------------------------- Comment (by sgraf): Also noting that to upgrade an existing GHC installation, just replace the distributed MinGW `gcc.exe` with one of [https://github.com/Mistuke/ghc- compat these]. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13411#comment:12> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC