mpfr version 4.1.1 introduced a regression: a compilation error in the usage of `mpfr_custom_get_kind`. See bug #2144197 and https://github.com/CGAL/cgal/issues/7064. A discussion with the author of mpfr led to the creation of an upstream patch, published on https://www.mpfr.org/mpfr-4.1.1/#bugs
Note that mpfr version 4.1.1-p1 can be obtained by applying the upstream patch https://www.mpfr.org/mpfr-4.1.1/allpatches to mpfr version 4.1.1.
Since I was responsible for updating to 4.1.1 in the first place, I'll push this update too. Thank you for engaging with upstream, Laurent.
Thanks Jerry. The issue is now fixed by https://bodhi.fedoraproject.org/updates/FEDORA-2022-7f5a496474. See https://bugzilla.redhat.com/show_bug.cgi?id=2144197#c5.