[GHC] #13866: -g doesn't work with -pgma=clang++
GHC
ghc-devs at haskell.org
Fri Jun 23 12:16:58 UTC 2017
#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
More information about the ghc-tickets
mailing list