integer-gmp2 issues on Solaris/SPARC

Herbert Valerio Riedel hvriedel at gmail.com
Sun Jan 18 15:05:43 UTC 2015


On 2015-01-18 at 15:42:05 +0100, Karel Gardas wrote:
> Hello Herbert,
>
> I'm sorry to bother you, but recent GHC HEAD does have issue on
> Solaris/SPARC platform which shows as undefined symbols during the
> linkage of stage2 binaries. For example ghc-stage2 link step fails
> with:

Btw, what GMP version is that exactly? "GMP 3.5.2" doesn't seem to be an
official GMP release?

[...]

> All binaries fail with the same set of unresolved symbols. I can tell
> you that I don't see this issue on Solaris/i386 nor on Solaris/amd64
> builds as you can verify here: http://haskell.inf.elte.hu/builders/
>
> I'm talking here about exact Solaris 11.1 on SPARC and Solaris 11.1 on
> AMD64 box. Both Solarises provide the same version of libgmp:

[...]

> And yet on i386/amd64 the symbol (one from the failing set as an
> example) __gmpn_andn_n is defined:
>
> $ nm /usr/lib/libgmp.so|grep __gmpn_andn_n
> [86]	|    375728|       101|FUNC |GLOB |0    |14     |__gmpn_andn_n
>
> but on SPARC it's not:
>
> $ nm /usr/lib/libgmp.so|grep __gmpn_andn_n
> $
>
>
> Do you have any magical knob which I can switch on to work around this
> issue by not needing those four symbols above?

...does the <gmp.h> header differ? can you create a simple C program
that calls the mpn_andn operation and compare how linkage differs?

Cheers,
  hvr


More information about the ghc-devs mailing list