[llvm] [bazel][libc] Update MPFR to v4.2.2 (PR #156691)

Benjamin Barenblat via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 3 08:21:58 PDT 2025


https://github.com/bbarenblat created https://github.com/llvm/llvm-project/pull/156691

Use MPFR v4.2.2 rather than MPFR v4.1.1 for Bazel/Clang builds to avoid conflicts with glibc’s `__float128` fallback typedef. See https://gitlab.inria.fr/mpfr/mpfr/-/commit/c37c9d599b9aced92e182507bf223440bbc9a9f1 for further details.

>From 3d3d4c7fd2df10616ef22ee5f0afde2a7598bfde Mon Sep 17 00:00:00 2001
From: Benjamin Barenblat <bbaren at google.com>
Date: Wed, 3 Sep 2025 11:12:56 -0400
Subject: [PATCH] [bazel][libc] Update MPFR to v4.2.2
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Use MPFR v4.2.2 rather than MPFR v4.1.1 for Bazel/Clang builds to avoid
conflicts with glibc’s `__float128` fallback typedef. See
https://gitlab.inria.fr/mpfr/mpfr/-/commit/c37c9d599b9aced92e182507bf223440bbc9a9f1
for further details.
---
 utils/bazel/WORKSPACE | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/utils/bazel/WORKSPACE b/utils/bazel/WORKSPACE
index 5e28c3b67fc3b..da69e1d7cf5a7 100644
--- a/utils/bazel/WORKSPACE
+++ b/utils/bazel/WORKSPACE
@@ -121,9 +121,9 @@ maybe(
     http_archive,
     name = "mpfr",
     build_file = "@llvm-raw//utils/bazel/third_party_build:mpfr.BUILD",
-    sha256 = "9cbed5d0af0d9ed5e9f8dd013e17838eb15e1db9a6ae0d371d55d35f93a782a7",
-    strip_prefix = "mpfr-4.1.1",
-    urls = ["https://www.mpfr.org/mpfr-4.1.1/mpfr-4.1.1.tar.gz"],
+    sha256 = "826cbb24610bd193f36fde172233fb8c009f3f5c2ad99f644d0dea2e16a20e42",
+    strip_prefix = "mpfr-4.2.2",
+    urls = ["https://www.mpfr.org/mpfr-current/mpfr-4.2.2.tar.gz"],
 )
 
 maybe(



More information about the llvm-commits mailing list