r-hub / rhub

R-hub API client
https://r-hub.github.io/rhub/
Other
353 stars 52 forks source link

Missing `C++11` compiler on linux-x86_64-debian-gcc #502

Closed lionelvoirol closed 2 years ago

lionelvoirol commented 2 years ago

Hi again,

As detailled in my previous issue, I am trying to check the simts package using rhub using check_for_cran()

It appears that there is no C++11 compiler on linux-x86_64-debian-gcc.

Indeed, the package seems to return no error nor warning (except the one I identified due to qpdf in my previous issue @gaborcsardi on Windows Server 2022) on all other containers (fedora-clang-devel, ubuntu-gcc-release or windows-x86_64-devel) except the linux-x86_64-rocker-gcc-san. When reading the log file available here, there is multiple error in the C++ compilation part and by tracing the errors I came up to line 3473 where:

#> /home/docker/R/RcppArmadillo/include/armadillo_bits/compiler_check.hpp:72:4: error: #error "*** C++11 compiler required; enable C++11 mode in your compiler, or use an earlier version of Armadillo"

Could you please confirm me that this is due to a missing C++11 compiler in this container (and potentially fix this by installing one on this image) or, if not, advise me on how to solve this?

Thanks a lot.

lionelvoirol commented 2 years ago

Just found it. The built on linux-x86_64-rocker-gcc-san pass with success once SystemRequirements: C++11 is specified in the DESCRIPTION file of the package. Citing Writing R Extensions section 1.2.4: "Different versions of R have specified different minimum C++ standards, so for maximal portability a package should specify the standard it requires." The built log is available here Thanks.