4 tests failed on gmp 5.0.3 using mingw64 gcc 4.7

Rene Sugar rene.sugar at gmail.com
Wed Feb 8 14:12:31 CET 2012


On 2/8/2012 2:34 AM, Torbjorn Granlund wrote:
> Rene Sugar<rene.sugar at gmail.com>  writes:
>
>    I got the following 4 errors on gmp 5.0.3 when running "make check" on
>    a mingw64 build on Windows 7 64-bit.
>
>    ./configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32
>    --target=x86_64-w64-mingw32 --prefix=/mingw
>    make
>    make check
>
>    My CPU is an AMD Phenom II X4 940 processor. The configure script
>    picked "k8" instead of "amdfam10".
>
> What does config.guess return?
>
> WHat does cpuid return?  (You might try the cpuid2.c program attached.)
>
>
>
>    mpz_mul_si wrong
>    FAIL: t-mul_i.exe
>    mpz_set_si wrong on data[5]
>    FAIL: t-set_si.exe
>
> Alas, this needs to be debugged on your side.  It is not a GMP bug, but
> a bug in your environment, most probably a compiler problem.
>

$ config.guess
k10-pc-mingw32


gcc says k10 is not a valid value. I tried modifying config.status to 
compile with amdfam10 instead of k8 and got the same 4 errors.

I'll try the patch mentioned in a separate email next.


$ cpuid2
AuthenticAMD
Highest value understood by CPUID: 5
Highest extended value understood by CPUID: 8000001b
00100f42
Family   16
Model    4
Stepping 2
FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 
CLFSH MMX FXSR SSE SSE2 HTT
SSE3 MONITOR
Unreliable use of CPUID requested
I think this is: AMD Barcelona
"AMD Phenom(tm) II X4 940 Processor"
cache desc info: size   assoc   line-size
      L1D:           0       0           0
      L1I:           0       0           0
      L2:            0       0           0
      L3:            0       0           0
cache info:      size   assoc   line-size  (func code 0x00000004)
      L1D:           0       0           0
      L1I:           0       0           0
      L2:            0       0           0
      L3:            0       0           0
cache info:      size   assoc   line-size  (func code 0x80000006)
      L1D:          64       2          64
      L1I:          64       2          64
      L2:          512      16          64
      L3:         6144      48          64



uname returns nothing useful in the MSYS environment used by mingw64 on 
Windows 7 64-bit.

$ uname -p
unknown

On Windows, the processor information is available in environment variables.

PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER='AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'
PROCESSOR_LEVEL=16
PROCESSOR_REVISION=0402



More information about the gmp-bugs mailing list