Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#1181 closed bug (fixed)

GHC API load panic

Reported by: judahj Owned by: simonmar
Priority: high Milestone: 6.8.1
Component: GHC API Version: 6.7
Keywords: Cc:
Operating System: MacOS X Architecture: powerpc
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


The attached program APILoad.hs, which works with ghc-6.6, panics on the HEAD when trying to load a module using the GHC API. Adding a call to parseStaticFlags prevents the panic, but it doesn't seem like that should be necessary when using the API.

~: ghc-6.7.20070215 --make APILoad.hs -package ghc
[1 of 1] Compiling Main             ( APILoad.hs, APILoad.o )
Linking APILoad ...
~/tmp/unsplice: ./APILoad Foo.hs 
APILoad: panic! (the 'impossible' happened)
  (GHC version 6.7.20070215 for powerpc-apple-darwin):
        a static opt was looked at too early!

Please report this as a GHC bug:


module Foo where

foo = 4

Attachments (1)

APILoad.hs (1.0 KB) - added by judahj 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by judahj

Attachment: APILoad.hs added

comment:1 Changed 10 years ago by simonmar

Owner: set to simonmar
Priority: normalhigh

comment:2 Changed 10 years ago by simonmar

Resolution: fixed
Status: newclosed

Fixed, thanks.

Thu May 10 16:45:42 BST 2007  Simon Marlow <>
  * FIX #1181: parseStaticFlags should not be required

comment:3 Changed 10 years ago by igloo

Milestone: 6.8 branch6.8.1
Note: See TracTickets for help on using tickets.