Problems finding modules with GHC 5

I'm having problems running programs that use modules found in the hslibs libraries. I've tried these with GHC 5.00.1 on both a x86 Linux box on which I compiled GHC from source, and a Sparc box where I installed the precompiled binaries. If I simply try to load my program (which uses MArray), I get: -------- $ ghci Main.hs ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 5.00.1, For Haskell 98. / /_\\/ __ / /___| | http://www.haskell.org/ghc/ \____/\/ /_/\____/|_| Type :? for help. Loading package std ... linking ... done. ghc-5.00.1: can't find module `MArray' --------- If I try using the -i option, I get --------- $ ghci -i/usr/local/lib/ghc-5.00.1/imports/lang/ Main.hs ... Loading package std ... linking ... done. ghc-5.00.1: panic! (the `impossible' happened, GHC version 5.00.1): does not exist Action: withFileStatus Reason: No such file or directory Please report it as a compiler bug to glasgow-haskell-bugs@haskell.org, or http://sourceforge.net/projects/ghc/. ----------- $ ghci -i/usr/local/build/ghc-5.00.1/hslibs/lang/ Main.hs ... Loading package std ... linking ... done. ghc-5.00.1: can't find module `PrelPrim' Finally, if I then try adding the prelude to the path, I get the same panic. If I try to compile my project with GHC, I get link errors. best, leon If I try
participants (1)
-
Leon Smith