[R-pkg-team] Bug#1108078: r-cran-rstan: fails hard with 'Boost not found'

Graham Inggs ginggs at debian.org
Sat Jun 21 10:38:39 BST 2025


Hi Everyone

I would have hoped that r-cran-rstan's autopkgtests would have caught
this, but looking at the output of a recent test in trixie [1] below,
it seems the autopkgtest is missing a dependency on at least gcc, and
despite the large WARNING, the test is not considered a FAIL.

Regards
Graham


[1] https://ci.debian.net/packages/r/r-cran-rstan/testing/amd64/


64s rstan version 2.32.7 (Stan version 2.32.2)
64s
64s For execution on a local, multicore CPU with excess RAM we recommend calling
64s options(mc.cores = parallel::detectCores()).
64s To avoid recompilation of unchanged Stan programs, we recommend calling
64s rstan_options(auto_write = TRUE)
64s For within-chain threading using `reduce_sum()` or `map_rect()`
Stan functions,
64s change `threads_per_chain` option:
64s rstan_options(threads_per_chain = 1)
64s
64s >
64s > test_check("rstan")
64s Read 34 items
64s Read 34 items
65s Trying to compile a simple C file
65s Running /usr/lib/R/bin/R CMD SHLIB foo.c
65s sh: 1: gcc: not found
65s gcc -std=gnu23 -I"/usr/share/R/include" -DNDEBUG -fpic -g -O2
-ffile-prefix-map=/build/reproducible-path/r-base-4.5.0=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -Wdate-time
-D_FORTIFY_SOURCE=2 -c foo.c -o foo.o
65s /bin/bash: line 1: gcc: command not found
65s make: *** [/usr/lib/R/etc/Makeconf:202: foo.o] Error 127
66s
66s WARNING: The tools required to build C++ code for R were not found.
66s
66s Please install GNU development tools including a C++ compiler.
66s
66s Loading required namespace: Matrix
68s [ FAIL 0 | WARN 0 | SKIP 25 | PASS 149 ]



More information about the R-pkg-team mailing list