Make install required before make check
Steve M. Robbins
steven.robbins at videotron.ca
Tue Apr 18 16:23:52 CEST 2006
On Tue, Apr 18, 2006 at 03:08:06PM +0200, Torbjorn Granlund wrote:
> David.Pitt at nab.com.au 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
> LD_LIBRARY_PATH.
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
linux-gate.so.1 => (0xffffe000)
libgmp.so.3 => /usr/local/src/Packages/gmp/gmp-4.2.dfsg/.libs/libgmp.so.3 (0xb7fa6000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e4b000)
/lib/ld-linux.so.2 (0xb7fde000)
-Steve
More information about the gmp-bugs
mailing list