r-hub / containers

Docker containers for R-hub
https://r-hub.github.io/containers/
15 stars 4 forks source link

ubuntu-clang and libstdc++ #48

Closed theAeon closed 8 months ago

theAeon commented 1 year ago

ubuntu-clang causes Rcpp to fail upon #include <cmath>. A bit of research showed that clang searches for the libstdc include directory based on the newest installed gcc, which in this case is 12. While (I think) the libstdc++11 headers are installed, the libstdc++12 headers are not. This is easily resolved by adding the libstdc++-12-dev package-or probably by removing gcc-12.

gaborcsardi commented 8 months ago

Thanks! We cannot remove gcc-12, because gfortran-12 needs it. But installing libstdc++-12-dev seems to solve the issue.