----- Original Message -----
From: "Brian Dessent" <brian@...>
I meant to get back to this earlier. To recap - I'm trying to come to terms
with the 'make check' failures thrown up when building GMP-4.2.2 as a shared
library. (There's no problem when building GMP-4.2.2 as a static library.)
My original post mentioned failures in both the msys shell and Cygwin's bash
shell (cross-compiling for native Win32).
Let's just concentrate on the msys shell for the moment. On Windows XP,
msys-1.0.10, building gmp-4.2.2 (shared lib), 'make check' terminates with:
>> creating t-sub.exe
>> make: Leaving directory `/home/Rob/comp/gmp-4.2.2/tests'
>> make check-TESTS
>> make: Entering directory `/home/Rob/comp/gmp-4.2.2/tests
>> FAIL: t-bswap.exe
>> FAIL: t-constants.exe
>> FAIL: t-count_zeros.exe
>> FAIL: t-gmpmax.exe
>> FAIL: t-hightomask.exe
>> FAIL: t-modlinv.exe
>> FAIL: t-popc.exe
>> FAIL: t-parity.exe
>> FAIL: t-sub.exe
> I'd say you need to enable verbosity on these tests and find out exactly
> the nature of the failure.
Good point. I couldn't work out how to do that, so I've asked about it in
the email I've just submitted to gmp-bugs@... .
So ... let's change just one thing and revert to gmp-4.2.1. That now builds
fine ... looks like it *is* a gmp bug.
But, on the same XP box, I also have msys-1.0.11.
In that shell, *both* gmp-4.2.2 *and* gmp-4.2.1 (when built as shared libs)
fail to build correctly. For both versions of GMP, the 'make check' process
hangs when the first test executable is run. I've since tried running some
of the other test executables individually, and they all cause a hang.
The fact that GMP-4.2.1 builds ok dynamically in msys-1.0.10 but not
dynamically in 1.0.11 would suggest that something changed between 1.0.10
and 1.0.11 - and GMP does not like that change. Of course, that doesn't mean
it's an msys bug.
Let's now throw in an additional layer of confusion ... with just *one* word
... namely, "Vista". On my Vista box I have only msys-1.0.11. GMP-4.2.2
fails in exactly the same way on Vista, msys-1.0.11 as it failed on XP,
msys-1.0.11. But whereas GMP-4.2.1 also failed in exactly the same way on
XP, msys-1.0.11, GMP-4.2.1 builds flawlessly on Vista, msys-1.0.11. So ...
what's the difference between XP, msys-1.0.11 and Vista, msys-1.0.11 ? Well,
the msys-1.0.11 on Vista incorporates Cesar Strauss's patches (which are
what enable it to work on Vista).
Anyway - as I've said above, I've just posted to gmp-bugs. Let's see what
they can come up with.
In other replies to my initial post both Earnie Boyd and Keith Marshall
proposed that the test failures could just be a line-endings isue. That
could be the case (and I'll probably be able to verify once I find out how
to get diagnostics of the test failures). But if it was a line-endings
issue, wouldn't that affect *static* builds in exactly the same way ?
Thanks for the replies.