Linking failure on aarch64

Marc Glisse marc.glisse at inria.fr
Wed Jul 1 22:13:17 UTC 2020


On Wed, 1 Jul 2020, FX wrote:

> Compiling the latest gmp (6.2.0) for aarch64-apple-darwin without assembly code leads to many failures of the type:
> Symbol not found: ___gmpn_rsblsh1_n
>
> The symbol is always ___gmpn_rsblsh1_n. It is indeed used, but not defined, in the libgmp:
>
> $ nm .libs/libgmp.a | grep rsblsh
>                 U ___gmpn_rsblsh2_n
>                 U ___gmpn_rsblsh2_n
>                 U ___gmpn_rsblsh1_n
>                 U ___gmpn_rsblsh1_n
>                 U ___gmpn_rsblsh1_n
>                 U ___gmpn_rsblsh1_n
>
> Could you help me understand where it should be defined, and why it is not linked into the library?
> The configure line used is:
>
> ./configure --build=aarch64-apple-darwin MPN_PATH=generic

Does it work better if you use the documented --disable-assembly instead?
(disabling assembly seems like a strange thing to do...)

-- 
Marc Glisse


More information about the gmp-bugs mailing list