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

Mike Frysinger vapier at
Fri Nov 25 18:03:58 UTC 2016

building gmp-6.1.0 & gmp-6.1.1 like so:
./configure \
	--build=s390-ibm-linux-gnu --host=s390-ibm-linux-gnu \
	--enable-shared --disable-assembly --enable-cxx --disable-static

triggers this warning:
udiv_w_sdiv.c: In function ‘__gmpn_udiv_w_sdiv’:
udiv_w_sdiv.c:58:4: warning: implicit declaration of function ‘sdiv_qrnnd’ [-Wimplicit-function-declaration]
    sdiv_qrnnd (q, r, a1, a0, d);

and the final lib has an undefined ref to the sdiv_qrnnd symbol.

Torbjorn: you should have access to this system to reproduce -- lgentoo3.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <>

More information about the gmp-bugs mailing list