[GHC] #13514: Unexpected failure of `annrun01` on 32-bit Windows

#13514: Unexpected failure of `annrun01` on 32-bit Windows --------------------------------+--------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Keywords: | Operating System: Windows Architecture: x86 | Type of failure: None/Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: --------------------------------+--------------------------------- {{{ =====> annrun01(normal) 1 of 57 [0, 0, 22] cd "./annotations/should_run/annrun01.run" && $MAKE -s --no-print- directory config cd "./annotations/should_run/annrun01.run" && "C:/msys64/home/ben/ghc/inplace/bin/ghc-stage2.exe" --make -o annrun01 annrun01 -dcore-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn- missed-specialisations -fshow-warning-groups -fd iagnostics-color=never -fno-diagnostics-show-caret -dno-debug-output -package ghc -static Compile failed (exit code 1) errors were: [1 of 3] Compiling Annrun01_Help ( Annrun01_Help.hs, Annrun01_Help.o ) ghc-stage2.exe: unable to load package `Win32-2.5.3.0' ghc-stage2.exe: | C:\msys64\home\ben\ghc\libraries\Win32\dist- install\build\HSWin32-2.5.3.0.o: unknown symbol `_GetWindowLongPtrW' }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13514 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13514: Unexpected failure of `annrun01` on 32-bit Windows ---------------------------------+------------------------------ Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86 Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+------------------------------ Changes (by bgamari): * cc: Phyx- (added) Comment: I'm seeing several other tests fail with similar failures including, {{{ TEST="annrun01 ghci062 ghci038 T6106" }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13514#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13514: Unexpected failure of `annrun01` on 32-bit Windows ---------------------------------+------------------------------ Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86 Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+------------------------------ Comment (by bgamari): I suspect the cause is described by [[https://msdn.microsoft.com/en- us/library/windows/desktop/ms633585(v=vs.85).aspx|this]] quirk described on MSDN,
Note To write code that is compatible with both 32-bit and 64-bit versions of Windows, use GetWindowLongPtr. When compiling for 32-bit Windows, GetWindowLongPtr is defined as a call to the GetWindowLong function.
-- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13514#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13514: Unexpected failure of `annrun01` on 32-bit Windows ---------------------------------+------------------------------ Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86 Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+------------------------------ Comment (by Phyx-): Indeed, I have opened https://github.com/haskell/win32/issues/85 The fix is easy enough but the next version of Win32 (2.6.0.0) has breaking changes so I'll probably make a `2.5.4.0` with just this fix. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13514#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13514: Unexpected failure of `annrun01` on 32-bit Windows
---------------------------------+------------------------------
Reporter: bgamari | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.2.1
Component: Compiler | Version: 8.1
Resolution: | Keywords:
Operating System: Windows | Architecture: x86
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
---------------------------------+------------------------------
Comment (by Ben Gamari

#13514: Unexpected failure of `annrun01` on 32-bit Windows ---------------------------------+------------------------------ Reporter: bgamari | Owner: (none) Type: bug | Status: merge Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86 Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+------------------------------ Changes (by bgamari): * status: new => merge Comment: Merged to `ghc-8.2` in fb90e692daf782bade1c8a040b1c32c5aba4f05d. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13514#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13514: Unexpected failure of `annrun01` on 32-bit Windows ---------------------------------+------------------------------ Reporter: bgamari | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: fixed | Keywords: Operating System: Windows | Architecture: x86 Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+------------------------------ Changes (by bgamari): * status: merge => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13514#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC