[GHC] #10165: Win32 broken with GHC 7.10 RC3

#10165: Win32 broken with GHC 7.10 RC3 ---------------------------------------+---------------------------------- Reporter: NeilMitchell | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.1-rc3 Keywords: | Operating System: Windows Architecture: x86 | Type of failure: Runtime crash Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | ---------------------------------------+---------------------------------- Using the 32bit Windows build of GHC 7.10 RC3 (ghc-7.10.0.20150316) I can't load the Win32 library. I get the problem: {{{ C:\Neil>ghci GHCi, version 7.10.0.20150316: http://www.haskell.org/ghc/ :? for help Prelude> import System.Win32 Prelude System.Win32> wRITE_DAC <interactive>: C:\ghc\ghc-7.10.0.20150316\lib\Win32_6dnIMpnCmqmCdDB983aKnr\HSWin 32-2.3.1.0-6dnIMpnCmqmCdDB983aKnr.o: unknown symbol `_SetWindowLongPtrW' ghc.exe: unable to load package `Win32-2.3.1.0' }}} This seems very serious, and breaks all packages that indirectly depend on the Win32 module (which on Windows is most of them). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10165 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10165: Win32 broken with GHC 7.10 RC3 ----------------------------------+------------------------------------- Reporter: NeilMitchell | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.1-rc3 Resolution: | Keywords: Operating System: Windows | Architecture: x86 Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ----------------------------------+------------------------------------- Comment (by NeilMitchell): I just tried with the 64bit Windows build and that worked fine. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10165#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10165: Win32 broken with GHC 7.10 RC3 ----------------------------------+------------------------------------- Reporter: NeilMitchell | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.1-rc3 Resolution: | Keywords: Operating System: Windows | Architecture: x86 Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ----------------------------------+------------------------------------- Comment (by m37): Documentation on MSDN for SetWindowLongPtr [https://msdn.microsoft.com/en- us/library/windows/desktop/ms633591%28v=vs.85%29.aspx] indicates that SetWindowLongPtrW only exists on 64-bit. It appears that the win32 library should be fixed to conditionally call SetWindowLongW on 32-bit, and call SetWindowLongPtrW on 64-bit. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10165#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10165: Win32 broken with GHC 7.10 RC3 ----------------------------------+------------------------------------- Reporter: NeilMitchell | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.1-rc3 Resolution: | Keywords: Operating System: Windows | Architecture: x86 Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ----------------------------------+------------------------------------- Comment (by Kludgy): Untested fix here for review: https://github.com/Kludgy/win32/commit/9e52103b8b4a9bfb486e2289257ec61ac682e... I will submit this as a PR as soon as I am able to verify that it works. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10165#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10165: Win32 broken with GHC 7.10 RC3 ----------------------------------+------------------------------------- Reporter: NeilMitchell | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.10.1 Component: Compiler | Version: 7.10.1-rc3 Resolution: | Keywords: Operating System: Windows | Architecture: x86 Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: ----------------------------------+------------------------------------- Changes (by hvr): * priority: normal => highest * milestone: => 7.10.1 Comment: let's consider this a blocker until proven otherwise :) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10165#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10165: Win32 broken with GHC 7.10 RC3 -------------------------------------+------------------------------------- Reporter: NeilMitchell | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.10.1 Component: libraries | Version: 7.10.1-rc3 (other) | Keywords: Win32 Resolution: | Architecture: x86 Operating System: Windows | Test Case: Type of failure: Runtime crash | Blocking: Blocked By: | Differential Revisions: Related Tickets: | -------------------------------------+------------------------------------- Changes (by hvr): * keywords: => Win32 * component: Compiler => libraries (other) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10165#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10165: Win32 broken with GHC 7.10 RC3 -------------------------------------+------------------------------------- Reporter: NeilMitchell | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.10.1 Component: libraries | Version: 7.10.1-rc3 (other) | Keywords: Win32 Resolution: | Architecture: x86 Operating System: Windows | Test Case: Type of failure: Runtime crash | Blocking: Blocked By: | Differential Revisions: Related Tickets: | -------------------------------------+------------------------------------- Comment (by Kludgy): PR submitted for review: https://github.com/haskell/win32/pull/34 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10165#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10165: Win32 broken with GHC 7.10 RC3
-------------------------------------+-------------------------------------
Reporter: NeilMitchell | Owner:
Type: bug | Status: new
Priority: highest | Milestone: 7.10.1
Component: libraries | Version: 7.10.1-rc3
(other) | Keywords: Win32
Resolution: | Architecture: x86
Operating System: Windows | Test Case:
Type of failure: Runtime crash | Blocking:
Blocked By: | Differential Revisions:
Related Tickets: |
-------------------------------------+-------------------------------------
Comment (by Austin Seipp

#10165: Win32 broken with GHC 7.10 RC3 -------------------------------------+------------------------------------- Reporter: NeilMitchell | Owner: Type: bug | Status: closed Priority: highest | Milestone: 7.10.1 Component: libraries | Version: 7.10.1-rc3 (other) | Keywords: Win32 Resolution: fixed | Architecture: x86 Operating System: Windows | Test Case: Type of failure: Runtime crash | Blocking: Blocked By: | Differential Revisions: Related Tickets: | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: new => closed * resolution: => fixed Comment: Thanks! Merged to both `master` and `ghc-7.10` (via 2ff68c3589af86811f65991c71f33282e0e50778 & 47cd08ab94e0a9bae3d9e966777616230d4fb4ff). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10165#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC