[R-pkg-team] Bug#1037439: r-cran-rstan/armhf FTBFS with r-cran-bh 1.74

Adrian Bunk bunk at debian.org
Mon Jun 19 14:37:22 BST 2023


On Tue, Jun 13, 2023 at 03:30:18PM -0500, Dirk Eddelbuettel wrote:
> 
> On 13 June 2023 at 13:15, Steve Langasek wrote:
> | Control: reassign -1 r-cran-rstan r-cran-bh
> | Control: found -1 r-cran-rstan/2.21.8-1
> | 
> | Unfortunately, at least in Ubuntu it appears the r-cran-rstan build still
> | exhausts the 32-bit memory space even with boost 1.81.
> | 
> |   https://launchpad.net/ubuntu/+source/r-cran-rstan/2.21.8-1/+build/26010118
> 
> :-/
> 
> Not sure that it is fair to point at BH / Boost though.  Anyway.
> 
> CRAN no longer checks / compiles 32 bit so upstream may not care, but they
> are a good team (if busy).  You could ping Ben, he is at
>    Benjamin K Goodrich <benjamin.goodrich at columbia.edu>
>...

The patch below to r-base fixes the build of r-cran-rstan/i386 for me.

This will reduce debug info in the R ecosystem on 32bit to what is 
required for backtraces, but I assume realistically R on 32bit is
anyway only sparsely used these days.

> Dirk

cu
Adrian

--- debian/rules.old	2023-06-18 19:45:14.437261923 +0000
+++ debian/rules	2023-06-18 19:51:30.097179612 +0000
@@ -90,6 +90,11 @@
 export DEB_CFLAGS_MAINT_APPEND = -ffloat-store
 endif
 
+## fewer debug info on 32bit to workaround 2-4 GB address space limitation
+ifeq ($(DEB_HOST_ARCH_BITS), 32)
+export DEB_CFLAGS_MAINT_APPEND += -g1
+endif
+
 ## edd 31 Mar 2014
 ## edd 14 Oct 2022  disable LTO per email with Graham Inggs
 #optimflags	= -O3 -pipe



More information about the R-pkg-team mailing list