Compiling GMP 6.0.0a failed (Solaris 11/SPARC): '__gmpn_clz_tab' undeclared

Marc Glisse marc.glisse at inria.fr
Mon Dec 8 19:13:28 UTC 2014


On Mon, 8 Dec 2014, Torbjörn Granlund wrote:

> Marc Glisse <marc.glisse at inria.fr> writes:
>
>  Hmm, we use clz_tab in mpn/sparc64/sparc64.h, but we don't define
>  COUNT_LEADING_ZEROS_NEED_CLZ_TAB (and since we provide
>  count_leading_zeros it isn't defined automatically), so clz_tab isn't
>  provided.
> 
> Tres etrange!

sparcnbsd64.gmplib.org probably doesn't have VIS3, so longlong.h doesn't 
define count_leading_zeros, that explains the difference. I am pushing a 
patch.

-- 
Marc Glisse


More information about the gmp-bugs mailing list