Mark Utting wrote:
> 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.
>
If you are using a redhat distribution, the solution is even easier: install
the rpm `gmp' (you might also need `gmp-devel'). Both of these are in the
standard 6.0 distribution.
>
> 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?
>
Hmm... FWIW, (on a redhat 6.0 system), I had zero problems either using the
binary dist, or compiling from source (I built using the 4.04 binary - sorry,
not much help, I guess!). Checking my hsc binary, I have both symbols
`__data_start' and `data_start' defined.
--Jeff