Ticket #3425 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

compileToCoreModule: ghc: panic! (the 'impossible' happened)

Reported by: iago Owned by:
Priority: normal Milestone: 6.12.1
Component: GHC API Version: 6.10.4
Keywords: Cc:
Operating System: Linux Architecture: x86_64 (amd64)
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

The following code on GHCi

runGhc (Just "/home/mads/iabal/opt/ghc-6.10.4/lib/ghc-6.10.4/.") (compileToCoreModule "./foo.hs")

causes a GHC Panic

ghc: panic! (the 'impossible' happened)
  (GHC version 6.10.4 for x86_64-unknown-linux):
        no package state yet: call GHC.setSessionDynFlags

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

foo.hs is attached.

Attachments

foo.hs Download (154 bytes) - added by iago 4 years ago.
Causes ghc panic when trying to load it with compileToCoreModule

Change History

Changed 4 years ago by iago

Causes ghc panic when trying to load it with compileToCoreModule

Changed 4 years ago by igloo

  • difficulty set to Unknown
  • milestone set to 6.12.1

Changed 4 years ago by simonmar

  • status changed from new to closed
  • resolution set to invalid

This is not a bug: you have to perform a little set up before you can use the GHC API. See  http://www.haskell.org/haskellwiki/GHC/As_a_library for more information.

Note: See TracTickets for help on using tickets.