Bugs item #1025941, was opened at 2004-09-11 01:57 Message generated for change (Comment added) made by joshrenton You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1025941&group_id=8032
Category: Compiler Group: 6.2.1 Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Big problems running ghc and ghci Initial Comment: When I try to run ghci this is what happens: [EMAIL PROTECTED] ghc-6.2.1]# ghci ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 6.2.1, for Haskell 98. / /_\/ __ / /___| | http://www.haskell.org/ghc/ \____/\/ /_/\____/|_| Type :? for help. <interactive>:1: Could not find interface file for `GHC.Exception' (use -v to see a list of the files searched for) <interactive>:1: Could not find interface file for `GHC.Handle' (use -v to see a list of the files searched for) <interactive>:1: Could not find interface file for `GHC.IO' (use -v to see a list of the files searched for) <interactive>:1: Could not find interface file for `System.IO.Error' (use -v to see a list of the files searched for) <interactive>:1: Failed to load interface for `GHC.Base': Could not find interface file for `GHC.Base' (use -v to see a list of the files searched for) ghc-6.2.1: panic! (the `impossible' happened, GHC version 6.2.1): interactiveUI:setBuffering Please report it as a compiler bug to [EMAIL PROTECTED], or http://sourceforge.net/projects/ghc/. Ok. I am running Linux Mandrake 10.0 OE I got the rpm from www.haskell.org I cannot compile programs that I know work on other systems. I can't remember the exact error that I get from ghc, but it has something to do with Error checking and the libraries. I have hugs and it works absolutely perfectly! I am desperate for a fix for this problem!! I can be contacted at: [EMAIL PROTECTED] Thanks in advance Josh ---------------------------------------------------------------------- Comment By: Josh (joshrenton) Date: 2004-09-18 02:44 Message: Logged In: YES user_id=1122339 Simon Thank you. That fixed it. I also had to change io to IO now everything works beautifully! Josh ---------------------------------------------------------------------- Comment By: Simon Marlow (simonmar) Date: 2004-09-17 19:19 Message: Logged In: YES user_id=48280 It looks like the directory that should be called GHC is called ghc, and this is causing your problem. What kind of filesystem are you using? Would it be a case-insenstive filesystem by any chance? Try renaming /usr/local/lib/ghc-6.2.1/imports/ghc to /usr/local/lib/ghc-6.2.1/imports/GHC, and see if that helps. ---------------------------------------------------------------------- Comment By: Josh (joshrenton) Date: 2004-09-16 21:55 Message: Logged In: YES user_id=1122339 Yes, in /usr/local/lib/ghc-6.2.1/imports/ there are quite a few .hi files also in /usr/local/lib/ghc-6.2.1/imports/ghc/ Exception.hi is there even though it says that it cant find. I remember checking this the first time it gave me the error. anyway here is the contents of /usr/local/lib/ghc-6.2.1/imports/ Array.hi* Debug/ MarshalAlloc.hi* Ptr.p_hi* Array.p_hi* Directory.hi* MarshalAlloc.p_hi* Random.hi* Bits.hi* Directory.p_hi* MarshalArray.hi* Random.p_hi* Bits.p_hi* Foreign/ MarshalArray.p_hi* Ratio.hi* CError.hi* Foreign.hi* MarshalError.hi* Ratio.p_hi* CError.p_hi* Foreign.p_hi* MarshalError.p_hi* StablePtr.hi* CForeign.hi* ForeignPtr.hi* MarshalUtils.hi* StablePtr.p_hi* CForeign.p_hi* ForeignPtr.p_hi* MarshalUtils.p_hi* Storable.hi* Char.hi* ghc/ Maybe.hi* Storable.p_hi* Char.p_hi* Int.hi* Maybe.p_hi* System/ Complex.hi* Int.p_hi* Monad.hi* System.hi* Complex.p_hi* IO.hi* Monad.p_hi* System.p_hi* Control/ IO.p_hi* Network/ Text/ CPUTime.hi* Ix.hi* Network.hi* Time.hi* CPUTime.p_hi* Ix.p_hi* Network.p_hi* Time.p_hi* CString.hi* Language/ Numeric.hi* Word.hi* CString.p_hi* List.hi* Numeric.p_hi* Word.p_hi* CTypes.hi* List.p_hi* Prelude.hi* CTypes.p_hi* Locale.hi* Prelude.p_hi* Data/ Locale.p_hi* Ptr.hi* and here is the contents of /usr/local/lib/ghc-6.2.1/imports/ghc/ Arr.hi* Float.hi* Pack.hi* ST.hi* Arr.p_hi* Float.p_hi* Pack.p_hi* Storable.hi* Base.hi* ForeignPtr.hi* PArr.hi* Storable.p_hi* Base.p_hi* ForeignPtr.p_hi* PArr.p_hi* ST.p_hi* Conc.hi* Handle.hi* PrimopWrappers.hi* STRef.hi* Conc.p_hi* Handle.p_hi* PrimopWrappers.p_hi* STRef.p_hi* Dotnet.hi* Int.hi* Ptr.hi* TopHandler.hi* Dotnet.p_hi* Int.p_hi* Ptr.p_hi* TopHandler.p_hi* Enum.hi* IOBase.hi* Read.hi* Unicode.hi* Enum.p_hi* IOBase.p_hi* Read.p_hi* Unicode.p_hi* Err.hi* IO.hi* Real.hi* Weak.hi* Err.p_hi* IO.p_hi* Real.p_hi* Weak.p_hi* Exception.hi* List.hi* Show.hi* Word.hi* Exception.p_hi* List.p_hi* Show.p_hi* Word.p_hi* Exts.hi* Num.hi* Stable.hi* Exts.p_hi* Num.p_hi* Stable.p_hi* WOW the indentation is really bad, but you can get the drift I hope! Thanks Josh ---------------------------------------------------------------------- Comment By: Simon Marlow (simonmar) Date: 2004-09-16 18:34 Message: Logged In: YES user_id=48280 Next thing to check is the contents of /usr/local/lib/ghc-6.2.1. GHC is looking for interface files in /usr/local/lib/ghc-6.2.1/imports, and not finding any. Are they there? ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2004-09-16 00:41 Message: Logged In: NO Sorry about that. Here is the end of the error message. The first part is all the same as before (ie all that Package stuff) but this bit is different. This is the error message that I got when I tried to run some example scripts from the lecturer at Uni. Oh, I used exactly the same command as before (ghc -c -v test.hs). Thanks for your patience Hsc static flags: -static *** Checking old interface for Main: *** Parser: *** Renamer/typechecker: test.hs:1: Could not find interface file for `GHC.Exception' locations searched: GHC/Exception.hi GHC/Exception.hi-boot-6 GHC/Exception.hi-boot /usr/local/lib/ghc-6.2.1/imports/GHC/Exception.hi *** Deleting temp files Deleting: /home/josh/tmp/ghc3755.s Warning: deleting non-existent /home/josh/tmp/ghc3755.s ---------------------------------------------------------------------- Comment By: Simon Marlow (simonmar) Date: 2004-09-15 19:33 Message: Logged In: YES user_id=48280 Could you try that again, with a syntactically correct Haskell source file please :-) (you got a parse error that time). ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2004-09-14 00:06 Message: Logged In: NO Yee I am pretty sure that I used the redhat rpm from the haskell site here is what happens when I try to use the simple test script: [EMAIL PROTECTED] josh]$ ghc -c -v test.hs Glasgow Haskell Compiler, Version 6.2.1, for Haskell 98, compiled by GHC version 5.04.3 Using package config file: /usr/local/lib/ghc-6.2.1/package.conf ==================== Packages ==================== Package {name = "data", auto = False, import_dirs = ["/usr/local/lib/ghc-6.2.1/hslibs-imports/data"], source_dirs = [], library_dirs = ["/usr/local/lib/ghc-6.2.1"], hs_libraries = ["HSdata"], extra_libraries = [], include_dirs = [], c_includes = [], package_deps = ["haskell98", "lang", "util"], extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = [], framework_dirs = [], extra_frameworks = []} Package {name = "rts", auto = False, import_dirs = [], source_dirs = [], library_dirs = ["/usr/local/lib/ghc-6.2.1"], hs_libraries = ["HSrts"], extra_libraries = ["m", "gmp", "dl"], include_dirs = ["/usr/local/lib/ghc-6.2.1/include"], c_includes = ["Stg.h"], package_deps = [], extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = ["-u", "GHCziBase_Izh_static_info", "-u", "GHCziBase_Czh_static_info", "-u", "GHCziFloat_Fzh_static_info", "-u", "GHCziFloat_Dzh_static_info", "-u", "GHCziPtr_Ptr_static_info", "-u", "GHCziWord_Wzh_static_info", "-u", "GHCziInt_I8zh_static_info", "-u", "GHCziInt_I16zh_static_info", "-u", "GHCziInt_I32zh_static_info", "-u", "GHCziInt_I64zh_static_info", "-u", "GHCziWord_W8zh_static_info", "-u", "GHCziWord_W16zh_static_info", "-u", "GHCziWord_W32zh_static_info", "-u", "GHCziWord_W64zh_static_info", "-u", "GHCziStable_StablePtr_static_info", "-u", "GHCziBase_Izh_con_info", "-u", "GHCziBase_Czh_con_info", "-u", "GHCziFloat_Fzh_con_info", "-u", "GHCziFloat_Dzh_con_info", "-u", "GHCziPtr_Ptr_con_info", "-u", "GHCziPtr_FunPtr_con_info", "-u", "GHCziStable_StablePtr_con_info", "-u", "GHCziBase_False_closure", "-u", "GHCziBase_True_closure", "-u", "GHCziPack_unpackCString_closure", "-u", "GHCziIOBase_stackOverflow_closure", "-u", "GHCziIOBase_heapOverflow_closure", "-u", "GHCziIOBase_NonTermination_closure", "-u", "GHCziIOBase_BlockedOnDeadMVar_closure", "-u", "GHCziIOBase_Deadlock_closure", "-u", "GHCziWeak_runFinalizzerBatch_closure", "-u", "__stginit_Prelude"], framework_dirs = [], extra_frameworks = []} Package {name = "base", auto = True, import_dirs = ["/usr/local/lib/ghc-6.2.1/imports"], source_dirs = [], library_dirs = ["/usr/local/lib/ghc-6.2.1"], hs_libraries = ["HSbase"], extra_libraries = ["HSbase_cbits"], include_dirs = [], c_includes = ["HsBase.h"], package_deps = ["rts"], extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = [], framework_dirs = [], extra_frameworks = []} Package {name = "haskell98", auto = True, import_dirs = ["/usr/local/lib/ghc-6.2.1/imports"], source_dirs = [], library_dirs = ["/usr/local/lib/ghc-6.2.1"], hs_libraries = ["HShaskell98"], extra_libraries = [], include_dirs = [], c_includes = [], package_deps = ["base"], extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = [], framework_dirs = [], extra_frameworks = []} Package {name = "haskell-src", auto = True, import_dirs = ["/usr/local/lib/ghc-6.2.1/imports"], source_dirs = [], library_dirs = ["/usr/local/lib/ghc-6.2.1"], hs_libraries = ["HShaskell-src"], extra_libraries = [], include_dirs = [], c_includes = [], package_deps = ["base", "haskell98"], extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = [], framework_dirs = [], extra_frameworks = []} Package {name = "network", auto = True, import_dirs = ["/usr/local/lib/ghc-6.2.1/imports"], source_dirs = [], library_dirs = ["/usr/local/lib/ghc-6.2.1"], hs_libraries = ["HSnetwork"], extra_libraries = [], include_dirs = [], c_includes = ["HsNet.h"], package_deps = ["base"], extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = [], framework_dirs = [], extra_frameworks = []} Package {name = "parsec", auto = True, import_dirs = ["/usr/local/lib/ghc-6.2.1/imports"], source_dirs = [], library_dirs = ["/usr/local/lib/ghc-6.2.1"], hs_libraries = ["HSparsec"], extra_libraries = [], include_dirs = [], c_includes = [], package_deps = ["base"], extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = [], framework_dirs = [], extra_frameworks = []} Package {name = "QuickCheck", auto = True, import_dirs = ["/usr/local/lib/ghc-6.2.1/imports"], source_dirs = [], library_dirs = ["/usr/local/lib/ghc-6.2.1"], hs_libraries = ["HSQuickCheck"], extra_libraries = [], include_dirs = [], c_includes = [], package_deps = ["base"], extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = [], framework_dirs = [], extra_frameworks = []} Package {name = "readline", auto = True, import_dirs = ["/usr/local/lib/ghc-6.2.1/imports"], source_dirs = [], library_dirs = ["/usr/local/lib/ghc-6.2.1"], hs_libraries = ["HSreadline"], extra_libraries = ["readline", "ncurses"], include_dirs = [], c_includes = ["HsReadline.h"], package_deps = ["base"], extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = [], framework_dirs = [], extra_frameworks = []} Package {name = "unix", auto = True, import_dirs = ["/usr/local/lib/ghc-6.2.1/imports"], source_dirs = [], library_dirs = ["/usr/local/lib/ghc-6.2.1"], hs_libraries = ["HSunix"], extra_libraries = ["HSunix_cbits", "dl"], include_dirs = [], c_includes = ["HsUnix.h"], package_deps = ["base"], extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = [], framework_dirs = [], extra_frameworks = []} Package {name = "lang", auto = False, import_dirs = ["/usr/local/lib/ghc-6.2.1/hslibs-imports/lang"], source_dirs = [], library_dirs = ["/usr/local/lib/ghc-6.2.1"], hs_libraries = ["HSlang"], extra_libraries = ["HSlang_cbits"], include_dirs = [], c_includes = ["HsLang.h"], package_deps = ["base"], extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = [], framework_dirs = [], extra_frameworks = []} Package {name = "concurrent", auto = False, import_dirs = ["/usr/local/lib/ghc-6.2.1/hslibs-imports/concurrent"], source_dirs = [], library_dirs = ["/usr/local/lib/ghc-6.2.1"], hs_libraries = ["HSconcurrent"], extra_libraries = [], include_dirs = [], c_includes = [], package_deps = ["base"], extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = [], framework_dirs = [], extra_frameworks = []} Package {name = "posix", auto = False, import_dirs = ["/usr/local/lib/ghc-6.2.1/hslibs-imports/posix"], source_dirs = [], library_dirs = ["/usr/local/lib/ghc-6.2.1"], hs_libraries = ["HSposix"], extra_libraries = ["HSposix_cbits", "dl"], include_dirs = [], c_includes = ["HsPosix.h"], package_deps = ["lang", "unix"], extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = [], framework_dirs = [], extra_frameworks = []} Package {name = "util", auto = False, import_dirs = ["/usr/local/lib/ghc-6.2.1/hslibs-imports/util"], source_dirs = [], library_dirs = ["/usr/local/lib/ghc-6.2.1"], hs_libraries = ["HSutil"], extra_libraries = ["HSutil_cbits"], include_dirs = [], c_includes = ["HsUtil.h"], package_deps = ["lang", "concurrent", "QuickCheck", "readline", "posix"], extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = [], framework_dirs = [], extra_frameworks = []} Package {name = "text", auto = False, import_dirs = ["/usr/local/lib/ghc-6.2.1/hslibs-imports/text"], source_dirs = [], library_dirs = ["/usr/local/lib/ghc-6.2.1"], hs_libraries = ["HStext"], extra_libraries = [], include_dirs = [], c_includes = [], package_deps = ["lang", "parsec"], extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = [], framework_dirs = [], extra_frameworks = []} Package {name = "net", auto = False, import_dirs = ["/usr/local/lib/ghc-6.2.1/hslibs-imports/net"], source_dirs = [], library_dirs = ["/usr/local/lib/ghc-6.2.1"], hs_libraries = ["HSnet"], extra_libraries = [], include_dirs = [], c_includes = [], package_deps = ["network"], extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = [], framework_dirs = [], extra_frameworks = []} Package {name = "hssource", auto = False, import_dirs = ["/usr/local/lib/ghc-6.2.1/hslibs-imports/hssource"], source_dirs = [], library_dirs = ["/usr/local/lib/ghc-6.2.1"], hs_libraries = ["HShssource"], extra_libraries = [], include_dirs = [], c_includes = [], package_deps = ["haskell-src"], extra_ghc_opts = [], extra_cc_opts = [], extra_ld_opts = [], framework_dirs = [], extra_frameworks = []} Hsc static flags: -static *** Checking old interface for main: *** Parser: test.hs:1: parse error on input `main' *** Deleting temp files Deleting: /home/josh/tmp/ghc3086.s Warning: deleting non-existent /home/josh/tmp/ghc3086.s ---------------------------------------------------------------------- Comment By: Simon Marlow (simonmar) Date: 2004-09-13 20:47 Message: Logged In: YES user_id=48280 We don't have RPMs specifically for Mandrake - did you install the RedHat 9.0 ones? This might be the problem (though I doubt it). Could you do the following:create a simple Haskell source file, such as main = putStr "hello world" try to compile it with your installed GHC, like so: $ ghc -c -v test.hs and post the output here. Thanks. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1025941&group_id=8032 _______________________________________________ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
