https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91828

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4

--- Comment #1 from kargl at gcc dot gnu.org ---
(In reply to David Malcolm from comment #0)
> Along with other dependencies, trunk's gcc/docs/install.texi has:
>   @item MPFR Library version 2.4.2 (or later)
> 
> I'm attempting to build trunk against that minimal version, mpfr-2.4.2, and
> the build of fortran fails with:
> 
> ../../../src/gcc/fortran/check.c: In function ‘void bin2real(gfc_expr*,
> int)’:
> ../../../src/gcc/fortran/check.c:257:7: error: ‘mpfr_set_z_2exp’ was not
> declared in this scope; did you mean ‘mpfr_get_d_2exp’?
>   257 |       mpfr_set_z_2exp (x->value.real, em, ie - t, GFC_RND_MODE);
>       |       ^~~~~~~~~~~~~~~
>       |       mpfr_get_d_2exp
> 
> This call to mpfr_set_z_2exp seems to have been added in
> 3d5ce34eb455518344e99966e87e7c44ed64d9da aka r274096 (for PR fortran/88227).
> 
> According to:
>   https://gmplib.org/list-archives/gmp-discuss/2010-June/004197.html
> mpfr_set_z_2exp was added in GNU MPFR 3.0.0:
>   "New function mpfr_set_z_2exp (companion to mpfr_get_z_2exp, which
>    was renamed from mpfr_get_z_exp in previous versions)."
> 
> Should the minimum required version of mpfr be updated, or this check.c be
> rewritten?  (or am I misreading things)

2.4.2 was released 10 years ago and 3.0.0 was released 9 years ago.
I think updating the minimum requirement to at least 3.0.0 would be
fine.  In fact, it might be prudent to bump to 3.1.6, released on
2017-09-07, which appears to be the last release in the 3.x series.

Reply via email to