gmp 4.2.4 bug on Cygwin 1.5.25

Vladimir Naidenko naidenko at
Thu Feb 12 15:22:18 CET 2009

Dear Sirs/Madams,

I found a bug when compiling gmp 4.2.4 on Cygwin 1.5.25

The below command

./configure \
"CFLAGS=-march=pentium3 -msse -O3 -fomit-frame-pointer" \
--host=pentium3-pc-mingw32 --build=pentium3-pc-mingw32 \
--disable-cxx --disable-shared --enable-static \
"CPP=cpp -mno-cygwin" \
"CC=gcc -mno-cygwin" \
"CC_FOR_BUILD=gcc -mno-cygwin" \
"CPP_FOR_BUILD=cpp -mno-cygwin"


This error occurs since the variable ac_cv_sizeof_mp_limb_t is handled
as a string rather than an integer because of the carriage return symbol 
in its tail.
I corrected this file "configure" by inserting a new line
ac_cv_sizeof_mp_limb_t=`expr $ac_cv_sizeof_mp_limb_t : '\([0-9]*\)'`
which converts ac_cv_sizeof_mp_limb_t to the integer.

Please find the corrected file "configure" attached in this letter.

Sincerely yours,

Vlad Naid
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.tar.bz2
Type: application/octet-stream
Size: 137984 bytes
Desc: not available
URL: <>

More information about the gmp-bugs mailing list