building gmp-6.1 for s390 (31-bit) w/asm disabled failing with undefined sdiv_qrnnd

Vincent Lefevre vincent at vinc17.net
Fri Dec 9 19:58:40 UTC 2016


On 2016-12-09 20:20:08 +0100, Torbjörn Granlund wrote:
> Mike Frysinger <vapier at gentoo.org> writes:
> 
>   now the __gmpn_udiv_w_sdiv symbol is exported based on the asm
>   configure flag.  mpfr will link against it if it's available,
>   and if you rebuild gmp w/asm disabled, then mpfr is left in a
>   broken state until it gets rebuilt.  this can be a problem when
>   gcc itself relies on gmp/mpfr now :).
>   
>   here's gmp-6.1.0 built w/--enable-asm:
>   $ readelf -sW /usr/lib/libgmp.so | grep udiv_w_sdiv
>      439: 00025538   366 FUNC    GLOBAL DEFAULT   10 __gmpn_udiv_w_sdiv
>   here it's built w/--disable-asm:
>   $ readelf -sW /usr/lib/libgmp.so | grep udiv_w_sdiv
>   <nothing>
> 
> I don't see a solution to this within GMP.
> 
> When other packages rely on reverse engineering of GMP's internals, then
> things such as this are bound to happen.

AFAIK, thst's not the default way to build MPFR.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


More information about the gmp-bugs mailing list