Skip to content

[R] Compilation errors on continuous benchmarking #48912

Closed

Description

@pitrou

Describe the bug, including details regarding any error messages, version, and platform.

From a quick look at https://buildkite.com/apache-arrow, the platforms that build R Arrow for benchmarking fail doing so.

See for example https://buildkite.com/apache-arrow/arrow-bci-benchmark-on-amd64-m5-4xlarge-linux/builds/319/steps/canvas?sid=019bd6bb-678f-4974-97b4-269b9e2ca478 :

------------------------- NOTE ---------------------------
Cannot install arrow: a C++20 compiler is required.
See https://arrow.apache.org/docs/r/articles/install.html
---------------------------------------------------------

Component(s)

Benchmarking, R

Activity

  1. pitrou commented on Jan 20, 2026

    @pitrou
    MemberAuthor

    It seems the benchmarking suite calls this build_arrow_r function. @thisisnic

  2. rok commented on Jan 21, 2026

    @rok
    Member

    As per buildkite log they first failed with #48819 and ever since.

  3. thisisnic commented on Jan 21, 2026

    @thisisnic
    Member

    @jonkeane Did some digging but very much 🤖 powered so can you confirm if this sounds right to you?


    I investigated the buildkite logs comparing build 305 (last passing) and build 306 (first failing, which included the C++20 PR).

    Both builds use the same R version (4.5.2) and compiler (conda-forge gcc 14.3.0), which supports C++20. However, conda-forge's R build only has CXX17 configured in its Makeconf, not CXX20.

    Arrow's configure script checks R CMD config CXX20 which returns empty because conda-forge's R wasn't configured with CXX20 support - even though the underlying compiler supports it.

    This looks like a conda-forge r-base packaging issue rather than something we can fix in arrow-benchmarks-ci. Their R recipe needs to ensure CXX20 is configured when built with a C++20-capable compiler.

  4. rok commented on Jan 22, 2026

    @rok
    Member

    For the record, we're currently using this arrow-benchmarks-ci repo.

  5. jonkeane commented on Jan 22, 2026

    @jonkeane
    Member

    This looks like a conda-forge r-base packaging issue rather than something we can fix in arrow-benchmarks-ci. Their R recipe needs to ensure CXX20 is configured when built with a C++20-capable compiler.

    This might be a bigger lift, but do we need to use conda-forge for this?

  6. thisisnic commented on Jan 23, 2026

    @thisisnic
    Member

    I'll look into if we can switch it over, will tag you once I have a PR up

  7. added a commit that references this issue on Jan 27, 2026
  8. added this to the 24.0.0 milestone on Jan 27, 2026
  9. thisisnic commented on Jan 27, 2026

    @thisisnic
    Member

    Issue resolved by pull request 48974
    #48974

  10. added a commit that references this issue on May 26, 2026
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