Inconsistency in version number.

victor.sunye at victor.sunye at
Tue Feb 7 17:04:24 UTC 2017


I have installed GMP 6.1.2 from source using default options for  
configure. As expected, in 'gmp.h' I find

#define __GNU_MP_VERSION            6
#define __GNU_MP_VERSION_MINOR      1

However, the following C code

#include <stdlib.h>
#include <stdio.h>
#include <gmp.h>

main (void)
  (void) printf ("GMP version: %s\n", gmp_version);
  return EXIT_SUCCESS;


'GMP version: 6.1.0'

instead of 'GMP version: 6.1.2'.

Regards and many thanks for creating and maintaining GMP.

Víctor Suñé

Additional information:

- The code (call it 'gmp_version.c') was compiled using

  'gcc -g -Wall gmp_version.c -o gmp_version -lgmp'

  and run using


- configure options used to build GMP: none.

- configure output: see attached file 'configure_out.gz'

- compiler:


- compiler's version:

   5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)

- output from 'uname -a':

  Linux metfac-20 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47  
UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

- output from 'config.guess':


- output from 'configfsf.guess':


- config.log: see attached file 'config.log.gz'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure_out.gz
Type: application/x-gzip
Size: 4711 bytes
Desc: not available
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log.gz
Type: application/x-gzip
Size: 22691 bytes
Desc: not available
URL: <>

More information about the gmp-bugs mailing list