Discussion:
[Hat] installation problems
Martin Hofmann
2008-12-02 12:00:45 UTC
Permalink
Hi there,

I am trying to install Hat under Ubuntu 8.04, but in vain so far.

First I took the current libghc6-hat-dev
(2.05-rerolled-5ubuntu1(hardy)) using apt-get. Trying to execute any of
the hat binaries a get error messages such as:

*snip*

$ hat-trans Main
hat-trans is not installed/configured for ix86-Linux.
(Tried directory /usr/local/lib/hat-2.06)
See your system administrator, or install it yourself from
http://www.haskell.org/hat/

$ hat-observe Main
exec: 5: /usr/local/lib/hat-2.06/ix86-Linux/hat-observe: not
found

*snip*

This sounds strange, because I have installed v2.05, why are libs from
2.06 required, which obviously are not there - or should they?

However, taking the hat sources and doing it manually yields following
errors after configure and make. Though the hmake option '-ghc' should
not be unknown!

*snip*
$ ./configure
Configuring for hat... [ 2.06 ]
--------
Looking for already-installed Haskell compilers:
Looking for ghc... found 6.8.2
Looking for nhc98... (not found)
Looking for hmake... found 3.13
I am guessing that you want to use ghc (not nhc98) to build hat.
Done.
--------
Configuration report for hat.
(You can re-run configure to change settings before
proceeding.)
You wish (eventually) to install the following components in
these locations:
(Installation directories are not created/checked at this
stage.)
Final install root: /usr/local
Hat binaries: /usr/local/lib/hat-2.06/ix86-Linux
Hat interfaces: /usr/local/include/hat-2.06
Scripts: /usr/local/bin
Man pages: /usr/local/man/man1
Html documents: (none)

Now we check/create your build directories:
Config directory: targets/ix86-Linux
Build directory root:
/home/martin/programs/Hackage/hat-2.06/targets (exists)
Object files build in:
/home/martin/programs/Hackage/hat-2.06/targets/ix86-Linux
(exists)
Executables and libs:
/home/martin/programs/Hackage/hat-2.06/lib/ix86-Linux
(created)

I am guessing you will build hat with: ghc
Executables need .exe suffix? no (detected)
Testing for the glib library: no (using slower
replacement)

Adding Makefile config script to
/home/martin/programs/Hackage/hat-2.06/lib/ix86-Linux...
Adding build scripts to
/home/martin/programs/Hackage/hat-2.06/script...
hat-trans
hat-graph hat-stack hat-check hat-observe hat-detect
hat-delta hat-view hat-trail hat-anim hat-explore hat-cover
black-hat hat-nonterm pretty-hat
Saving current configuration in targets/ix86-Linux/config.cache
Done.

$ make
cd src/trans; make HC=ghc all
make[1]: Entering directory
`/home/martin/programs/Hackage/hat-2.06/src/trans'
mkdir
-p /home/martin/programs/Hackage/hat-2.06/targets/ix86-Linux/obj/trans
rm
-f /home/martin/programs/Hackage/hat-2.06/targets/ix86-Linux/obj/trans/nhc98 /home/martin/programs/Hackage/hat-2.06/targets/ix86-Linux/obj/trans/hbc /home/martin/programs/Hackage/hat-2.06/targets/ix86-Linux/obj/trans/ghc*
make clean
make[2]: Entering directory
`/home/martin/programs/Hackage/hat-2.06/src/trans'
rm
-f /home/martin/programs/Hackage/hat-2.06/targets/ix86-Linux/obj/trans/*. *. *.hi *.hc
make[2]: Leaving directory
`/home/martin/programs/Hackage/hat-2.06/src/trans'
touch
"/home/martin/programs/Hackage/hat-2.06/targets/ix86-Linux/obj/trans/ghc"
hmake -hc=ghc -package base -package packedstring
-fno-warn-deprecations -fno-warn-missing-fields
-fno-warn-missing-methods
-d /home/martin/programs/Hackage/hat-2.06/targets/ix86-Linux/obj/trans -I. -I../compiler98 HatTrans
MkProg: hmake: the compiler 'ghc' is not known.

Stop - hmake dependency error.
make[1]: ***
[/home/martin/programs/Hackage/hat-2.06/lib/ix86-Linux/hat-trans] Error 1
make[1]: Leaving directory
`/home/martin/programs/Hackage/hat-2.06/src/trans'
make: *** [targets/ix86-Linux/hat-trans-ghc] Error 2

*snip*

Did I miss something? Thanks a lot,

Martin
Malcolm Wallace
2008-12-02 12:32:56 UTC
Permalink
Post by Martin Hofmann
(2.05-rerolled-5ubuntu1(hardy))
(Tried directory /usr/local/lib/hat-2.06)
This sounds strange, because I have installed v2.05, why are libs from
2.06 required, which obviously are not there - or should they?
That sounds like a simple packaging error in the ubuntu .deb. The
version numbers certain ought to match.
Post by Martin Hofmann
hmake: the compiler 'ghc' is not known.
I seem to recall that some Debian-based packages of hmake have a
configuration that is independent of installed compilers - it knows only
about "haskell-compiler", but not ghc specifically.

You can easily tell hmake to learn about ghc however:
hmake-config ghc

Regards,
Malcolm

Loading...