List Info

Thread: problems building hat-2.05 with ghc-6.4




problems building hat-2.05 with ghc-6.4
user name
2007-04-02 10:37:22
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; rootnu-79
2.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
Hathaskell.org
http://ww
w.haskell.org/mailman/listinfo/hat

Re: problems building hat-2.05 with ghc-6.4
user name
2007-04-02 11:30:16
Sebastian Fischer <sebfinformatik.uni-kiel.de>
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
Hathaskell.org
http://ww
w.haskell.org/mailman/listinfo/hat

Re: problems building hat-2.05 with ghc-6.4
user name
2007-04-03 07:02:04
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
Hathaskell.org
http://ww
w.haskell.org/mailman/listinfo/hat

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )