Repository navigation
Open
Description
Describe the bug, including details regarding any error messages, version, and platform.
test-r-linux-as-cran has failed since 2026-10-20 (https://github.com/ursacomputing/crossbow/actions/runs/40825131742).
The R_UPDATE_CLANG step in ci/scripts/r_docker_configure.sh installs clang-22 from the jammy LLVM repo (
arrow/ci/scripts/r_docker_configure.sh
Lines 94 to 109 in 3f1fd72
| # Update clang version to latest available. | |
| # The rhub/ubuntu-clang image ships clang-15 but CRAN's debian-clang now uses | |
| # clang 22. Install clang-22 from LLVM's apt repos to match. | |
| if [ "$R_UPDATE_CLANG" = true ]; then | |
| apt-get update -y --allow-releaseinfo-change | |
| apt-get install -y gnupg | |
| curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor -o /etc/apt/trusted.gpg.d/llvm.gpg | |
| echo "deb https://apt.llvm.org/jammy/ llvm-toolchain-jammy-22 main" > /etc/apt/sources.list.d/llvm22.list | |
| apt-get update -y --allow-releaseinfo-change | |
| apt-get install -y clang-22 lld-22 | |
| # The rhub image hardcodes clang-15/clang++-15 in R's Makeconf, so installing | |
| # clang-22 alone isn't enough: point R at the new compilers. | |
| sed -i 's/clang++-15/clang++-22/g; s/clang-15/clang-22/g' "$(R RHOME)/etc/Makeconf" | |
| echo "R is now using CC=$(R CMD config CC) CXX=$(R CMD config CXX)" | |
| clang-22 --version | |
| fi |
rhub/ubuntu-clang image now ships clang 23 on Ubuntu 26.04, matching CRAN's debian-clang, and the jammy clang-22 packages can't be installed there (libxml2 was renamed to libxml2-16).
Remove the R_UPDATE_CLANG block and its plumbing in dev/tasks/r/github.linux.cran.yml, compose.yaml and ci/docker/linux-r.dockerfile.
This issue was drafted with the help of an AI assistant.
Activity