Bugs item #1025941, was opened at 2004-09-10 08:57 Message generated for change (Comment added) made by nobody 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: Nobody/Anonymous (nobody) Date: 2004-09-15 07: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 02: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-13 07: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 03: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
