Q: GHC, Parallel libraries
Jan Kybic
kybic@ieee.org
15 Oct 2002 11:46:25 +0200
Hello,
I would like to parallelize my program in Haskell but I have
difficulties getting started. I would therefore appreciate any
help or pointers.
I am using ghc-5.04 on i386 Linux. I installed from a binary bundle on
the ghc website. I thought I would just compile with
--parallel and I would get acess to the 'par' primitive. But no, it
seems that the parallel libraries are missing on my system. If I
understood correctly, they are files with _mp in their name, right?
I looked on the web for a precompiled binary version of those
libraries, in vain. I found the GUM web page but it seems to be much
outdated, based on the ghc-4.06. Is there any more recent version available?
Then, I tried to get the ghc-5.04.1 source distribution and compile it
from source. I found the building guide on the ghc site but it talks
only about fptools in general and does not mention the ghc specificities.
The build (./configure --prefix=$HOME ; make) fails. First of all it
could not find 'readline', which I solved by some config.mk hacking,
now it fails with: Main.hs: can't locate import `Exception'
apparently because the binary bundle directory hierarchy is different
from what the Makefile expects.
I also tried to build only the libraries. It first failed with not
being able to find the ghc-pkg-inplace, after changing this to the
installed version it fails with
Reason: No such file or directory
File: ../../ghc/driver/package.conf
Any help appreciated. Thanks,
Jan
--
-------------------------------------------------------------------------
Jan Kybic <kybic@ieee.org> Odyssee, INRIA, Sophia-Antipolis, France
or <Jan.Kybic@sophia.inria.fr>,tel. work +33 492 38 7589, fax 7845
http://kybic.host.sk/