-g doesn't work with -pgma=clang++
This is a follow-up to #11202 (closed). 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
Trac metadata
Trac field | Value |
---|---|
Version | 8.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Unknown/Multiple |
Architecture |