Skip to content

LLVM's llc pass does not print all the error messages to the console.

Hello, when working on ARM port I've noticed that when LLVM's llc tool provides nicely formated error message for more than one line then GHC does not print all the lines out to the error output but just forgets them. This is bad IMHO since having it printed all the info is needed in case of the LLVM's errors I got: this was full backtrace of assert inside llc -- very helpful for debugging of what's going on. Also such assert was easily solved later by just adding proper -optlc= option to be passed to LLVM llc. So this is not just for new port developers, but will probably also helps general GHC audience, i.e. GHC users on platform where LLVM is used.

Trac metadata
Trac field Value
Version 7.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information