OS X + core 2 duo + nails

David Harvey dmharvey at math.harvard.edu
Mon Jun 2 14:12:03 CEST 2008


Hi,

I'm getting a few "make check" failures for GMP 4.2.2 (unpatched,  
direct from GMP web site) on a core 2 duo macbook, OS X 10.4.11, when  
nails are enabled. I'm not sure if this is really a bug, since nails  
are supposed to be experimental, but nails have worked for me before  
on other platforms so I thought I should report this.

I configure with

./configure --enable-nails=1

The build appears to go fine, but then I get the following three  
failures:

ERROR
x2        = 6CC
x         = 3A
remainder = 73
FAIL: t-sqrtrem

mpz_perfect_square_p got 0, want 1
   n=0xFF45DB0B2A0D2BD2CDFC636BDB29
FAIL: t-perfsqr

mpz_set_si wrong on data[3]
FAIL: t-set_si


Output from gcc -v:

Using built-in specs.
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5367.obj~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=powerpc-apple-darwin8 --with-arch=nocona -- 
with-tune=generic --program-prefix= --host=i686-apple-darwin8 -- 
target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5367)

Output from uname -a:

Darwin Bruce.local 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10  
18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386

david



More information about the gmp-bugs mailing list