
I'm trying to make Hat (2.00) on a ix86 Linux (RedHat 6.1) machine with nhc98-1.14 and ghc-5.02.3 already installed. I get the following during the make process. cd /home/ajc99/tools/hat-2.00/targets/ix86-Linux/obj/hattools && ghc -fglasgow-exts -package lang -o HatTrail Run.o FFIExtensions.o HighlightStyle.o PrettyLibHighlight.o SExp.o LowLevel.o HatTrail.o /home/ajc99/tools/hat-2.00/targets/ix86-Linux/obj/hattools/artutils.o /home/ajc99/tools/hat-2.00/targets/ix86-Linux/obj/hattools/hat-names.o /home/ajc99/tools/hat-2.00/targets/ix86-Linux/obj/hattools/observe.o -L/usr/lib -lglib /usr/local/funcprog//lib/ghc-5.02.3/libHSstd.a(PrelNum__42.o): In function `s5bt_2_alt': PrelNum__42.o(.text+0x93): undefined reference to `__gmpz_cmp_si' And many more undefined references to functions starting with __gmp, going on until: /usr/local/funcprog//lib/ghc-5.02.3/libHSrts.a(PrimOps.o): In function `divModIntegerzh_fast': PrimOps.o(.text+0xcc1): undefined reference to `__gmpz_init' PrimOps.o(.text+0xcce): undefined reference to `__gmpz_init' PrimOps.o(.text+0xcea): undefined reference to `__gmpz_fdiv_qr' collect2: ld returned 1 exit status make[1]: *** [/home/ajc99/tools/hat-2.00/lib/ix86-Linux/hat-trail] Error 1 make[1]: Leaving directory `/home/ajc99/tools/hat-2.00/src/hat/tools' make: *** [targets/ix86-Linux/hat-tools-ghc] Error 2 The full list is attached. Do you know what I'm doing wrong? Amanda

Amanda Clare
I'm trying to make Hat (2.00) on a ix86 Linux (RedHat 6.1) machine with nhc98-1.14 and ghc-5.02.3 already installed.
/usr/local/funcprog//lib/ghc-5.02.3/libHSstd.a(PrelNum__42.o): In function `s5bt_2_alt': PrelNum__42.o(.text+0x93): undefined reference to `__gmpz_cmp_si'
And many more undefined references to functions starting with __gmp...
GMP is the Gnu multi-precision arithmetic library, which is used internally by ghc to implement the unbounded Integer type and its operations. At a guess, ghc-5.02.3 requires a newer version of the GMP library than the one you get by default in RedHat 6.1. Alternatively, it could be that ghc is not issuing the correct link instructions for the GMP library. It might be better to ask about this particular problem on the glasgow-haskell-bugs list. Regards, Malcolm
participants (2)
-
Amanda Clare
-
Malcolm Wallace