GNU MP 6.1.2 error undefined symbol __gmpn_invert_limb in test t-constants

Niels Möller nisse at
Mon Aug 28 20:50:23 UTC 2017

Dennis Clarke <dclarke at> writes:

> In some manner the pre-existing libs were getting in the way likely
> because LD_LIBRARY_PATH=/usr/local/lib and thus the new libs in the
> build_dir/.libs were not used.

LD_LIBRARY_PATH tends to override anything else. Don't use that for
anything but to run specific binaries which need it.

Since this was a gnu/linux system, the usual way to make search
/usr/local/lib is via files under /etc/ (even if that's
system global, unlike LD_LIBRARY_PATH).

> Either way a symbol seems to have appeared because of the assembly
> files.

Right, precisely which internal functions get included in the library
depends on both platform and configure arguments.


Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.

More information about the gmp-bugs mailing list