GMP 5.1.1 make check fail on Solaris 11
Torbjorn Granlund
tg at gmplib.org
Sun Feb 17 10:15:24 CET 2013
Marc Glisse <marc.glisse at inria.fr> writes:
> FAIL: t-ops2 <-- 'trunc' symbol issue
By that you mean we are missing the -lm flag when linking?
Torbjorn, would it be ok if I appended -lm to LDADD in
tests/cxx/Makefile.am, or are there better ways?
I am always curious why something is needed. The file makes several
references to symbols that are in libm, not just trunc but floor and
ceil. Why does it work for the other symbls and on so many machines?
Is there perhaps some automagic handling of linking to libraries with
g++?
(I don't see problems with libm dependencies from the test suite or GMP
utility programs, but we should really avoid them in the library
itself.)
--
Torbjörn
More information about the gmp-bugs
mailing list