|
"ghc-6.2.2: unknown package name: Main" when using --make: msg#00034lang.haskell.glasgow.bugs
Hello I'm trying to ghc --make -package hsshellscript Main.hs and get this: Chasing modules from: Main.hs Compiling Main ( Main.hs, Main.o ) Linking ... ghc-6.2.2: unknown package name: Main The program is this: import HsShellScript main = putStrLn "hello" The error only occurs with "-package hsshellscript", which is a library of mine, in conjunction with "--make". I can't find anything unusual about the hsshellscript package, but here's the package definition: Package { name = "hsshellscript", auto = False, import_dirs = ["${DEST_IMPORTS}"], source_dirs = [], library_dirs = ["${DEST_LIB}"], hs_libraries = ["hsshellscript"], extra_libraries = [], include_dirs = ["${DEST_IMPORTS}"], c_includes = ["hsshellscript.h"], package_deps = ["base", "haskell98", "parsec", "unix"], extra_ghc_opts = ["-fglasgow-exts"], extra_cc_opts = [], extra_ld_opts = [] } I have no clue what goes wrong, or how to find out. First of all, where does GHC get the idea that Main is a package? This looks like a GHC bug to me. I've attached the output of "ghc -v ...", but it doesn't seem to reveal anything. Any help would be appreciated. I'm using ghc-6.2.2 on Linux. Greetings, V.W. -- http://www.volker-wysk.de
Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@xxxxxxxxxxx http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-1100297 ] tupleTypeName refers nonexistent "GHC.Tuple", SourceForge.net |
|---|---|
| Next by Date: | Re: "ghc-6.2.2: unknown package name: Main" when using --make, Lemmih |
| Previous by Thread: | [ ghc-Bugs-1100297 ] tupleTypeName refers nonexistent "GHC.Tuple", SourceForge.net |
| Next by Thread: | Re: "ghc-6.2.2: unknown package name: Main" when using --make, Lemmih |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |