From sebf at informatik.uni-kiel.de Mon Apr 2 11:37:22 2007 From: sebf at informatik.uni-kiel.de (Sebastian Fischer) Date: Mon Apr 2 11:36:25 2007 Subject: [Hat] problems building hat-2.05 with ghc-6.4 Message-ID: Hi, trying to build hat-2.05 with ghc-6.4 I get the following error during make: Observe.hs:1:0: Module `Observe' is a member of package util-1.0. To compile this module, please use -ignore-package util-1.0. After rerunning the configure script with --buildopts="-ignore-package util-1.0" the make process still does not work properly. I get another error: MkProg: Can't find module util-1.0 in user directories [...] Looks like the parameter was not parsed correctly, as util-1.0 is not a module but a package name. How do I need to specify the additional parameter? Maybe this is useful information: $ uname -mpsrv Darwin 8.9.0 Darwin Kernel Version 8.9.0: Thu Feb 22 20:54:07 PST 2007; root:xnu-792.17.14~1/RELEASE_PPC Power Macintosh powerpc $ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.4 $ hmake --version /Users/sebf/Software/hmake/bin/hmake: 3.13 (2006-11-01) $ gcc --version gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1819) Copyright (C) 2002 Free Software Foundation, Inc. Cheers, Sebastian From Malcolm.Wallace at cs.york.ac.uk Mon Apr 2 12:30:16 2007 From: Malcolm.Wallace at cs.york.ac.uk (Malcolm Wallace) Date: Mon Apr 2 12:32:54 2007 Subject: [Hat] problems building hat-2.05 with ghc-6.4 In-Reply-To: References: Message-ID: <20070402173016.372a40c2.Malcolm.Wallace@cs.york.ac.uk> Sebastian Fischer wrote: > trying to build hat-2.05 with ghc-6.4 I get the following error > during make: > > Observe.hs:1:0: > Module `Observe' is a member of package util-1.0. > To compile this module, please use -ignore-package util-1.0. I am guessing that this occurs when attempting to build the module src/hattools/Observe.hs. Usually, the "util" package is hidden by default in ghc-6.4. Perhaps at some point you have exposed it using ghc-pkg. The easiest way to ensure Hat will build is to hide "util" again: ghc-pkg-6.4 hide util-1.0 > After rerunning the configure script with > --buildopts="-ignore-package util-1.0" ... and remove this option from the Hat configuration. As you inferred, the -ignore-package option is not being parsed correctly by Hat's build system. (You may need to delete targets/powerpc-darwin/config.cache, then re-run configure, to get rid of the option.) Regards, Malcolm From sebf at informatik.uni-kiel.de Tue Apr 3 08:02:04 2007 From: sebf at informatik.uni-kiel.de (Sebastian Fischer) Date: Tue Apr 3 08:05:16 2007 Subject: [Hat] problems building hat-2.05 with ghc-6.4 In-Reply-To: <20070402173016.372a40c2.Malcolm.Wallace@cs.york.ac.uk> References: <20070402173016.372a40c2.Malcolm.Wallace@cs.york.ac.uk> Message-ID: <4224AFA1-9374-4D75-A54C-93E49F21E02B@informatik.uni-kiel.de> On Apr 2, 2007, at 18:30 Uhr, Malcolm Wallace wrote: > The easiest way to ensure Hat will build is to hide "util" > again: > ghc-pkg-6.4 hide util-1.0 Although this didn't work, it was the essential hint that helped to fix the error. In src/hattools/Makefile there are the lines: HMAKEFLAGS = -I. -I$(INCDIR) -fglasgow-exts -package lang -package util \ -DUSE_READLINE=1 $(BUILDOPTS) -prof -auto-all If the parameter -package util is replaced by -package readline then make succeeds (at least on my system). Regards, Sebastian