building gmp-6.1 for s390 (31-bit) w/asm disabled failing with undefined sdiv_qrnnd
paul zimmermann
Paul.Zimmermann at inria.fr
Wed Dec 14 21:07:49 UTC 2016
Torbjörn,
> From: tg at gmplib.org (Torbjörn Granlund)
> Date: Wed, 14 Dec 2016 21:33:10 +0100
>
> Vincent Lefevre <vincent at vinc17.net> writes:
>
> I suppose that if one doesn't use the macros that depend on
> GMP internals, there should be no problems. In particular,
> udiv_qrnnd is not used, unless the user configured MPFR to use
> the GMP internals, but then that's the user's own problems.
>
> There is a symbol LONGLONG_STANDALONE which mpfr might want to use.
> It is documented in longlong.h's header.
it is already included in mpfr-impl.h:
$ grep -C 3 LONGLONG_STANDALONE src/mpfr-impl.h
# include "mpfr.h"
# include "mpfr-gmp.h"
# ifdef MPFR_NEED_LONGLONG_H
# define LONGLONG_STANDALONE
# include "mpfr-longlong.h"
# endif
Therefore the issue with undefined sdiv_qrnnd was because the corresponding
code was not protected by #ifdef LONGLONG_STANDALONE?
Paul
More information about the gmp-bugs
mailing list