#1186: GHC as a library panic on loading second module
---------------------------------+------------------------------------------
Reporter: ArthurVanLeeuwen | Owner: simonmar
Type: bug | Status: new
Priority: high | Milestone: 6.8
Component: GHC API | Version: 6.6
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Os: Unknown | Testcase:
Architecture: powerpc |
---------------------------------+------------------------------------------
Comment (by thorkilnaur):
I must confess close to total ignorance to the involved matters, so this
may be irrelevant: With GHCLibTest.hs differing from the one for 6.6 and
6.6.1 given by simonmar above as follows:
{{{
$ diff ../simonmar/6.6/ghclibtest.hs GHCLibTest.hs
11c11
< do session <- newSession JustTypecheck (Just "/home/simonmar/fp/lib
/x86_64-unknown-linux/ghc-6.6")
---
> do session <- newSession JustTypecheck (Just
"/Users/thorkilnaur/tn/install/ghc-6.6-for-buildbot-
20070221_1000/lib/ghc-6.6.20070220")
14c14
< setSessionDynFlags session (fst f'){hscTarget = HscNothing}
---
> setSessionDynFlags session (fst f'){hscTarget = HscInterpreted}
23a24
>
$
}}}
And with:
{{{
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.6.20070220
$
}}}
which I would perhaps denote GHC 6.6.(three quaters), I can do this:
{{{
$ echo main | ghci -package ghc GHCLibTest
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 6.6.20070220, for
Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package base ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package readline-1.0 ... linking ... done.
Loading package unix-1.0 ... linking ... done.
Loading package Cabal-1.1.6 ... linking ... done.
Loading package regex-base-0.71 ... linking ... done.
Loading package regex-posix-0.71 ... linking ... done.
Loading package regex-compat-0.71 ... linking ... done.
Loading package haskell98 ... linking ... done.
Loading package ghc-6.6.20070220 ... linking ... done.
[1 of 2] Compiling OtherModule ( OtherModule.hs, interpreted )
[2 of 2] Compiling GHCLibTest ( GHCLibTest.hs, interpreted )
Ok, modules loaded: OtherModule, GHCLibTest.
*GHCLibTest> [1 of 2] Compiling OtherModule ( OtherModule.hs,
interpreted )
ghc-6.6.20070220: panic! (the 'impossible' happened)
(GHC version 6.6.20070220 for powerpc-apple-darwin):
lookup_dfun main:OtherModule.$f1{v r5xc} [lid]
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
*GHCLibTest> Leaving GHCi.
$
}}}
I have difficulties these days installing a GHC HEAD and don't exactly see
how to do this with a ghc-inplace, so I have not been able to try this (or
rather: The changed version) on a recent HEAD.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1186>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs