Make install required before make check

David.Pitt@nab.com.au David.Pitt at nab.com.au
Wed Apr 19 04:30:55 CEST 2006


Hi Torbjorn,

Thanks for your response. I discovered the cause of the problem, I had both
LD_LIBRARY_PATH and LD_LIBRARY_PATH_64 set in my environment.
LD_LIBRARY_PATH_64 overrides LD_LIBRARY_PATH, man ld.so.1 for details.
Unsetting LD_LIBRARY_PATH_64 allowed 'make check' to work without 'make
install'.

Please close this bug report as Resolved - User Error.

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


                                                                          
             Torbjorn Granlund                                            
             <tege at swox.com>                                              
             Sent by:                                                   To
             tege at king.swox.se         David.Pitt at nab.com.au              
                                                                        cc
                                       gmp-bugs at swox.com                  
             18/04/2006 11:08                                      Subject
             PM                        Re: Make install required before   
                                       make check                         
                                                                          
                                                                          
                                                                          
                                                                          
                                                                          
                                                                          




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



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