[R-pkg-team] Bug#1134831: Should r-cran-rcpp depend on g++ ?

Adrian Bunk bunk at debian.org
Fri Apr 24 20:45:14 BST 2026


Package: r-cran-rcpp
Version: 1.1.1-2
Severity: serious
X-Debbugs-Cc: Debian R Packages Maintainers <r-pkg-team at alioth-lists.debian.net>
Control: affects -1 src:r-cran-bridgesampling src:r-cran-later
Control: block 1130280 by -1
Control: block 1130385 by -1

r-cran-bridgesampling autopkgtest:

https://ci.debian.net/packages/r/r-cran-bridgesampling/testing/amd64/70529599/

...
 89s > test_check("bridgesampling")
 89s Loading required package: bridgesampling
 97s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation)
 97s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation)
100s Running /usr/lib/R/bin/R CMD SHLIB foo.c
100s sh: 1: gcc: not found
...


r-cran-later autopkgtest:

https://ci.debian.net/packages/r/r-cran-later/testing/amd64/70529363/

...
 54s > test_check("later")
 55s sh: 1: x86_64-linux-gnu-g++: not found
...



I wonder which of the following is the right place for depending on g++:
1. r-cran-rcpp
2. r-cran-bridgesampling and r-cran-later (and potentially more packages)
3. as test dependencies for r-cran-bridgesampling and r-cran-later


This is not an issue during package builds due to g++ being build essential,
but build-essential is not installed by default during autopkgtests.



More information about the R-pkg-team mailing list