[Haskell] GHC

Preininger d.i.preininger at tele2.at
Sun Apr 22 09:35:51 EDT 2007


hello

I have Suse 10.1

I try to compile the file hase.hs

the content of hase.hs is

module Main where
main = do putStrLn "Hello World"

I try another gmp and gmp-devel rpm's, no help where can i get the right gmp
rpm's`?

Thank you in advance for any help.

helmut

compile from KDevelop

cd '/home/helmut/hase/src' && ghc --make hase.hs -o
/home/helmut/hase/src/hase
[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'
/usr/lib/ghc-6.6/libHSrts.a(PrimOps.o): In function `plusIntegerzh_fast':
ghc22140_0.hc:(.text+0x71d): undefined reference to `__gmpz_init'
ghc22140_0.hc:(.text+0x739): undefined reference to `__gmpz_add'
/usr/lib/ghc-6.6/libHSrts.a(PrimOps.o): In function `minusIntegerzh_fast':
ghc22140_0.hc:(.text+0x7d6): undefined reference to `__gmpz_init'
ghc22140_0.hc:(.text+0x7f2): undefined reference to `__gmpz_sub'
/usr/lib/ghc-6.6/libHSrts.a(PrimOps.o): In function `timesIntegerzh_fast':
ghc22140_0.hc:(.text+0x889): undefined reference to `__gmpz_init'
ghc22140_0.hc:(.text+0x8a5): undefined reference to `__gmpz_mul'
/usr/lib/ghc-6.6/libHSrts.a(PrimOps.o): In function `gcdIntegerzh_fast':
ghc22140_0.hc:(.text+0x93d): undefined reference to `__gmpz_init'
ghc22140_0.hc:(.text+0x959): undefined reference to `__gmpz_gcd'
/usr/lib/ghc-6.6/libHSrts.a(PrimOps.o): In function `quotIntegerzh_fast':
ghc22140_0.hc:(.text+0x9f6): undefined reference to `__gmpz_init'
ghc22140_0.hc:(.text+0xa12): undefined reference to `__gmpz_tdiv_q'
/usr/lib/ghc-6.6/libHSrts.a(PrimOps.o): In function `remIntegerzh_fast':
ghc22140_0.hc:(.text+0xaa9): undefined reference to `__gmpz_init'
ghc22140_0.hc:(.text+0xac5): undefined reference to `__gmpz_tdiv_r'
/usr/lib/ghc-6.6/libHSrts.a(PrimOps.o): In function
`divExactIntegerzh_fast':
ghc22140_0.hc:(.text+0xb5d): undefined reference to `__gmpz_init'
ghc22140_0.hc:(.text+0xb79): undefined reference to `__gmpz_divexact'
/usr/lib/ghc-6.6/libHSrts.a(PrimOps.o): In function `andIntegerzh_fast':
ghc22140_0.hc:(.text+0xc16): undefined reference to `__gmpz_init'
ghc22140_0.hc:(.text+0xc32): undefined reference to `__gmpz_and'
/usr/lib/ghc-6.6/libHSrts.a(PrimOps.o): In function `orIntegerzh_fast':
ghc22140_0.hc:(.text+0xcc9): undefined reference to `__gmpz_init'
ghc22140_0.hc:(.text+0xce5): undefined reference to `__gmpz_ior'
/usr/lib/ghc-6.6/libHSrts.a(PrimOps.o): In function `xorIntegerzh_fast':
ghc22140_0.hc:(.text+0xd7d): undefined reference to `__gmpz_init'
ghc22140_0.hc:(.text+0xd99): undefined reference to `__gmpz_xor'
/usr/lib/ghc-6.6/libHSrts.a(PrimOps.o): In function
`complementIntegerzh_fast':
ghc22140_0.hc:(.text+0xe12): undefined reference to `__gmpz_init'
ghc22140_0.hc:(.text+0xe26): undefined reference to `__gmpz_com'
/usr/lib/ghc-6.6/libHSrts.a(PrimOps.o): In function `quotRemIntegerzh_fast':
ghc22140_0.hc:(.text+0xebd): undefined reference to `__gmpz_init'
ghc22140_0.hc:(.text+0xec9): undefined reference to `__gmpz_init'
ghc22140_0.hc:(.text+0xeed): undefined reference to `__gmpz_tdiv_qr'
/usr/lib/ghc-6.6/libHSrts.a(PrimOps.o): In function `divModIntegerzh_fast':
ghc22140_0.hc:(.text+0xf99): undefined reference to `__gmpz_init'
ghc22140_0.hc:(.text+0xfa5): undefined reference to `__gmpz_init'
ghc22140_0.hc:(.text+0xfc9): undefined reference to `__gmpz_fdiv_qr'
/usr/lib/ghc-6.6/libHSrts.a(PrimOps.o): In function `gcdIntzh_fast':
ghc22140_0.hc:(.text+0x1019): undefined reference to `__gmpn_gcd_1'
/usr/lib/ghc-6.6/libHSrts.a(PrimOps.o): In function `gcdIntegerIntzh_fast':
ghc22140_0.hc:(.text+0x1039): undefined reference to `__gmpn_gcd_1'
/usr/lib/ghc-6.6/libHSrts.a(PrimOps.o): In function `cmpIntegerzh_fast':
ghc22140_0.hc:(.text+0x10f4): undefined reference to `__gmpn_cmp'
/usr/lib/ghc-6.6/libHSrts.a(Linker.o):(.data+0x14c): undefined reference to
`__gmpn_gcd_1'
/usr/lib/ghc-6.6/libHSrts.a(Linker.o):(.data+0x154): undefined reference to
`__gmpz_cmp'
/usr/lib/ghc-6.6/libHSrts.a(Linker.o):(.data+0x15c): undefined reference to
`__gmpz_cmp_si'
/usr/lib/ghc-6.6/libHSrts.a(Linker.o):(.data+0x164): undefined reference to
`__gmpz_cmp_ui'
/usr/lib/ghc-6.6/libHSrts.a(Linker.o):(.data+0x16c): undefined reference to
`__gmpz_get_si'
/usr/lib/ghc-6.6/libHSrts.a(Linker.o):(.data+0x174): undefined reference to
`__gmpz_get_ui'
collect2: ld returned 1 exit status
*** Beendet mit Status: 1 ***



More information about the Haskell mailing list