From igloo at earth.li Sat Oct 28 18:28:03 2006 From: igloo at earth.li (Ian Lynagh) Date: Sat Oct 28 17:32:29 2006 Subject: [nhc-users] hmake and GHC 6.6 Message-ID: <20061028222803.GA23012@matrix.chaos.earth.li> Hi guys, Has compiling hmake 3.12 been tested with GHC 6.6? The webpage lists "Fix to enable hmake to build with ghc-6.6." under 3.12, but if I grab the tarball and run: ./configure make as INSTALL instructs then I get: ------------------ [...] cd src/interpreter; make HC=ghc BUILDCOMP=ghc all make[1]: Entering directory `/tmp/ian/hmake/hmake-3.12/src/interpreter' mkdir -p /tmp/ian/hmake/hmake-3.12/targets/x86_64-Linux/obj/interpreter /tmp/ian/hmake/hmake-3.12/script/hmake -hc=ghc HInteractive -d/tmp/ian/hmake/hmake-3.12/targets/x86_64-Linux/obj/interpreter \ -i../hmake -package util -package base -DUSE_READLINE=1 -lreadline Warning: package(s) util not available (according to ghc-pkg) MkProg: Can't find module Readline in user directories . ../hmake Or in installed libraries/packages at /usr/lib/ghc-6.6/imports /usr/lib/ghc-6.6/imports Asked for by: SimpleLineEditor.hs Fix using the -I, -P, or -package flags. Stop - hmake dependency error. ------------------ It looks like util should be filtered out in the -ge 605 case of script/fixghc and some dance or other needs to be done to fix the readline problems, but mostly I am worred I am missing something as the webpage implies it should work. I can't see any cabal files (except foe one for cpphs) or anything, though. Thanks Ian From Malcolm.Wallace at cs.york.ac.uk Mon Oct 30 04:14:10 2006 From: Malcolm.Wallace at cs.york.ac.uk (Malcolm Wallace) Date: Mon Oct 30 04:14:11 2006 Subject: [nhc-users] hmake and GHC 6.6 In-Reply-To: <20061028222803.GA23012@matrix.chaos.earth.li> References: <20061028222803.GA23012@matrix.chaos.earth.li> Message-ID: <20061030091410.6d71a80d.Malcolm.Wallace@cs.york.ac.uk> Ian Lynagh writes: > Has compiling hmake 3.12 been tested with GHC 6.6? No, not explicitly. It was tested with the pre-release 6.5 however. > The webpage lists "Fix to enable hmake to build with ghc-6.6." Ah. I expect there is something in a Makefile that still explicitly refers to the ghc by version, using 605 instead of 606. That's the trouble with testing against a pre-release - versioning information can't be checked properly. Regards, Malcolm From Malcolm.Wallace at cs.york.ac.uk Mon Oct 30 06:21:07 2006 From: Malcolm.Wallace at cs.york.ac.uk (Malcolm Wallace) Date: Mon Oct 30 06:37:44 2006 Subject: [nhc-users] hmake and GHC 6.6 In-Reply-To: <20061030091410.6d71a80d.Malcolm.Wallace@cs.york.ac.uk> References: <20061028222803.GA23012@matrix.chaos.earth.li> <20061030091410.6d71a80d.Malcolm.Wallace@cs.york.ac.uk> Message-ID: <20061030112107.23b53cf3.Malcolm.Wallace@cs.york.ac.uk> Malcolm Wallace wrote: > > Has compiling hmake 3.12 been tested with GHC 6.6? > No, not explicitly. It was tested with the pre-release 6.5 however. Actually, that was a lie. I certainly intended to test it on a pre-release, but I don't think I ever actually got round to it. Hence the breakage. > I expect there is something in a Makefile that still explicitly > refers to the ghc by version, using 605 instead of 606. This is also complete nonsense. The issues were exactly as you identified: * fixghc should erase any mention of -package util for ghc >= 6.5 * module Readline is now called System.Console.Readline, and it lives in -package readline. I have pushed a fix, and tested that it works on both ghc-6.4.1 and ghc-6.6. Regards, Malcolm