Make install required before make check

David.Pitt@nab.com.au David.Pitt at nab.com.au
Thu Apr 13 04:36:27 CEST 2006



Guys,

Environment details:
gmp-4.2
SunOS tdevs183 5.8 Generic_117350-28 sun4u sparc SUNW,Netra-T12
cc: Sun C 5.5 Patch 112760-15 2004/11/10

Your INSTALL doco is inadequate, and the order of commands is weird.

1. The website bangs on about the importance of 'make check', but INSTALL
only mentions it in passing.

2. I tried the traditional configure/make/make test/make install sequence:

$ ./configure --prefix=$HOME/local
...
$ make
...
$ make test
make: *** No rule to make target `test'.  Stop.
$ make check
make  check-recursive
make[1]: Entering directory `/home/dpitt/oss/gmp-4.2'
Making check in tests
make[2]: Entering directory `/home/dpitt/oss/gmp-4.2/tests'
Making check in .
make[3]: Entering directory `/home/dpitt/oss/gmp-4.2/tests'
make  libtests.la t-bswap t-constants t-count_zeros t-gmpmax t-hightomask
t-modlinv t-popc t-parity t-sub
make[4]: Entering directory `/home/dpitt/oss/gmp-4.2/tests'
make[4]: `libtests.la' is up to date.
make[4]: `t-bswap' is up to date.
make[4]: `t-constants' is up to date.
make[4]: `t-count_zeros' is up to date.
make[4]: `t-gmpmax' is up to date.
make[4]: `t-hightomask' is up to date.
make[4]: `t-modlinv' is up to date.
make[4]: `t-popc' is up to date.
make[4]: `t-parity' is up to date.
make[4]: `t-sub' is up to date.
make[4]: Leaving directory `/home/dpitt/oss/gmp-4.2/tests'
make  check-TESTS
make[4]: Entering directory `/home/dpitt/oss/gmp-4.2/tests'
ld.so.1: t-bswap: fatal: libgmp.so.3: open failed: No such file or
directory
FAIL: t-bswap
ld.so.1: t-constants: fatal: libgmp.so.3: open failed: No such file or
directory
FAIL: t-constants
ld.so.1: t-count_zeros: fatal: libgmp.so.3: open failed: No such file or
directory
FAIL: t-count_zeros
ld.so.1: t-gmpmax: fatal: libgmp.so.3: open failed: No such file or
directory
FAIL: t-gmpmax
ld.so.1: t-hightomask: fatal: libgmp.so.3: open failed: No such file or
directory
FAIL: t-hightomask
ld.so.1: t-modlinv: fatal: libgmp.so.3: open failed: No such file or
directory
FAIL: t-modlinv
ld.so.1: t-popc: fatal: libgmp.so.3: open failed: No such file or directory
FAIL: t-popc
ld.so.1: t-parity: fatal: libgmp.so.3: open failed: No such file or
directory
FAIL: t-parity
ld.so.1: t-sub: fatal: libgmp.so.3: open failed: No such file or directory
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/dpitt/oss/gmp-4.2/tests'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/home/dpitt/oss/gmp-4.2/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/home/dpitt/oss/gmp-4.2/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/dpitt/oss/gmp-4.2'
make: *** [check] Error 2

After some puzzlement (no help from INSTALL), I divined the correct order
is:

./configure
make
make install
make check

This is bizarre, I don't want to install if 'make check' fails. This
shouldn't be hard to fix, update INSTALL when you do. And please include a
'test' target in the Makefile as an alias for 'check'.

Keep up the good work.

Best regards,

David Pitt  | Enterprise Services Technology | National Australia Bank
Limited
Phone +61 3 8641 2014 | Email david.pitt at nab.com.au | Level 6, 500 Bourke
Street, Melbourne


National Australia Bank Limited - ACN 004 044 937
This email may contain confidential information. If you are not the intended recipient, please immediately notify us at postmaster at nab.com.au or by replying to the sender, and then destroy all copies of this email. Except where this email indicates otherwise, views expressed in this email are those of the sender and not of National Australia Bank Limited. Advice in this email does not take account of your objectives, financial situation, or needs. It is important for you to consider these matters and, if the e-mail refers to a product(s), you should read the relevant Product Disclosure Statement(s)/other disclosure document(s) before making any decisions. If you do not want email marketing from us in future, forward this email with "unsubscribe" in the subject line to Unsubscribe at nab.com.au in order to stop marketing emails from this sender. National Australia Bank Limited does not represent that this email is free of errors, viruses or interference


More information about the gmp-bugs mailing list