[Haskell-cafe] Mersenne Build Problem

Don Stewart dons at galois.com
Sat Jun 7 14:07:26 EDT 2008


dominic.steinitz:
> I'm getting errors (see below) trying to build the tests in
> 
> http://hackage.haskell.org/cgi-bin/hackage-scripts/package/mersenne-random-0.1.1
> 
> I built the package itself using
> 
> ./Setup configure -f use_sse2
> 
> I thought I had an intel core duo (also see below). I think I may be
> missing a library but I'm not sure which one.
> 
> > Unit.o: In function `s4Da_info':
> > (.text+0x1b21): undefined reference to `genrand_real2'
> > Unit.o: In function `s4RA_info':
> > (.text+0x3e75): undefined reference to `genrand_real2'
> > Unit.o: In function `s4S4_info':
> > (.text+0x3f61): undefined reference to `genrand_real2'
> > Unit.o: In function `s5su_info':
> > (.text+0x40bc): undefined reference to `genrand_real2'
> > /usr/local/lib/mersenne-random-0.1.1/ghc-6.9.20080517/libHSmersenne-random-0.1.1.a(Mersenne.o): In function `mersennezmrandomzm0zi1zi1_SystemziRandomziMersenne_zdwa2_info':
> > ghc13223_0.hc:(.text+0x1a3): undefined reference to `gen_rand64_mix'
> > /usr/local/lib/mersenne-random-0.1.1/ghc-6.9.20080517/libHSmersenne-random-0.1.1.a(Mersenne.o): In function `s2J1_info':
> > ghc13223_0.hc:(.text+0x91d): undefined reference to `gen_rand64_mix'
> > /usr/local/lib/mersenne-random-0.1.1/ghc-6.9.20080517/libHSmersenne-random-0.1.1.a(Mersenne.o): In function `s2JZ_info':
> > ghc13223_0.hc:(.text+0xb3d): undefined reference to `genrand_real2'
> > /usr/local/lib/mersenne-random-0.1.1/ghc-6.9.20080517/libHSmersenne-random-0.1.1.a(Mersenne.o): In function `s2LJ_info':
> > ghc13223_0.hc:(.text+0xf8d): undefined reference to `gen_rand64_mix'
> > /usr/local/lib/mersenne-random-0.1.1/ghc-6.9.20080517/libHSmersenne-random-0.1.1.a(Mersenne.o): In function `s35i_info':
> > ghc13223_0.hc:(.text+0x1397): undefined reference to `genrand_real2'
> > /usr/local/lib/mersenne-random-0.1.1/ghc-6.9.20080517/libHSmersenne-random-0.1.1.a(Mersenne.o): In function `s36A_info':
> > ghc13223_0.hc:(.text+0x1517): undefined reference to `gen_rand64_mix'
> > collect2: ld returned 1 exit status
> > make: *** [all] Error 1
> 

Lookks like the C bits didn't install properly? Possibly your cabal is
very old?


More information about the Haskell-Cafe mailing list