r-hub / rhub-linux-builders

Docker configuration for the R-hub Linux builders
GNU General Public License v2.0
23 stars 13 forks source link

R-devel fedora clang version #53

Open jangorecki opened 4 years ago

jangorecki commented 4 years ago

I noticed that R-devel fedora clang uses clang version 11.0.0 and rhub uses 10.0.1.

docker run -it rhub/fedora-clang-devel clang --version
#clang version 10.0.1 (Fedora 10.0.1-2.fc32)

Is it possible to align clang version to match CRAN's version?

cboettig commented 3 years ago

Looks like CRAN is now using clang-12, while the rhub gets clang-11 (the default clang currently shipped in the rolling debian:testing repos.) It looks like clang-12 can be found in the debian:sid repos, but it isn't the default version of clang there right now either (which is still on clang-11), so a simple apt-pinning strategy probably wouldn't work.

Maybe it would be possible to just install the current clang release from https://github.com/llvm/llvm-project/releases binaries? This might better keep in sync with CRAN's aggressive enforcement of testing against the latest released compiler versions instead of those shipped in linux distros...

jangorecki commented 3 years ago

There is an example of using recent clang in https://gitlab.com/jangorecki/dockerfiles/-/blob/r-devel/ubuntu-clang/Dockerfile And then reused this image in https://gitlab.com/jangorecki/dockerfiles/-/blob/r-devel/r-devel-clang/Dockerfile

I would expect it to work for clang-12 Note that it is not fedora but Ubuntu.

danielinteractive commented 1 year ago

This has still been observed recently in #63 . I would vote to address this with priority, since it is impacting the reproducibility of CRAN failures on Fedora