problem with "make check" on windows with shared library

Tim Van Holder tim.vanholder at anubex.com
Wed Jun 3 13:08:39 CEST 2009


Marcin Kucharczyk wrote:
> Hello,
> 
> Platform: MinGW on Windows.
> 
> Almost everything works, but ...
> 
> I've configured gmp-4.3.1 using (to get the dll library):
> 
> ./configure --disable-static --enable-shared --enable-cxx --enable-fat
> 
> then:
> 
> make check
> 
> and the result is:
> 
> /bin/make  check-recursive
> make[1]: Entering directory `/d/gmp-4.3.1'
> Making check in tests
> make[2]: Entering directory `/d/gmp-4.3.1/tests'
> Making check in .
> /bin/make  libtests.la t-bswap.exe t-constants.exe t-count_zeros.exe
> t-gmpmax.exe t-hightomask.exe t-modlinv.exe t-popc.exe t-parity.exe
> t-sub.exe
> make[4]: `libtests.la' is up to date.
> make[4]: `t-bswap.exe' is up to date.
> make[4]: `t-constants.exe' is up to date.
> make[4]: `t-count_zeros.exe' is up to date.
> make[4]: `t-gmpmax.exe' is up to date.
> make[4]: `t-hightomask.exe' is up to date.
> make[4]: `t-modlinv.exe' is up to date.
> make[4]: `t-popc.exe' is up to date.
> make[4]: `t-parity.exe' is up to date.
> make[4]: `t-sub.exe' is up to date.
> /bin/make  check-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
> ====================================
> 9 of 9 tests failed
> Please report to gmp-bugs at gmplib.org
> ====================================

Sometimes, executables built using shared libraries will not work unless
installed (I _think_ this applies to more systems that just Windows).
IIRC libtool (if used for the linking) creates wrapper scripts initially
to help with this (so that blah.exe is not actually an executable, but
.deps/blah.exe is - or the other way around, I forget).

The easiest workaround will probably be to do something like
  set PATH=\path\to\gmp.dll;%PATH
before running "make check".
But it _could_ be a bug in how "make check" runs its executables and/or
a symptom of an outdated libtool; I've been away from libtool for too
long to know the current state of its "uninstalled executables with
just-built shared libraries" support under systems like Windows.



More information about the gmp-bugs mailing list