Make install required before make check

Steve M. Robbins steven.robbins at
Tue Apr 18 16:23:52 CEST 2006

On Tue, Apr 18, 2006 at 03:08:06PM +0200, Torbjorn Granlund wrote:
> David.Pitt at writes:

> 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.

Torbjörn: did you do so without *any* prior install of GMP, not 4.2,
not 4.1.x?  If there is a bug in locating libraries for "make check",
it is possible that you're testing against the installed gmp rather than
the newly-built one.

>   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

Note that libtool puts a shell wrapper around all executables in the
build tree.  When you execute them in the build tree, the script
fiddles with the link command to hard-code a path to the library
in the tree.  You should be able to see that the "real" executable
is linked properly using ldd:

steve at riemann{gmp-4.2.dfsg}ldd tests/.libs/lt-t-bswap =>  (0xffffe000) => /usr/local/src/Packages/gmp/gmp-4.2.dfsg/.libs/ (0xb7fa6000) => /lib/tls/i686/cmov/ (0xb7e4b000)
        /lib/ (0xb7fde000)


More information about the gmp-bugs mailing list