Bug in GMP5.0.0/4.3.2?

James Wanless james at grok.ltd.uk
Mon Jan 11 07:43:18 CET 2010

The GMP version number, and if pre-packaged or patched then say so.
A test program that makes it possible for us to reproduce the bug.  
Include instructions on how to run the program.
A description of what is wrong. If the results are incorrect, in what  
way. If you get a crash, say so.
If you get a crash, include a stack backtrace from the debugger if  
it's informative (`where' in gdb, or `$C' in adb).
Please do not send core dumps, executables or straces.
The configuration options you used when building GMP, if any.
The name of the compiler and its version. For gcc, get the version  
with `gcc -v', otherwise perhaps `what `which cc`', or similar.
The output from running `uname -a'.
The output from running `./config.guess', and from running `./ 
configfsf.guess' (might be the same).
If the bug is related to `configure', then the compressed contents of  
If the bug is related to an asm file not assembling, then the contents  
of config.m4 and the offending line or lines from the temporary mpn/ 

Hopefully, this is what you mean:
1) GMP 5.0.0 (similar results w/ 4.3.2)
2) the 'make check' script included w/ the standard download
3) make check fails to compile
6) ./configure --prefix=$HOME/gmp-5.0.0 --disable-shared --enable-cxx
7) Desmond:~ james$ gcc -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5490~1/src/configure --disable- 
checking -enable-werror --prefix=/usr --mandir=/share/man --enable- 
languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/ 
$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/ 
lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic -- 
host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5490)
8) Desmond:~ james$ uname -a
Darwin Desmond.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15  
16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
9) Desmond:gmp-5.0.0 james$ ./config.guess
Desmond:gmp-5.0.0 james$ ./configfsf.guess
10) pls find attached

PS, thanks very much for your commitment on this. I've noticed a nice  
speedup with the new code under Linux, so it sure would be cool to  
have this fixed! :)))

On 10 Jan 2010, at 21:24, Torbjorn Granlund wrote:

> Thanks for the bug report!
> Please go through http://gmplib.org/manual/Reporting-Bugs.html
> and make sure you don't miss any points, then please follow
> up to this thread.
> We had no Darwin x86 system to test 5,0.0 or 4.3.2 in the last 4  
> months
> of the development.  We used to have one, but it died 2 years after we
> bought it, a few weeks after Apple's warranty expired...
> -- 
> Torbjörn

More information about the gmp-bugs mailing list