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

Torbjörn Granlund tg at
Sun Nov 27 00:06:11 UTC 2016

Mike Frysinger <vapier at> writes:

  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.

Please try this and comment
  Torbjorn: you should have access to this system to reproduce -- lgentoo3.

I do indeed, and I added this case to the night builds.

Please encrypt, key id 0xC8601622

More information about the gmp-bugs mailing list