[GHC] #13866: -g doesn't work with -pgma=clang++

#13866: -g doesn't work with -pgma=clang++ -------------------------------------+------------------------------------- Reporter: niteria | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.3 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- This is a follow-up to #11202. The fix there is platform specific, but the problem is compiler/assembler specific. Sample of errors: {{{ /tmp/ghc4044980_0/ghc_2.s:681:2: error: error: unknown directive .hword 4 ^ | 681 | .hword 4 | ^ }}} Repro command: {{{ $ cat A.hs module A where main = putStrLn "Hello" $ ./inplace/bin/ghc-stage2 -g -pgma=clang++ A.hs }}} One workaround that I've found: {{{ $ ./inplace/bin/ghc-stage2 -g -pgma=clang++ -opta=-no-integrated-as A.hs # succeeds }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13866 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13866: -g doesn't work with -pgma=clang++ -------------------------------------+------------------------------------- Reporter: niteria | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by niteria): To be clear, this is on Linux with clang. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13866#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13866: -g doesn't work with -pgma=clang++ -------------------------------------+------------------------------------- Reporter: niteria | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): This is an annoying inconsistency which I thought was only applicable to Darwin, but it seems I was wrong. See `nativeGen/DWARF/Types.hs:pprHalf`. Perhaps we just need to make this compiler depedent? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13866#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13866: -g doesn't work with -pgma=clang++ ---------------------------------+---------------------------------------- Reporter: niteria | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.3 Resolution: | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+---------------------------------------- Changes (by bgamari): * os: Unknown/Multiple => Linux -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13866#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13866: -g doesn't work with -pgma=clang++ -------------------------------------+------------------------------------- Reporter: niteria | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 8.3 Resolution: | Keywords: Operating System: Linux | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3671, Wiki Page: | Phab:D3672 -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => patch * differential: => Phab:D3671, Phab:D3672 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13866#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13866: -g doesn't work with -pgma=clang++ ---------------------------------+---------------------------------------- Reporter: niteria | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.3 Resolution: | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3667 Wiki Page: | ---------------------------------+---------------------------------------- Changes (by bgamari): * differential: Phab:D3671, Phab:D3672 => Phab:D3667 * milestone: => 8.2.1 Comment: Whoops, wrong Differential. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13866#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13866: -g doesn't work with -pgma=clang++
---------------------------------+----------------------------------------
Reporter: niteria | Owner: (none)
Type: bug | Status: patch
Priority: normal | Milestone: 8.2.1
Component: Compiler | Version: 8.3
Resolution: | Keywords:
Operating System: Linux | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D3667
Wiki Page: |
---------------------------------+----------------------------------------
Comment (by Ben Gamari

#13866: -g doesn't work with -pgma=clang++ ---------------------------------+---------------------------------------- Reporter: niteria | Owner: (none) Type: bug | Status: merge Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.3 Resolution: | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3667 Wiki Page: | ---------------------------------+---------------------------------------- Changes (by bgamari): * status: patch => merge -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13866#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13866: -g doesn't work with -pgma=clang++ ---------------------------------+---------------------------------------- Reporter: niteria | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.3 Resolution: fixed | Keywords: Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3667 Wiki Page: | ---------------------------------+---------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: Merged in bed2ff7f26319d7ee4c5be0ee66c48e13c08a1a5. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13866#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13866: -g doesn't work with -pgma=clang++ ---------------------------------+---------------------------------------- Reporter: niteria | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.3 Resolution: fixed | Keywords: DWARF Operating System: Linux | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3667 Wiki Page: | ---------------------------------+---------------------------------------- Changes (by bgamari): * keywords: => DWARF -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13866#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC