[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
Tue Apr 19 13:18:39 UTC 2016


#10053: Regression on MacOS platform, error  in ghci calling main after loading
compiled code: "Too late for parseStaticFlags..."
-------------------------------------+-------------------------------------
        Reporter:  George            |                Owner:  ak3n
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       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:                    |
-------------------------------------+-------------------------------------

Comment (by ak3n):

 Replying to [comment:17 bgamari]:
 > ak3n, could you elaborate?

 This error is raised in
 [https://github.com/ghc/ghc/blob/master/compiler/main/StaticFlags.hs#L80
 compiler/main/Staticflags.hs], when parseStaticFlags is called in
 [https://github.com/ghc/ghc/blob/master/ghc/Main.hs#L113 ghc/Main.hs].

 So, this code is called two times: on ghci start and on "main" input
 statement.

 It looks like, linker replaces "main" from the loaded module
 with "main" of ghc.

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


More information about the ghc-tickets mailing list