Make install required before make check

Torbjorn Granlund tege at swox.com
Tue Apr 18 15:08:06 CEST 2006


David.Pitt at nab.com.au writes:

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

  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

The GNU project uses "make check", else the sequence is correct.

  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
  ...
  
  After some puzzlement (no help from INSTALL), I divined the correct order
  is:
  
  ./configure
  make
  make install
  make check
  
That is not the correct order.

I don't know what happens on your system, gmp 4.2 builds and checks
fine on other sparc-solaris systems, without any need for a premature
install.

  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'.
  
It is indeed bizarre.  I cannot debug the linking failure, since I
cannot reproduce it.  I will have to reply on you to debug it.  Start
by looking in your environment for suspect settings of
LD_LIBRARY_PATH.

-- 
Torbjörn


More information about the gmp-bugs mailing list