
#10053: Regression on MacOS platform, error in ghci calling main after loading compiled code: "Too late for parseStaticFlags..." -------------------------------------+------------------------------------- Reporter: George | Owner: (none) Type: bug | Status: closed Priority: low | Milestone: 8.2.1 Component: GHCi | Version: 7.10.1-rc2 Resolution: fixed | Keywords: Operating System: MacOS X | Architecture: x86_64 Type of failure: Incorrect result | (amd64) at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2839 Wiki Page: | -------------------------------------+------------------------------------- Comment (by ak3n): I decided to check it. {{{ ⋊> ghc on master ⨯ cat bug.hs main = print "hello" ⋊> ghc on master ⨯ ./inplace/bin/ghc-stage2 -dynamic bug.hs [1 of 1] Compiling Main ( bug.hs, bug.o ) Linking bug ... ⋊> ghc on master ⨯ ./inplace/bin/ghc-stage2 --interactive GHCi, version 8.3.20170310: http://www.haskell.org/ghc/ :? for help Prelude> :l bug Ok, modules loaded: Main (bug.o). Prelude Main> main <interactive>: missing -B<dir> option *** Exception: ExitFailure 1 Prelude Main> }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10053#comment:24 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler