[Haskell] GHC

Johannes Waldmann waldmann at imn.htwk-leipzig.de
Sun Apr 22 11:15:49 EDT 2007

> [1 of 1] Compiling Main ( hase.hs, hase.o )
> Linking /home/helmut/hase/src/hase ...
> /usr/lib/ghc-6.6/libHSrts.a(Storage.o): In function `initStorage':
> Storage.c:(.text+0xe2c): undefined reference to `__gmp_set_memory_functions'

this is strange since ghc itself has been compiled by ghc,
and your installations seems to be able to run ghc itself.
from where did you install? (binary rpm?)

find out where the actual ghc executable is:   cat $(which ghc)
something like  GHC_BIN=/usr/local/lib/ghc-6.6/ghc-6.6
and then look at the output of   ldd /usr/local/lib/ghc-6.6/ghc-6.6
this should tell you where  gmp.so  lives.
then you try to find out why the linker does not find it.

best regards, J. W.

More information about the Haskell mailing list