https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89598
Bug ID: 89598
Summary: go frontend fails to build against mpfr 2.4.2
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: go
Assignee: ian at airs dot com
Reporter: dmalcolm at gcc dot gnu.org
CC: cmang at google dot com
Target Milestone: ---
I'm building gcc against mpfr-2.4.2.tar.bz2, which is the minimum version
stated at:
https://gcc.gnu.org/install/prerequisites.html
which says "MPFR Library version 2.4.2 (or later)".
I'm seeing build failures of the form:
../../../src/gcc/go/gofrontend/expressions.cc: In member function ‘unsigned int
Numeric_constant::hash(unsigned int) const’:
../../../src/gcc/go/gofrontend/expressions.cc:17290:40: error: ‘MPFR_RNDN’ was
not declared in this scope; did you mean ‘GMP_RNDN’?
17290 | mpc_abs(m, this->u_.complex_val, MPFR_RNDN);
| ^~~~~~~~~
| GMP_RNDN
The usage of MPFR_RNDN was added in r269242 (akak
0ab323427675e178efdefc397fa82f7f8530a182), in Numeric_constant::hash.
I note r244966 (aka17a58f8aef6dfbfaf7f360cce0524c7d82307a83) poisoned
MPFR_RNDN, in favor of using GMP_RNDN for compat with older MPFRs; presumably
that should be done here?
(See also this thread: https://gcc.gnu.org/ml/gcc-patches/2019-02/msg01767.html
)