EZ fix for broken make check

Bryce L Nordgren bnordgren at gmail.com
Sun Sep 9 18:08:33 CEST 2007


./configure
make
make check

failed as follows:

====
[snip]
creating t-sub
make[4]: Leaving directory `/home/bryce/src/gmp-4.2.1/tests'
make  check-TESTS
make[4]: Entering directory `/home/bryce/src/gmp-4.2.1/tests'
/home/bryce/src/gmp-4.2.1/tests/.libs/lt-t-bswap: can't load library '
libgmp.so.3'
FAIL: t-bswap
/home/bryce/src/gmp-4.2.1/tests/.libs/lt-t-constants: can't load library '
libgmp.so.3'
FAIL: t-constants
/home/bryce/src/gmp-4.2.1/tests/.libs/lt-t-count_zeros: can't load library '
libgmp.so.3'
FAIL: t-count_zeros
/home/bryce/src/gmp-4.2.1/tests/.libs/lt-t-gmpmax: can't load library '
libgmp.so.3'
FAIL: t-gmpmax
/home/bryce/src/gmp-4.2.1/tests/.libs/lt-t-hightomask: can't load library '
libgmp.so.3'
FAIL: t-hightomask
/home/bryce/src/gmp-4.2.1/tests/.libs/lt-t-modlinv: can't load library '
libgmp.so.3'
FAIL: t-modlinv
/home/bryce/src/gmp-4.2.1/tests/.libs/lt-t-popc: can't load library '
libgmp.so.3'
FAIL: t-popc
/home/bryce/src/gmp-4.2.1/tests/.libs/lt-t-parity: can't load library '
libgmp.so.3'
FAIL: t-parity
/home/bryce/src/gmp-4.2.1/tests/.libs/lt-t-sub: can't load library '
libgmp.so.3'
FAIL: t-sub
==================================
9 of 9 tests failed
Please report to gmp-bugs at swox.com
==================================
make[4]: *** [check-TESTS] Error 1
make[4]: Leaving directory `/home/bryce/src/gmp-4.2.1/tests'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/home/bryce/src/gmp-4.2.1/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/home/bryce/src/gmp-4.2.1/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/bryce/src/gmp-4.2.1'
make: *** [check] Error 2
$
=====

This system does not currently have a version of GMP installed, so on a
whim, I tried the following:
=====
$ export LD_LIBRARY_PATH=/home/bryce/src/gmp-4.2.1/.libs
=====
Those nine tests are now passing OK.  As are the ten following....And the 56
after that.  Geez how many tests did you write?  It's still running, but
there's no apparent problems.  Obviously, these tests all linked correctly
in order to produce executables, but the system can't find your little
non-system-installed shared libraries when it comes time to run.  This leads
me to believe that your make check script just needs to set the
LD_LIBRARY_PATH variable when attempting to run tests?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-bugs/attachments/20070909/0ea29d18/attachment.html 


More information about the gmp-bugs mailing list