[GHC] #10053: Regression on MacOS platform, error in ghci calling main after loading compiled code: "Too late for parseStaticFlags..."

GHC ghc-devs at haskell.org
Thu Oct 22 11:47:54 UTC 2015


#10053: Regression on MacOS platform, error  in ghci calling main after loading
compiled code: "Too late for parseStaticFlags..."
-------------------------------------+-------------------------------------
        Reporter:  George            |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.0.1
       Component:  GHCi              |              Version:  7.10.1-rc2
      Resolution:                    |             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):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by bgamari):

 * milestone:  7.10.3 => 8.0.1


Old description:

> ghci
> GHCi, version 7.10.0.20150123: http://www.haskell.org/ghc/  :? for help
> Prelude> :load rsa
> Ok, modules loaded: Main.
> Prelude Main> :show modules
> Main             ( rsa.hs, rsa.o )
> Prelude Main> main
> Too late for parseStaticFlags: call it before runGhc or runGhcT
>  Exception: ExitFailure 1
> Prelude Main>
>
> note, there is no failure if I load interpreted code

New description:

 {{{
 $ ghci
 GHCi, version 7.10.0.20150123: http://www.haskell.org/ghc/  :? for help
 Prelude> :load rsa
 Ok, modules loaded: Main.
 Prelude Main> :show modules
 Main             ( rsa.hs, rsa.o )
 Prelude Main> main
 Too late for parseStaticFlags: call it before runGhc or runGhcT
  Exception: ExitFailure 1
 Prelude Main>
 }}}

 note, there is no failure if I load interpreted code

--

Comment:

 This isn't going to be fixed for 7.10.3.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10053#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list