Unable to compile GMP-4.2.1 on Solaris 10

Marc Glisse marc.glisse at normalesup.org
Mon Jan 12 17:59:23 CET 2009


On Mon, 12 Jan 2009, TATGENHORST, KARL, ATTSI wrote:

>    I have tried a great deal of things to compile this and do believe I
> have run into a bug. I will give you as many details as I can come up
> with, feel free to ask for more.

Is there a reason you are compiling an old version (current is 4.2.4, with 
4.3 coming soon)?

> make runs without error
> make check runs nearly without error until actually building the tests
> and then warns of multiple inclusions such as:
>
> /bin/bash ../libtool --mode=link gcc  -g -O2 -m32 -mptr32 -mcpu=v9   -o
> t-sub  t-sub.o libtests.la ../libgmp.la
> gcc -g -O2 -m32 -mptr32 -mcpu=v9 -o .libs/t-sub t-sub.o
> ./.libs/libtests.a /tmp/gmp-4.2.1/.libs/libgmp.so ../.libs/libgmp.so
> -R/usr/sfw/lib
> ld: warning: file ../.libs/libgmp.so: linked to
> /tmp/gmp-4.2.1/.libs/libgmp.so: attempted multiple inclusion of file

This warning is harmless.

> Then 9 out of 9 tests fail

How do they fail? Usually they complain that they can't find libgmp.so.3, 
which can be worked around by pointing LD_LIBRARY_PATH to the .libs 
directory or running make install before make check.

-- 
Marc Glisse


More information about the gmp-bugs mailing list