[GHC] #10468: debug test case fails on Windows
#10468: debug test case fails on Windows -------------------------------------+------------------------------------- Reporter: ezyang | Owner: scpmw Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.11 (Debugging) | Operating System: Windows Keywords: | Type of failure: None/Unknown Architecture: | Blocked By: Unknown/Multiple | Related Tickets: Test Case: debug | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Here's the make output: {{{ $ make debug # Without optimisations, we should get annotations for basically # all expressions in the example program. echo == Dbg == == Dbg == 'C:/msys64/home/ezyang/ghc-validate/inplace/bin/ghc-stage2.exe' -fforce- recomp -dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -fno-warn-tabs debug -fforce-recomp -g -dppr-ticks -ddump-cmm \ | grep -o src\<debug.hs:.*\> | sort -u C:\msys64\tmp\ghc21036_0\ghc21036_2.s: Assembler messages: C:\msys64\tmp\ghc21036_0\ghc21036_2.s:421: Error: junk at end of line, first unrecognized character is `,' C:\msys64\tmp\ghc21036_0\ghc21036_2.s:508: Error: junk at end of line, first unrecognized character is `,' C:\msys64\tmp\ghc21036_0\ghc21036_2.s:557: Error: junk at end of line, first unrecognized character is `,' C:\msys64\tmp\ghc21036_0\ghc21036_2.s:559: Error: junk at end of line, first unrecognized character is `,' src<debug.hs:(3,1)-(5,29)> src<debug.hs:3:9> src<debug.hs:4:9> src<debug.hs:5:13-17> src<debug.hs:5:14> src<debug.hs:5:21-29> src<debug.hs:5:25-29> src<debug.hs:5:26> src<debug.hs:5:9-17> src<debug.hs:5:9-29> src<debug.hs:6:1-21> ./debug make: ./debug: Command not found Makefile:9: recipe for target 'debug' failed make: *** [debug] Error 127 }}} Peter, can you take a look? -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10468> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10468: debug test case fails on Windows -------------------------------------+------------------------------------- Reporter: ezyang | Owner: scpmw Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.11 (Debugging) | Keywords: Resolution: | Architecture: Operating System: Windows | Unknown/Multiple Type of failure: None/Unknown | Test Case: debug Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by scpmw): Never got around to testing Windows... Fortunately less work than I had feared. The attached patch makes things work to the point where we can compile everything with `-g` and use gdb on the product. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10468#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10468: debug test case fails on Windows -------------------------------------+------------------------------------- Reporter: ezyang | Owner: scpmw Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 7.11 (Debugging) | Keywords: Resolution: | Architecture: Operating System: Windows | Unknown/Multiple Type of failure: None/Unknown | Test Case: debug Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by ezyang): * status: new => patch Comment: Not qualified to review the patch, but looks reasonable to me. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10468#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10468: debug test case fails on Windows -------------------------------------+------------------------------------- Reporter: ezyang | Owner: scpmw Type: bug | Status: patch Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.11 (Debugging) | Keywords: Resolution: | Architecture: Operating System: Windows | Unknown/Multiple Type of failure: None/Unknown | Test Case: debug Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thomie): * milestone: => 7.10.2 Comment: I confirm that the test succeeds on 64 bit Windows after applying this patch. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10468#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10468: debug test case fails on Windows -------------------------------------+------------------------------------- Reporter: ezyang | Owner: scpmw Type: bug | Status: patch Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.11 (Debugging) | Keywords: Resolution: | Architecture: Operating System: Windows | Unknown/Multiple Type of failure: None/Unknown | Test Case: debug Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by Austin Seipp <austin@…>): In [changeset:"a66ef3567ea29c93a9c010befc672602dc1c644c/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="a66ef3567ea29c93a9c010befc672602dc1c644c" Fix DWARF generation for MinGW (#10468) Fortunately this is relatively straightforward - all we need to do is switch to a non-ELF-specific way of specifying object file sections and make sure that section-relative addresses work correctly. This is enough to make "gdb" work on MinGW builds. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10468#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10468: debug test case fails on Windows -------------------------------------+------------------------------------- Reporter: ezyang | Owner: scpmw Type: bug | Status: merge Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.11 (Debugging) | Keywords: Resolution: | Architecture: Operating System: Windows | Unknown/Multiple Type of failure: None/Unknown | Test Case: debug Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: patch => merge -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10468#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10468: debug test case fails on Windows -------------------------------------+------------------------------------- Reporter: ezyang | Owner: scpmw Type: bug | Status: closed Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.11 (Debugging) | Keywords: Resolution: fixed | Architecture: Operating System: Windows | Unknown/Multiple Type of failure: None/Unknown | Test Case: debug Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: merge => closed * resolution: => fixed Comment: Merged to `ghc-7.10`. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10468#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC