gmp-4.3 in the hg repo

Ozkan Sezer sezeroz at gmail.com
Fri Dec 25 10:30:32 CET 2009


Hello:

Build of the 4.3 branch, as it is, seems broken:

mul_fft.c:103: warning: large integer implicitly truncated to unsigned type
mul_fft.c:104: warning: large integer implicitly truncated to unsigned type
mul_fft.c:861: error: conflicting types for '__gmpn_mul_fft'
../../gmp-4.3/gmp-impl.h:1153: note: previous declaration of
'__gmpn_mul_fft' was here

Updating the prototype in gmp-impl.h fixes the build:

--- gmp-4.3.2/gmp-impl.h~       2009-12-25 10:02:52.000000000 +0200
+++ gmp-4.3.2/gmp-impl.h        2009-12-25 10:16:24.000000000 +0200
@@ -1142,7 +1142,7 @@
 int       mpn_fft_best_k __GMP_PROTO ((mp_size_t, int)) ATTRIBUTE_CONST;

 #define   mpn_mul_fft __MPN(mul_fft)
-void      mpn_mul_fft __GMP_PROTO ((mp_ptr, mp_size_t, mp_srcptr,
mp_size_t, mp_srcptr, mp_size_t, int));
+mp_limb_t mpn_mul_fft __GMP_PROTO ((mp_ptr, mp_size_t, mp_srcptr,
mp_size_t, mp_srcptr, mp_size_t, int));

 #define   mpn_mul_fft_full __MPN(mul_fft_full)
 void      mpn_mul_fft_full __GMP_PROTO ((mp_ptr, mp_srcptr,
mp_size_t, mp_srcptr, mp_size_t));

The implicit truncation warnings are still there, don't
know how serious they are.

The Makefiles in the doc directory also needs updating, like:

--- gmp-4.3/doc/Makefile.am~    2009-05-12 09:12:12.000000000 +0300
+++ gmp-4.3/doc/Makefile.am     2009-12-25 10:16:56.000000000 +0200
@@ -22,4 +22,4 @@
 EXTRA_DIST = configuration isa_abi_headache projects.html tasks.html

 info_TEXINFOS = gmp.texi
-gmp_TEXINFOS = fdl.texi
+gmp_TEXINFOS = fdl-1.3.texi

After these changes, building on x86_64-linux (fedora 10) completes
successfully and make check passes.  Hope these are useful.

--
Ozkan


More information about the gmp-devel mailing list