On 12/5/2011 12:32 PM, Jason wrote:
Hi
MPIR-2.5.0-rc1 is released for testing here
http://www.mpir.org/mpir-2.5.0-rc1.tar.bz2
I wanted to let you know that, when using msys/mingw64, 'make check' gets
through almost all tests successfully until misc/t-printf. It fails here due to
the fact that mingw64 does not print posix modifiers by default. A special
define needs to be used in order to get this to succeed. Here is the error message:
PASS: t-locale.exe
FAIL: t-printf.exe
PASS: t-scanf.exe
=============================================================
1 of 3 tests failed
See tests/misc/test-suite.log
Please report to http://groups.google.co.uk/group/mpir-devel/
=============================================================
When running t-printf.exe by itself, it says:
gmp_vsprintf wrong
fmt |%Mu|
got |4294967295|
want |8589934591|
got_len 10
want_len 10
The %Mu format is translated into %llu, the posix modifier to print unsigned
long long vars. However, without the mingw64 specific define in place, it just
prints out the lower 32 bits, and thus fails this test. I've described this in
detail on the GMP mailing list, which you can see here:
http://gmplib.org/list-archives/gmp-bugs/2011-June/002260.html
To reiterate here what I mentioned there, if, after running configure, I add the
following to the bottom of config.h:
#ifdef __MINGW64__
#define __USE_MINGW_ANSI_STDIO 1
#endif
Then run 'make', and then run 'make check', t-printf passes, and therefore ALL
tests pass, in this msys/mingw64 environment.
Is there any interest in applying a patch to fix this issue with the mingw64
compiler? I think the configure script would have to check for the mingw64
compiler, and then add this special define at the end of config.h so that 'make
check' will pass for mingw64 users. However, I don't know how to change the
configure script to do this. In any event, I wanted to let you know what I've
come across in my environment. Thanks again for all the work you do in making
MPIR very fast on Windows x64 systems.
-David C.
--
You received this message because you are subscribed to the Google Groups
"mpir-devel" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/mpir-devel?hl=en.