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

Emmanuel Thomé Emmanuel.Thome at inria.fr
Tue Aug 29 12:29:32 UTC 2017


See there.

https://gmplib.org/devel/repo-usage.html

On Tue, Aug 29, 2017 at 08:06:30AM -0400, Dennis Clarke wrote:
> Is it standard?  Sometimes yes and sometimes no. Depends on the system.
> At least for software that can not be built inside a clean room scenario
> where you have nothing but a clean system, a kernel, a few toolchain
> tools and the gmp sources. The libgmp project is a rare one in which you
> really don't need much of anything to get a clean solid build.

Ergo, you could drop that rpath.

I agree that when you want to rebuild everything and the kitchen sink as
a user, you have to use such things (or --with-foo=, or LDFLAGS, the
latter two being possibly better when viable). But as far as diagnosing a
possible misbehaviour goes, you should first take it out.

> It didn't strike me as strange to build gmp with an rpath preset to
> exactly where I wanted it. I just built mpfr a moment ago with some env vars
> thus :

If you force the linker really hard on putting your target installation
directory first, you should be ready to face the problem that a
pre-existing library takes over. Which is exactly what is happening here.

Mpfr and gmp (up to 6.1.2) differ precisely in this aspect. See the
thread that vincent pointed to on this mailing list.

> ps: this all stems from my attempts to get a gcc compiler built
>     https://gcc.gnu.org/ml/gcc-testresults/2017-08/msg02494.html
>     I am in to day 9 or 10 on this process.

Looks like Real Fun...

E.


More information about the gmp-bugs mailing list