Simon wrote:
> Can anyone help with this? Simon and Sigbjorn are both
> on holiday, and I am wonderfully ignorant about such things.
> John McCarten wrote:
>> I recently emailed you concerning the installation of GHC,
>> I have now managed to install and configure to some degree the
>> system, however it 'compiles' a haskell script but fails when
>> trying to import the library gmp, giving the message:...
[I don't know if this will be much help, but...]
I've had a lot of trouble trying to install GHC 4.04 under
Linux too, both from the binary distribution and the source one.
This gmp problem was fairly easy to fix, I just hunted
around the (source) directory tree and found that gmp is actually
included in the GHC distribution and that libgmp.a had been built,
but was just not in the right path for the linker to find it.
Copying that .a file into the directory where ghc was being linked
fixed the problem. So this looks like a problem with the Makefiles.
But next I found that when you try to link the standard hello world
Main.hs, the linker complains about a missing
'data_start' that is called from the GHC libraries. The only
"data_start" we can find is an unsigned long in an Alpha/OSF a.out
header file, but it is not obvious how/why it is in the ghc library
for an i386 linux distribution.
We conjecture that the distribution was either cross-compiled on an Alpha,
or something else happened which mixed some Alpha stuff into the
Linux binary distribution?
Anyway, I've given up for a few weeks until 4.05 comes out :-)
Actually, I'm a bit unclear about what is needed to build GHC
from source. The source distribution does not seem to contain
many .hc files, so I assume you have to have a running version
of GHC in order to compile GHC! Will GHC 3 do? That binary version
does install easily.
Any help appreciated :-)
Mark.
Dr Mark Utting, Senior Lecturer
Department of Computer Science
School of Computing and Mathematical Sciences
The University of Waikato Tel: +64 7 838 4791
Private Bag 3105 Fax: +64 7 838 4155
Hamilton Email: [EMAIL PROTECTED]
New Zealand Web: http://www.cs.waikato.ac.nz/~marku