Skip to content

[CI][R] Remove clang-22 install from test-r-linux-as-cran #55332

Closed

Description

@thisisnic

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 (

# 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
). The 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

  1. self-assigned this
    on Oct 30, 2026
  2. added a commit that references this issue on Nov 3, 2026
  3. added this to the 27.0.0 milestone on Nov 3, 2026
  4. thisisnic commented on Nov 3, 2026

    @thisisnic
    MemberAuthor

    Issue resolved by pull request 55336
    #55336

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions