You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[R] Package v21.0.0 not building on Debian 12 with CMake installed via APT #47202
Look at your build logs, on Debian, the Arrow C++ library (libarrow) is being built from source, whereas on Ubuntu it's using a prebuilt binary. The compilation of the binary is where the CMake version error is coming from.
I think what's happened is that the instruction to update CMake to 3.25 was correct when we changed that (#46831) until we upgraded our bundled version of Thrift recently (#46740) at which point we needed to bump CMake to 3.26.
So we need to update references to CMake 3.25 to instead say CMake 3.26 across the project (including but not limited to the R package). For R, we have a few changes we need to make anyway relating to the recent release, so we can include this here too.
Maybe we want some script (as part of the release process?) which checks for the CMake version and flags it up if we need to bump this in our docs.
I'm a bit confused as it looks like packages are being installed from Posit Public Package manager (p3m) which AFAIK ships the full binaries including the C++ binary for Linux and does have them for Debian.
@benz0li - if you're happy to wait for the 21.0.0.1 release, this should be fixed in there. I'm still unsure why it failed as I'd expect the Debian installation to have used the C++ binary, but I'm wondering if libcurl or openssl is missing? If you wanted 21.0.0 sooner, there's more info in this bit of the docs on how to control source/binary installation of libarrow on Linux: https://arrow.apache.org/docs/r/articles/install.html
I'm a bit confused as it looks like packages are being installed from Posit Public Package manager (p3m) which AFAIK ships the full binaries including the C++ binary for Linux and does have them for Debian.
p3m offers source packages, too. That is what is being used.
I'm still unsure why it failed as I'd expect the Debian installation to have used the C++ binary, but I'm wondering if libcurl or openssl is missing?
Both libcurl4-openssl-dev and libssl-dev are installed.
...
* installing *source* package ‘arrow’ ...
** this is package ‘arrow’ version ‘21.0.0’
** package ‘arrow’ successfully unpacked and MD5 sums checked
** using staged installation
*** pkg-config found.
trying URL 'https://apache.jfrog.io/artifactory/arrow/r/'
downloaded 1500 bytes
*** Found local C++ source: 'tools/cpp'
*** Building libarrow from source
For build options and troubleshooting, see the install guide:
https://arrow.apache.org/docs/r/articles/install.html
*** Building with MAKEFLAGS=-j2
**** cmake 3.25.1: /usr/bin/cmake
**** arrow with SOURCE_DIR='tools/cpp' BUILD_DIR='/tmp/RtmpBQakSl/filec8221997587' DEST_DIR='libarrow/arrow-21.0.0' CMAKE='/usr/bin/cmake' EXTRA_CMAKE_FLAGS='' CC='gcc' CXX='g++ -std=gnu++17' LDFLAGS='-L/usr/local/lib' N_JOBS='2' ARROW_S3='OFF' ARROW_GCS='OFF'
...
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libcurl4-openssl-dev/now 7.88.1-10+deb12u12 amd64 [installed,local]
libssl-dev/now 3.0.16-1~deb12u1 amd64 [installed,local]
libssl3/now 3.0.16-1~deb12u1 amd64 [installed,local]
openssl/now 3.0.16-1~deb12u1 amd64 [installed,local]
==========
== CUDA ==
==========
CUDA Version 12.9.1
Container image Copyright (c) 2016-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license
A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libcurl4-openssl-dev/now 7.81.0-1ubuntu1.20 amd64 [installed,local]
libssl-dev/now 3.0.2-0ubuntu1.19 amd64 [installed,local]
libssl3/now 3.0.2-0ubuntu1.19 amd64 [installed,local]
openssl/now 3.0.2-0ubuntu1.19 amd64 [installed,local]
Footnotes
docker run --rm -ti glcr.b-data.ch/r/base bash -c 'apt list --installed | grep ssl'↩
docker run --rm -ti glcr.b-data.ch/cuda/r/base bash -c 'apt list --installed | grep ssl'↩
changed the title [-][R] Package v21.0.0 not building on Debian 12[/-][+][R] Package v21.0.0 not building on Debian 12 with CMake installed via APT[/+]on Jul 27, 2025
For the latter: docker run --rm -ti glcr.b-data.ch/r/base bash -c 'apt-get update && apt-get -y install --no-install-recommends cmake libthrift-dev && install2.r --error --skipinstalled arrow'
Without installing cmake via APT, docker run --rm -ti glcr.b-data.ch/r/base bash -c 'install2.r --error --skipinstalled arrow' works on both x86_64 and AArch64.
A current version on CMake is downloaded and Thrift v0.22.0 is built from source.
Activity
benz0li commentedon Jul 26, 2025
ℹ️ It builds fine on Ubuntu 22.04 (Base image:
nvidia/cuda:12.9.1-devel-ubuntu22.04; x86_64; CMake 3.22.1): https://gitlab.b-data.ch/jupyterlab/cuda/r/tidyverse/-/jobs/189602Raw logs: https://gitlab.b-data.ch/jupyterlab/cuda/r/tidyverse/-/jobs/189602/raw
thisisnic commentedon Jul 26, 2025
Look at your build logs, on Debian, the Arrow C++ library (libarrow) is being built from source, whereas on Ubuntu it's using a prebuilt binary. The compilation of the binary is where the CMake version error is coming from.
I think what's happened is that the instruction to update CMake to 3.25 was correct when we changed that (#46831) until we upgraded our bundled version of Thrift recently (#46740) at which point we needed to bump CMake to 3.26.
So we need to update references to CMake 3.25 to instead say CMake 3.26 across the project (including but not limited to the R package). For R, we have a few changes we need to make anyway relating to the recent release, so we can include this here too.
Maybe we want some script (as part of the release process?) which checks for the CMake version and flags it up if we need to bump this in our docs.
I'm a bit confused as it looks like packages are being installed from Posit Public Package manager (p3m) which AFAIK ships the full binaries including the C++ binary for Linux and does have them for Debian.
@benz0li - if you're happy to wait for the 21.0.0.1 release, this should be fixed in there. I'm still unsure why it failed as I'd expect the Debian installation to have used the C++ binary, but I'm wondering if libcurl or openssl is missing? If you wanted 21.0.0 sooner, there's more info in this bit of the docs on how to control source/binary installation of libarrow on Linux: https://arrow.apache.org/docs/r/articles/install.html
kou commentedon Jul 26, 2025
To use the Arrow C++ binary on Debian: We may need
export LIBARROW_BINARY=trueby users or need to adddebianto https://github.com/apache/arrow/blob/main/r/tools/nixlibs-allowlist.txt .To build the Arrow C++ source on Debian 12: Could you install
libthrift-devin https://gitlab.b-data.ch/jupyterlab/r/tidyverse/-/blob/main/tidyverse/latest.Dockerfile?ref_type=heads to avoid building bundled Apache Thrift that requires CMake 3.26 or later?benz0li commentedon Jul 27, 2025
p3m offers source packages, too. That is what is being used.
Both
libcurl4-openssl-devandlibssl-devare installed.benz0li commentedon Jul 27, 2025
To reproduce (con x86_64):
docker run --rm -ti glcr.b-data.ch/r/base bash -c 'ARROW_R_DEV=true && apt-get update && apt-get -y install --no-install-recommends cmake && install2.r --error --skipinstalled arrow'debian12_arrow_build-logs.txt
benz0li commentedon Jul 27, 2025
What surprises me:
On Debian 12 (x86_64)1:
On Ubuntu 22.04 (x86_64)2:
Footnotes
docker run --rm -ti glcr.b-data.ch/r/base bash -c 'ARROW_R_DEV=true && apt-get update && apt-get -y install --no-install-recommends cmake && install2.r --error --skipinstalled arrow'↩docker run --rm -ti glcr.b-data.ch/cuda/r/base bash -c 'ARROW_R_DEV=true && apt-get update && apt-get -y install --no-install-recommends cmake && install2.r --error --skipinstalled arrow'↩benz0li commentedon Jul 27, 2025
On Debian 12 (x86_64)1:
On Ubuntu 22.04 (x86_64)2:
Footnotes
docker run --rm -ti glcr.b-data.ch/r/base bash -c 'apt list --installed | grep ssl'↩docker run --rm -ti glcr.b-data.ch/cuda/r/base bash -c 'apt list --installed | grep ssl'↩benz0li commentedon Jul 27, 2025
And yes,
docker run --rm -ti glcr.b-data.ch/r/base bash -c 'install2.r --error --skipinstalled arrow', i.e. not installing CMake via APT, works.For both x86_64 and AArch64. But it takes a very long time.
tidyverse: Remove package cmake
tidyverse: Remove package cmake
[-][R] Package v21.0.0 not building on Debian 12[/-][+][R] Package v21.0.0 not building on Debian 12 with CMake installed via APT[/+]plumber: Remove package cmake
kou commentedon Jul 27, 2025
Could you try this
or
?
FYI: One-liner for the above:
docker run --rm -ti glcr.b-data.ch/r/base bash -c 'apt-get update && apt-get -y install --no-install-recommends cmake && LIBARROW_BINARY=true install2.r --error --skipinstalled arrow'docker run --rm -ti glcr.b-data.ch/r/base bash -c 'apt-get update && apt-get -y install --no-install-recommends cmake libthrift-dev && install2.r --error --skipinstalled arrow'benz0li commentedon Jul 28, 2025
On Debian 12 (x86_64)1:
Footnotes
docker run --rm -ti glcr.b-data.ch/r/base bash -c 'ARROW_R_DEV=true LIBARROW_BINARY=true install2.r --error --skipinstalled arrow'↩benz0li commentedon Jul 28, 2025
Without installing
cmakevia APT,docker run --rm -ti glcr.b-data.ch/r/base bash -c 'install2.r --error --skipinstalled arrow'works on both x86_64 and AArch64.A current version on CMake is downloaded and Thrift v0.22.0 is built from source.