Bugs item #1188785, was opened at 2005-04-24 01:54 Message generated for change (Comment added) made by wferi You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1188785&group_id=8032
Category: Compiler Group: 6.4 Status: Closed Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: panic! ... forkM Declaration for tables{v} Initial Comment: Got this while trying to build the examples code in HSsql. I am obviously having problems with locations of interface files. The complete verbage is: [EMAIL PROTECTED] xsd45hrekw /dosC/Software/haskell/hsql14_src/HSQL/e xamples $ ghc -package hsql Queries.hs c:/Software/haskell/ghc- 6.4.0/imports/Database/HSQL.hi : Can't find interface-file declaration for Database.HSQL.Types.Connection Probable cause: bug in .hi-boot file, or inconsistent .hi file Use -ddump-if-trace to get an idea of which file caused the error ghc.exe: panic! (the `impossible' happened, GHC version 6.4): forkM Declaration for tables{v} Please report it as a compiler bug to glasgow-haskell- [EMAIL PROTECTED], or http://sourceforge.net/projects/ghc/. [EMAIL PROTECTED] ---------------------------------------------------------------------- Comment By: Ferenc Wágner (wferi) Date: 2005-05-03 18:19 Message: Logged In: YES user_id=142529 Just to make sure: the "Could not find module `HTMLMonadBase'..." is entirely reasonable (and my package.conf is crap), it's the "ghc: panic!" I found worrying. Anyway. Let me drift off topic: why no ghcOptions field in package.conf? I'd perhaps try porting Wash if it were present... ---------------------------------------------------------------------- Comment By: Simon Marlow (simonmar) Date: 2005-05-03 16:52 Message: Logged In: YES user_id=48280 At least in the WASH case, this turns out to be because you missed out some modules from the package description. The package description should contain all the modules of the package, either in the exposed-modules or hidden-modules field. The error message is rather unhelpful - we'll try to improve it. I'm hoping this expalanation applies to the HSQL example too - if not, please shout and we can re-open the bug. ---------------------------------------------------------------------- Comment By: Ferenc Wágner (wferi) Date: 2005-05-03 15:17 Message: Logged In: YES user_id=142529 Well, my package.conf does have exposed modules: attach$ ghc-pkg --package-conf package.conf describe WASH-CGI | grep exposed exposed: True exposed-modules: CGI CGIInternals Fields But your ghc-pkg gives a very different error message to that of mine. Wild guess: isn't it possible that it registers some empty packages which override the ones from my package.conf? attach$ ghc-pkg --package-conf package.conf list $ ghc-pkg --package-conf package.conf list /usr/local/lib/ghc-6.4/package.conf: rts-1.0, base-1.0, haskell98-1.0, template-haskell-1.0, unix-1.0, Cabal-1.0, parsec-1.0, haskell-src-1.0, network-1.0, QuickCheck-1.0, HUnit-1.1, mtl-1.0, fgl-5.2, OpenGL-2.0, stm-1.0, readline-1.0, (lang-1.0), (concurrent-1.0), (posix-1.0), (util-1.0), (data-1.0), (text-1.0), (net-1.0), (hssource-1.0) /home/wferi/.ghc/i386-freebsd-6.4/package.conf: package.conf: (Utility), (WASHHTML), (WASHMail), (WASH), WASH-CGI here. I'm absolutely new to this package business, so if you can think of any (possibly trivial) reason for this discrepancy, don't hesitate to ask for the info needed. ---------------------------------------------------------------------- Comment By: Simon Peyton Jones (simonpj) Date: 2005-05-03 13:57 Message: Logged In: YES user_id=50165 I still can't reproduce this. When I get to the 'make install' step I get .././GenPKG/GenPKG Utility -- import_dirs /home/simonpj/tmp/wash/lib/Utility-0.3.11/ghc-6- 4/import --library_dirs /home/simonpj/tmp/wash/lib/Utility- 0.3.11/ghc-6-4 --hs_libraries Utility --package_deps text | /home/simonmar/fp/bin/i386-unknown-linux/ghc-pkg -- update-package --auto-ghci-libs Reading package info from stdin... ghc-pkg: Line 1: Invalid syntax (no colon after field name) make[2]: *** [install] Error 1 ==== Then if I try your next step, to run WASH, I get the 'cant find module' complaint, for the same reason as before: your package.conf file has no exposed modules. I can't see how this can possibly work. Until I can reproduce it, I'm stuck. cam-02-unx:~/tmp/attach$ ghc -package-conf package.conf - package WASH --make Main -pgmF ~/tmp/wash/bin/wash2hs Chasing modules from: Main Could not find module `CGI': use -v to see a list of the files searched for (imported from Main.hs) cam-02-unx:~/tmp/attach$ ---------------------------------------------------------------------- Comment By: Ferenc Wágner (wferi) Date: 2005-04-29 12:32 Message: Logged In: YES user_id=142529 Hi Simon, I agree that the attached package.conf doesn't make much sense. Still, I can cook from my own recipe, just tried like this: $ mkdir retry $ cd retry $ wget http://tac.ki.iif.hu/attach.tgz $ tar -xzf attach.tgz $ tar -xzf ../WashNGo-2.3.1.tgz $ patch <attach/wash64.patch $ cd WashNGo-2.3.1 $ ./configure --prefix=/home/wferi/retry/wash $ gmake depend $ gmake all && gmake install [...] ghc-pkg: /usr/local/lib/ghc-6.4/package.conf: you don't have permission to modify this file gmake[2]: *** [install-dumb-package] Error 1 gmake[2]: Leaving directory `/home/wferi/retry/WashNGo-2.3.1/cgi' gmake[1]: *** [subdirs] Error 2 gmake[1]: Leaving directory `/home/wferi/retry/WashNGo-2.3.1' gmake: *** [install] Error 2 $ cd ../attach $ ghc -package-conf package.conf -package WASH --make Main -F -pgmF /home/wferi/retry/wash/bin/wash2hs and the `impossible' happens. Fixing Wash is slightly beyond my understanding, eg. ghc-options is documented on the Cabal page but isn't present in package.conf, how comes? Regards, Feri. ---------------------------------------------------------------------- Comment By: Simon Peyton Jones (simonpj) Date: 2005-04-29 10:49 Message: Logged In: YES user_id=50165 Feric, I tried following your recipe, but the package.conf you sent didn't have any modules at all in the hidden/exposed modules list. So I still can't reproduce this. Indeed, I'm not sure how either you or mwassell are getting as far as you are, given that neither HSQL nor Wash have package.conf stuff that is compatible with GHC 6.4 Can you fix Wash so that it does use GHC 6.4 package.conf files? Or give me some other way to reproduce it? Simon ---------------------------------------------------------------------- Comment By: Ferenc Wágner (wferi) Date: 2005-04-27 15:31 Message: Logged In: YES user_id=142529 Bummer, how do you attach files to this page? Find my references at http://tac.ki.iif.hu/attach.tgz instead. ---------------------------------------------------------------------- Comment By: Ferenc Wágner (wferi) Date: 2005-04-27 15:26 Message: Logged In: YES user_id=142529 OK, let me try. First of all I applied the attached patch, then ./configure --prefix=/home/wferi/wash make depend make all make install which bailed out when tried to update the system package.conf since I wasn't root. Nevermind, Wash isn't compatible with GHC 6.4 anyways, so I hacked together a user package.conf via ghc_pkg (attached). Then I typed in the first example from the Wash manual (attached) and tried to compile it. I couldn't find a trace of extra_ghc_opts or similar, so had to provide those options on the command line. Hope I didn't forget anything. FreeBSD 5.3-STABLE, btw. ---------------------------------------------------------------------- Comment By: Simon Peyton Jones (simonpj) Date: 2005-04-27 14:18 Message: Logged In: YES user_id=50165 Can someone give complete instructions for how to reproduce this bug? E.g. I'm busy compiling WASH, but it looks as if you have to install it and compile something else too... Step by step repro instructions would be v helpful. Simon ---------------------------------------------------------------------- Comment By: Ferenc Wágner (wferi) Date: 2005-04-26 16:35 Message: Logged In: YES user_id=142529 I've got similar output when trying to compile WashNGo 2.3.1: $ ghc -package WASH --make Main -F -pgmF /home/wferi/wash/bin/wash2hs Chasing modules from: Main Compiling Main ( Main.hs, Main.o ) /home/wferi/wash/lib/WASH-CGI-1.4.37/ghc-6-4/import/CGIInternals.hi : Could not find module `HTMLMonadBase': it is not a module in the current program, or in any known package. ghc-6.4: panic! (the `impossible' happened, GHC version 6.4): forkM Declaration for ask{v} Please report it as a compiler bug to glasgow-haskell-bugs@haskell.org, or http://sourceforge.net/projects/ghc/. I experience this under FreeBSD with GHC compiled from ports. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1188785&group_id=8032 _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs