[R-pkg-team] Bug#1099426: r-cran-rmpfr FTBFS on 32-bit

Adrian Bunk bunk at debian.org
Mon Mar 3 13:30:04 GMT 2025


Source: r-cran-rmpfr
Version: 1.0-0-1
Severity: serious
Tags: ftbfs patch
X-Debbugs-Cc: Charles Plessy <plessy at debian.org>

https://buildd.debian.org/status/logs.php?pkg=r-cran-rmpfr&ver=1.0-0-1

...
convert.c: In function ‘R_mpfr_GET_EXP’:
convert.c:71:21: error: ‘mpft_exp_t’ undeclared (first use in this function); did you mean ‘mpfr_exp_t’?
   71 |     r->_mpfr_exp = (mpft_exp_t) CAST_SIGNED(ex[0], unsigned int, int);
      |                     ^~~~~~~~~~
      |                     mpfr_exp_t
...


A fix is attached.
-------------- next part --------------
Description: Fix a typo that caused FTBFS on 32-bit
Author: Adrian Bunk <bunk at debian.org>

--- r-cran-rmpfr-1.0-0.orig/src/convert.c
+++ r-cran-rmpfr-1.0-0/src/convert.c
@@ -68,7 +68,7 @@ static R_INLINE void R_mpfr_FILL_EXP(mpf
 }
 static R_INLINE void R_mpfr_GET_EXP(mpfr_t r, unsigned int *ex,
                                     unsigned int ex1) {
-    r->_mpfr_exp = (mpft_exp_t) CAST_SIGNED(ex[0], unsigned int, int);
+    r->_mpfr_exp = (mpfr_exp_t) CAST_SIGNED(ex[0], unsigned int, int);
 }
 
 


More information about the R-pkg-team mailing list