Re: [GHC] #365: GHC dies silently with faulty preprocessor

#365: GHC dies silently with faulty preprocessor -------------------------------------+------------------------------------- Reporter: josefs | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thomie): * status: closed => new * os: => Windows * failure: => None/Unknown * version: 6.4 => 7.11 * architecture: => Unknown/Multiple * owner: simonmar => * resolution: Fixed => Old description:
{{{ This is perhaps a minor nuisance but I had to spend quite some time to track down my bug. When ghc is given a preprocessor which for some reason cannot execute then ghc just dies silently without giving any indication as to what the problem was. It would be nice with a little message hinting at the problem on stderr.
Oh, and by the way, the -F flag doesn't have any documentation. It is only mentioned together with -optF. }}}
New description: {{{ This is perhaps a minor nuisance but I had to spend quite some time to track down my bug. When ghc is given a preprocessor which for some reason cannot execute then ghc just dies silently without giving any indication as to what the problem was. It would be nice with a little message hinting at the problem on stderr. Oh, and by the way, the -F flag doesn't have any documentation. It is only mentioned together with -optF. }}} -- Comment: This is still an issue. {{{ $ echo 'main = return ()' > hello.hs $ touch wibble # The faulty preprocessor. $ chmod +x wibble $ ghc -F -pgmF ./wibble -c hello.hs # Note: no error message. $ echo $? # But the command failed. 1 }}} Compiling with `-v` shows: {{{ *** Haskell pre-processor: "./wibble" "hello.hs" "hello.hs" "C:\msys64\tmp\ghc3020_0\ghc3020_1.hspp" Failed: "./wibble" "hello.hs" "hello.hs" "C:\msys64\tmp\ghc3020_0\ghc3020_1.hspp" ./wibble: runInteractiveProcess: invalid argument (Exec format error) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/365#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC