problems building hat-2.05 with ghc-6.4

View: New views
3 Messages — Rating Filter:   Alert me  

problems building hat-2.05 with ghc-6.4

by Sebastian Fischer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

_______________________________________________
Hat mailing list
Hat@...
http://www.haskell.org/mailman/listinfo/hat

Re: problems building hat-2.05 with ghc-6.4

by Malcolm Wallace :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sebastian Fischer <sebf@...> 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
_______________________________________________
Hat mailing list
Hat@...
http://www.haskell.org/mailman/listinfo/hat

Re: problems building hat-2.05 with ghc-6.4

by Sebastian Fischer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
_______________________________________________
Hat mailing list
Hat@...
http://www.haskell.org/mailman/listinfo/hat