#1186: GHC as a library panic on loading second module
------------------------------+---------------------------------------------
 Reporter:  ArthurVanLeeuwen  |          Owner:         
     Type:  bug               |         Status:  new    
 Priority:  normal            |      Milestone:         
Component:  GHC API           |        Version:  6.6    
 Severity:  normal            |     Resolution:         
 Keywords:                    |     Difficulty:  Unknown
 Testcase:                    |   Architecture:  powerpc
       Os:  Unknown           |  
------------------------------+---------------------------------------------
Comment (by thorkilnaur):

 I have tried this on a PPC Mac OS X 10.4 and got:

 {{{
 Thorkil-Naurs-Computer:~/tn/test/GHC/trac/1186/work thorkilnaur$ diff
 ghclibtest.hs ../original/ghclibtest.hs
 7c7
 < main = do session <- newSession JustTypecheck (Just
 "/Users/thorkilnaur/tn/install/ghc-6.6-for-buildbot-
 20070221_1000/lib/ghc-6.6.20070220")
 ---
 > main = do session <- newSession JustTypecheck (Just
 "/usr/local/lib/ghc-6.6")
 Thorkil-Naurs-Computer:~/tn/test/GHC/trac/1186/work thorkilnaur$ echo main
 | ghci -package ghc ghclibtest.hs
    ___         ___ _
   / _ \ /\  /\/ __(_)
  / /_\// /_/ / /  | |      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 1] Compiling GHCLibTest       ( ghclibtest.hs, interpreted )
 Ok, modules loaded: GHCLibTest.
 *GHCLibTest> unknown package: wx
 *GHCLibTest> Leaving GHCi.
 Thorkil-Naurs-Computer:~/tn/test/GHC/trac/1186/work thorkilnaur$
 }}}

 I am wondering: Where, in your case, is the !OtherModule referenced? I
 cannot seem to find any reference to it in ghclibtest.hs. Please supply
 some additional details.

 Thanks and regards
 Thorkil

-- 
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

Reply via email to