#5403: LLVM's llc pass does not print all the error messages to the console.
------------------------+---------------------------------------------------
Reporter: kgardas | Owner: dterei
Type: bug | Status: new
Priority: normal | Component: Compiler (LLVM)
Version: 7.3 | Keywords:
Testcase: | Blockedby:
Os: Linux | Blocking:
Architecture: arm | Failure: Other
------------------------+---------------------------------------------------
Comment(by kgardas):
Hmm, it took me some time to get it from the head when this issue
happened, but now I think this was once issue on ARM I've been fighting in
the past. The issue was that I've not been able to get whole stack trace
although it was printed by llc. The output of compilation looked:
{{{
"inplace/bin/ghc-stage1" -H64m -opta=-march=armv7a -opta=-mfpu=vfpv3
-package-name ghc-prim-0.2.0.0 -hide-all-packages -i -ilibraries/ghc-
prim/. -ilibraries/ghc-prim/dist-install/build -ilibraries/ghc-prim/dist-
install/build/autogen -Ilibraries/ghc-prim/dist-install/build -Ilibraries
/ghc-prim/dist-install/build/autogen -Ilibraries/ghc-prim/. -optP-
include -optPlibraries/ghc-prim/dist-install/build/autogen/cabal_macros.h
-package rts-1.0 -package-name ghc-prim -XHaskell98 -XCPP -XMagicHash
-XForeignFunctionInterface -XUnliftedFFITypes -XUnboxedTuples
-XEmptyDataDecls -XNoImplicitPrelude -opta=-march=armv7a -opta=-mfpu=vfpv3
-no-user-package-conf -rtsopts -odir libraries/ghc-prim/dist-
install/build -hidir libraries/ghc-prim/dist-install/build -stubdir
libraries/ghc-prim/dist-install/build -hisuf hi -osuf o -hcsuf hc -c
libraries/ghc-prim/./GHC/Magic.hs -o libraries/ghc-prim/dist-
install/build/GHC/Magic.o
Formal argument #8 has unhandled type i32UNREACHABLE executed at
/export/home/karel/vcs/llvm-head-2-steve-arm-support-
vfp3/lib/CodeGen/CallingConvLower.cpp:81!
Stack dump:
make[1]: *** [libraries/ghc-prim/dist-install/build/GHC/Magic.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2
}}}
Please note *Stack dump:* the real stack dump follows but it's not printed
by ghc. This issue makes debugging of GHC/LLVM not easy as you will always
need to save temporaries and run llc just from command-line to see the
stack dump.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5403#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs