Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

R-devel fedora clang version #53

Open
jangorecki opened this issue Oct 25, 2020 · 3 comments
Open

R-devel fedora clang version #53

jangorecki opened this issue Oct 25, 2020 · 3 comments

Comments

@jangorecki
Copy link

jangorecki commented Oct 25, 2020

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
Copy link

cboettig commented Aug 4, 2021

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
Copy link
Author

jangorecki commented Aug 5, 2021

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants