GMP make check fails: mpf_cmp_si wrong on data[6] gcc 3.2.3 x86_64

Torbjorn Granlund tg at
Mon Dec 8 02:37:21 CET 2008

Greg Smith <gsmith at> writes:

  - GMP version 4.2.4 out of the box
  - './configure', 'make', 'make check'.
  FAIL: t-cmp_si
  >>>> uname -a:
  Linux tor-dsp3 2.4.21-40.ELsmp #1 SMP Thu Feb 2 22:13:55 EST 2006 x86_64
  x86_64 x86_64 GNU/Linux
  >>>> gcc --version
  gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-54)
  (yes, rather old, but I'm trying to upgrade it ... which is what I need
  GMP for)
It is not only old, it is not an official FSF GCC release.

I think it is quite safe to assume that old gcc miscompiled gmp.

  ... I'm going to try to build it on a similar machine with a newer
I don't think gcc dependes on the behaviour of gmp's floats, so you
might dare to use the miscompiled gmp.  Or you could upgrade to an
intermediate gcc, such as gcc 4.2.4, then compile gmp+mpfr with that
gcc, then optionally upgrade to the desired gcc.


More information about the gmp-bugs mailing list