t-printf failed, gcc-4.2.1, athlon64

Christian Schüler cschueler at gmx.de
Tue Sep 11 03:14:43 CEST 2007

Hi list,
I have compiled gmp-4.2.1 for both pentium4 and amd64 on my machine and 
got 1 failed test.

The output of the pentium4 run

gcc -m32 -O2 -fomit-frame-pointer -mtune=pentium4 -march=pentium4 -o 
t-locale.o  ../../tests/.libs/libtests.a 
make[4]: Leaving directory `/devel/3rdparty/gmp-4.2.1/tests/misc'
make  check-TESTS
make[4]: Entering directory `/devel/3rdparty/gmp-4.2.1/tests/misc'
gmp_vsnprintf return value wrong
  fmt       |%Md|
  bufsize   0
  got       |!0|
  want      ||
  want full |0|
  ret       17
  want_len  1

This application has requested the Runtime to terminate it in an unusual 
Please contact the application's support team for more information.
FAIL: t-printf.exe
PASS: t-scanf.exe
PASS: t-locale.exe
1 of 3 tests failed
Please report to gmp-bugs at swox.com

The same result comes with this amd64 config

gcc -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8 -o t-locale.exe 
t-locale.o  ../../tests/.libs/libtests.a 
/devel/3rdparty/gmp-4.2.1/.libs/libgmp.a ../../.libs/libgmp.a

Machine/GCC specs

$ gcc -v
Using built-in specs.
Target: i686-pc-mingw32
Configured with: ../gcc-4.1.2/configure --with-gcc --prefix=/mingw : 
(reconfigured) ../gcc-4.1.2/configure --with-gcc --prefix=/mingw 
--disable-nls --enable-languages=c,c++
Thread model: win32
gcc version 4.1.2

$ uname -a   
MSYS_NT-5.1 CHRISTIANHOME 1.0.11(0.46/3/2) 2007-07-29 17:16 i686 Msys

More information about the gmp-bugs mailing list