← Back to Pull requests

GH-55440: [C++] Move bundled google-cloud-cpp libraries #55319

Merged
tadeja merged 13 files (179 lines) on Nov 13, 2026 22:42 UTC
View on GitHub
tadeja tadeja commented on Oct 29, 2026 19:10 UTC
Author

Rationale for this change


Fix #55440. This is a follow-up to #54905. Bundled google-cloud-cpp remained in libarrow_bundled_dependencies.a, which broke static linking of non-GCS consumers such as arrow-example-s3-static.

What changes are included in this PR?


  • Move bundled google-cloud-cpp into a new libarrow_gcs_bundled_dependencies library, linked via ArrowGcs::arrow_gcs_static and arrow-gcs.pc.

  • Fix GCS static link dependencies and order.

  • Update R and Linux packaging.

  • Add GCS and S3+GCS static-link checks to cpp/examples/minimal_build.

  • Document arrow_gcs_bundled_dependencies in building.rst
  • Are these changes tested?


    Yes. The new minimal_build static-link checks in CI C++ (ARM64 macOS 26 C++ or 15-intel C++ ...) and C++ Extra (AMD64 Debian SIMD Level NONE or AMD64 Alpine Linux ...) and crossbow test-debian-13-cpp-amd64

    Are there any user-facing changes?


    Yes. Static builds with bundled google-cloud-cpp install a new libarrow_gcs_bundled_dependencies library.
    CMake and pkg-config users get it automatically, others must link it after arrow_gcs.

    Was AI used for this PR?


    In accordance to the AI generation guidelines, please disclose below whether and how AI was used in this PR.

    PR code and description written by:

  • Human

  • AI
  • Reviewed before submission by:

  • Human

  • AI

  • Not reviewed
  • GitHub Issue: #55440
  • Diff: 179 lines (+157 / -22) across 13 files Reviewer: kou Review duration: 21811m
    All Vouch review confidence checks passed
    Residual risk 0.06 = Change Risk (0.52) × (1 − Review Confidence (0.89)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 179 lines diff across 13 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.87 · 5 substantive comment(s)
    0.87
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    89%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.311
    Real PR Conversation Timeline
    39 items
    github-actions[bot] github-actions[bot] commented on Oct 29, 2026 19:11 UTC
    Bot

    <!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements. See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership. The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License. You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied. See the License for the
    specific language governing permissions and limitations
    under the License.
    -->

    Thanks for opening a pull request!

    This pull request has been automatically converted to a draft because its title doesn't match Arrow's required format.

    If this is not a minor PR, could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose

    Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project.

    Then could you also rename the pull request title in the following format?

    GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}

    or

    MINOR: [${COMPONENT}] ${SUMMARY}

    After updating the title, you can mark the pull request as ready for review.

    See also:

    Other pull requests
    Contribution Guidelines - Contributing Overview

    tadeja tadeja commented on Nov 05, 2026 12:37 UTC
    Author

    As found in https://github.com/apache/arrow/pull/55317#issuecomment-6506137683, the following PR

  • #54905
  • caused
    C++ Extra job AMD64 Debian SIMD Level NONE to start failing on 28 Oct
    https://github.com/apache/arrow/actions/runs/40608463298/job/122553847383#step:6:5030

    [100%] Linking CXX executable arrow-example-s3-static
    /usr/bin/ld: /usr/local/lib/libarrow_bundled_dependencies.a(log.cc.o): in function `google::cloud::v3_2::(anonymous namespace)::Timestamp::Timestamp(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > > const&)':
    /build/cpp/_deps/google_cloud_cpp-src/google/cloud/log.cc:41:(.text+0x29): undefined reference to `absl::debian7::FromChrono(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > > const&)'
    /usr/bin/ld: /usr/local/lib/libarrow_bundled_dependencies.a(log.cc.o): in function `google::cloud::v3_2::(anonymous namespace)::operator<<(std::ostream&, google::cloud::v3_2::(anonymous namespace)::Timestamp const&)':
    /build/cpp/_deps/google_cloud_cpp-src/google/cloud/log.cc:47:(.text+0x9f): undefined reference to `absl::debian7::FormatTime[abi:cxx11](absl::debian7::string_view, absl::debian7::Time, absl::debian7::TimeZone)'
    /usr/bin/ld: /usr/local/lib/libarrow_bundled_dependencies.a(log.cc.o): in function `absl::debian7::UTCTimeZone()':
    /usr/include/absl/time/time.h:1277:(.text._ZN4absl7debian711UTCTimeZoneEv[_ZN4absl7debian711UTCTimeZoneEv]+0x9): undefined reference to `absl::debian7::time_internal::cctz::utc_time_zone()'
    collect2: error: ld returned 1 exit status
    gmake[2]: *** [CMakeFiles/arrow-example-s3-static.dir/build.make:144: arrow-example-s3-static] Error 1
    gmake[1]: *** [CMakeFiles/Makefile2:122: CMakeFiles/arrow-example-s3-static.dir/all] Error 2
    gmake: *** [Makefile:91: all] Error 2
    

    And also test-debian-13-cpp-amd64 is failing since 29 Oct 2026 the same way:
    https://github.com/ursacomputing/crossbow/actions/runs/40825143204/job/123286357741#step:7:5014

    [100%] Linking CXX executable arrow-example-s3-static
    /usr/bin/ld: /usr/local/lib/libarrow_bundled_dependencies.a(log.cc.o): in function `google::cloud::v3_2::(anonymous namespace)::Timestamp::Timestamp(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > > const&)':
    /build/cpp/_deps/google_cloud_cpp-src/google/cloud/log.cc:41:(.text+0x29): undefined reference to `absl::debian7::FromChrono(std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > > const&)'
    /usr/bin/ld: /usr/local/lib/libarrow_bundled_dependencies.a(log.cc.o): in function `google::cloud::v3_2::(anonymous namespace)::operator<<(std::ostream&, google::cloud::v3_2::(anonymous namespace)::Timestamp const&)':
    /build/cpp/_deps/google_cloud_cpp-src/google/cloud/log.cc:47:(.text+0x9f): undefined reference to `absl::debian7::FormatTime[abi:cxx11](absl::debian7::string_view, absl::debian7::Time, absl::debian7::TimeZone)'
    /usr/bin/ld: /usr/local/lib/libarrow_bundled_dependencies.a(log.cc.o): in function `absl::debian7::UTCTimeZone()':
    /usr/include/absl/time/time.h:1277:(.text._ZN4absl7debian711UTCTimeZoneEv[_ZN4absl7debian711UTCTimeZoneEv]+0x9): undefined reference to `absl::debian7::time_internal::cctz::utc_time_zone()'
    collect2: error: ld returned 1 exit status
    gmake[2]: *** [CMakeFiles/arrow-example-s3-static.dir/build.make:144: arrow-example-s3-static] Error 1
    gmake[1]: *** [CMakeFiles/Makefile2:122: CMakeFiles/arrow-example-s3-static.dir/all] Error 2
    gmake: *** [Makefile:91: all] Error 2
    

    tadeja tadeja commented on Nov 05, 2026 12:38 UTC
    Author

    @github-actions crossbow submit test-debian-13-cpp-amd64

    github-actions[bot] github-actions[bot] commented on Nov 05, 2026 12:40 UTC
    Bot

    Revision: 2476a34c43bef79ae4620e3ee33aea16d93eb323

    Submitted crossbow builds: ursacomputing/crossbow @ actions-1fd9f52c9c

    |Task|Status|
    |----|------|
    |test-debian-13-cpp-amd64|![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/runs/42029040223/job/127250451869)|

    github-actions[bot] github-actions[bot] commented on Nov 07, 2026 12:15 UTC
    Bot

    :warning: GitHub issue #55440 has been automatically assigned in GitHub to PR creator.

    raulcd raulcd commented on Nov 11, 2026 11:37 UTC
    Contributor

    @tadeja, I remembered about this issue now and was trying to find whether it was already fixed or not. Can I help with anything?

    tadeja tadeja commented on Nov 11, 2026 18:44 UTC
    Author

    @github-actions crossbow submit test-debian-13-cpp-amd64

    github-actions[bot] github-actions[bot] commented on Nov 11, 2026 18:47 UTC
    Bot

    Revision: d1528240edaa9ffb75729ffd034a457cc6a82ffa

    Submitted crossbow builds: ursacomputing/crossbow @ actions-b7baa33877

    |Task|Status|
    |----|------|
    |test-debian-13-cpp-amd64|![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/runs/43080951942/job/130733045522)|

    tadeja tadeja commented on Nov 11, 2026 21:39 UTC
    Author

    @github-actions crossbow submit r-binary-packages test-r-offline-maximal test-debian-13-cpp-amd64

    Copilot Copilot commented on code on Nov 11, 2026 23:17 UTC
    Code Review
    r/configure.win:1
    @@ -89,7 +89,8 @@ function configure_binaries() {
       PKG_LIBS="-L${RWINLIB}/lib"'$(subst gcc,,$(COMPILED_BY))$(R_ARCH) '
       PKG_LIBS="$PKG_LIBS -L${RWINLIB}/lib"'$(R_ARCH)$(CRT) '
       PKG_LIBS="$PKG_LIBS -larrow_dataset -larrow_acero -lparquet -larrow_compute -larrow_s3 \
    -            -larrow_gcs -larrow -larrow_bundled_dependencies \
    +            -larrow_gcs -larrow_gcs_bundled_dependencies -larrow \

    Adding this archive unconditionally breaks Windows R builds using pre-split binaries: those distributions contain the SDK in libarrow_bundled_dependencies.a and have no libarrow_gcs_bundled_dependencies.a, so the linker fails with cannot find -larrow_gcs_bundled_dependencies. tools/nixlibs.R still accepts pre-downloaded binaries (ARROW_DOWNLOADED_BINARIES/RWINLIB_LOCAL) and selects the latest available nightly independently of this checkout. Please add this flag only when the selected binary distribution contains the new archive, as the Unix configure path already does.

    copilot-pull-request-reviewer[bot] copilot-pull-request-reviewer[bot] commented on Nov 11, 2026 23:17 UTC
    Reviewer

    <!-- ccr-overview-v2 -->

    🟡 Changes recommended

    The unconditional GCS archive link flag breaks Windows R builds using pre-split binaries that lack the archive, so it must be conditional on the selected distribution’s contents.

    <details open>
    <summary><strong>1 open issue</strong></summary>

  • <picture><source media="(prefers-color-scheme: dark)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-light.svg"><img src="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-light.png" alt="Medium severity" width="62" height="18" align="texttop"></picture> Conditionally link the GCS archive for Windows binaries · New

  • </details>

    <details>
    <summary><strong>What changed in this PR</strong></summary>

    This PR addresses the static-linking regression introduced when GCS moved into its own Arrow library. It separates bundled Google Cloud SDK archives from core Arrow dependencies and adds static-link checks.

    Changes:

  • Create a GCS-specific bundled dependency archive and update CMake and pkg-config link metadata.

  • Update R linking and Linux development packages for the new archive.

  • Add GCS-only and combined S3/GCS static-link examples and CI checks.
  • | File | Description |
    | ---- | ----------- |
    | r/​configure.win | Add the GCS bundled archive to Windows binary link flags. |
    | r/​configure | Detect the GCS bundled archive for fallback linking. |
    | dev/​tasks/​linux-packages/​apache-arrow/​yum/​arrow.spec.in | Include GCS static archives in RPM development packages. |
    | dev/​tasks/​linux-packages/​apache-arrow/​debian/​libarrow-gcs-dev.install | Include GCS static archives in Debian development packages. |
    | cpp/​src/​arrow/​CMakeLists.txt | Build and install the GCS dependency archive and update link metadata. |
    | cpp/​src/​arrow/​ArrowGcsConfig.cmake.in | Expose the bundled GCS archive and its dependencies to installed consumers. |
    | cpp/​src/​arrow/​ArrowConfig.cmake.in | Propagate bundled archive dependencies and macOS framework requirements. |
    | cpp/​examples/​minimal_build/​README.md | Document static filesystem example options. |
    | cpp/​examples/​minimal_build/​example.cc | Exercise GCS filesystem construction. |
    | cpp/​examples/​minimal_build/​CMakeLists.txt | Add GCS-only and combined static-link targets. |
    | cpp/​cmake_modules/​ThirdpartyToolchain.cmake | Track bundled GCS libraries separately and add CoreFoundation link metadata. |
    | ci/​scripts/​cpp_test.sh | Check S3 independently, then build and run static filesystem examples. |
    </details>

    <sub>Review effort: Balanced</sub>

    copilot-pull-request-reviewer[bot] copilot-pull-request-reviewer[bot] commented on Nov 12, 2026 09:49 UTC
    Reviewer

    <!-- ccr-overview-v2 -->

    🟢 Approval recommended

    No active review issues are identified for the GCS dependency archive separation and related static-linking and packaging updates.

    No open issues 🎉

    <details>
    <summary><strong>1 resolved since last review</strong></summary>

  • <picture><source media="(prefers-color-scheme: dark)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-light.svg"><img src="https://github.githubassets.com/static/images/icons/copilot-code-review/medium-v2-light.png" alt="Medium severity" width="62" height="18" align="texttop"></picture> Conditionally link the GCS archive for Windows binaries

  • </details>

    <sub>Review effort: Balanced</sub>

    tadeja tadeja commented on Nov 12, 2026 10:08 UTC
    Author

    @github-actions crossbow submit r-binary-packages test-r-offline-maximal test-debian-13-cpp-amd64

    copilot-pull-request-reviewer[bot] copilot-pull-request-reviewer[bot] commented on Nov 12, 2026 10:14 UTC
    Reviewer

    <!-- ccr-overview-v2 -->

    🟢 Approval recommended

    No active review issues are reported for the GCS static-link dependency changes.

    No open issues 🎉

    <sub>Review effort: Balanced</sub>

    tadeja tadeja commented on Nov 12, 2026 11:17 UTC
    Author

    @github-actions crossbow submit test-r-offline-maximal

    github-actions[bot] github-actions[bot] commented on Nov 12, 2026 11:18 UTC
    Bot

    Revision: 04198cfb9fcc0ad62787f322eda9f032bcec6b1e

    Submitted crossbow builds: ursacomputing/crossbow @ actions-f295c03c10

    |Task|Status|
    |----|------|
    |test-r-offline-maximal|![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/runs/43207961821/job/131147842097)|

    copilot-pull-request-reviewer[bot] copilot-pull-request-reviewer[bot] commented on Nov 12, 2026 12:24 UTC
    Reviewer

    <!-- ccr-overview-v2 -->

    🟢 Approval recommended

    No active review issues are recorded for the GCS dependency archive separation.

    No open issues 🎉

    <sub>Review effort: Balanced</sub>

    tadeja tadeja commented on Nov 12, 2026 12:24 UTC
    Author

    @github-actions crossbow submit test-debian-13-cpp-amd64

    github-actions[bot] github-actions[bot] commented on Nov 12, 2026 12:26 UTC
    Bot

    Revision: 57f6da7b56fddc68922f6e42dd03707a74549ccf

    Submitted crossbow builds: ursacomputing/crossbow @ actions-8209b2703a

    |Task|Status|
    |----|------|
    |test-debian-13-cpp-amd64|![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/runs/43217748547/job/131181193879)|

    tadeja tadeja commented on Nov 12, 2026 12:28 UTC
    Author

    @github-actions crossbow submit test-ubuntu-22.04-cpp-bundled test-ubuntu-24.04-cpp-gcc-13-bundled

    github-actions[bot] github-actions[bot] commented on Nov 12, 2026 12:30 UTC
    Bot

    Revision: 57f6da7b56fddc68922f6e42dd03707a74549ccf

    Submitted crossbow builds: ursacomputing/crossbow @ actions-2f1460b1ff

    |Task|Status|
    |----|------|
    |test-ubuntu-22.04-cpp-bundled|![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/runs/43218310212/job/131183109826)|
    |test-ubuntu-24.04-cpp-gcc-13-bundled|![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/runs/43218311373/job/131183114489)|

    tadeja tadeja commented on Nov 12, 2026 13:52 UTC
    Author

    @raulcd, @kou this is finally ready for a review now.
    All failing 3 C++ jobs and R job look unrelated (appear on other PRs too).

    raulcd raulcd commented on code on Nov 12, 2026 15:58 UTC
    Code Review
    cpp/cmake_modules/ThirdpartyToolchain.cmake:1
    @@ -3860,13 +3864,8 @@ function(build_google_cloud_cpp_storage)
       # 141MB -> 79MB
       file(REMOVE_RECURSE "${google_cloud_cpp_SOURCE_DIR}/ci")
     
    -  list(PREPEND
    -       ARROW_BUNDLED_STATIC_LIBS
    -       google-cloud-cpp::storage
    -       google-cloud-cpp::rest_internal
    -       google-cloud-cpp::common)
    -  set(ARROW_BUNDLED_STATIC_LIBS
    -      ${ARROW_BUNDLED_STATIC_LIBS}
    +  set(ARROW_GCS_BUNDLED_STATIC_LIBS
    +      google-cloud-cpp::storage google-cloud-cpp::rest_internal google-cloud-cpp::common

    I am still trying to get my head around why this is an issue but

    list(PREPEND ARROW_BUNDLED_STATIC_LIBS ${AWSSDK_LINK_LIBRARIES})
    

    isn't and we don't seem to require an ARROW_S3_BUNDLED_STATIC_LIBS

    raulcd raulcd commented on code on Nov 12, 2026 16:00 UTC
    Code Review
    cpp/examples/minimal_build/CMakeLists.txt:1
    @@ -67,3 +67,30 @@ elseif(ARROW_EXAMPLE_S3_STATIC_CHECK)
       message(STATUS "Skipping arrow-example-s3-static: "
                      "requires ARROW_S3 and Arrow::arrow_static")
     endif()
    +
    +option(ARROW_EXAMPLE_GCS_STATIC_CHECK "Verify GCS and static linking" OFF)
    +if(ARROW_EXAMPLE_GCS_STATIC_CHECK
    +   AND ARROW_GCS
    +   AND TARGET Arrow::arrow_static)
    +  find_package(ArrowGcs REQUIRED)
    +  if(NOT TARGET ArrowGcs::arrow_gcs_static)
    +    message(FATAL_ERROR "ArrowGcs::arrow_gcs_static not found")
    +  endif()
    +  add_executable(arrow-example-gcs-static example.cc)
    +  target_compile_definitions(arrow-example-gcs-static
    +                             PRIVATE ARROW_EXAMPLE_GCS_STATIC_CHECK)
    +  target_link_libraries(arrow-example-gcs-static PRIVATE ArrowGcs::arrow_gcs_static)
    +
    +  if(TARGET ArrowS3::arrow_s3_static)
    +    add_executable(arrow-example-s3-gcs-static example.cc)
    +    target_compile_definitions(arrow-example-s3-gcs-static
    +                               PRIVATE ARROW_EXAMPLE_S3_STATIC_CHECK
    +                                       ARROW_EXAMPLE_GCS_STATIC_CHECK)
    +    target_link_libraries(arrow-example-s3-gcs-static PRIVATE ArrowS3::arrow_s3_static
    +                                                              ArrowGcs::arrow_gcs_static)

    shouldn't we require ARROW_EXAMPLE_S3_STATIC_CHECK here too? I am not sure the if is covering this.

    kou kou commented on code on Nov 13, 2026 01:43 UTC
    Code Review
    ci/scripts/cpp_test.sh:1
    @@ -147,18 +147,23 @@ if [ "${ARROW_USE_MESON:-OFF}" = "OFF" ] && \
         -S "${source_dir}/examples/minimal_build" \
         -B "${build_dir}/examples/minimal_build" \
         -DARROW_EXAMPLE_S3_STATIC_CHECK=ON \
    +    -DARROW_EXAMPLE_GCS_STATIC_CHECK=ON \

    Could you keep this list in alphabetical order?

        -DARROW_EXAMPLE_GCS_STATIC_CHECK=ON \
        -DARROW_EXAMPLE_S3_STATIC_CHECK=ON \
    

    kou kou approved these changes on Nov 13, 2026 02:59 UTC
    Approved Reviewer

    +1

    I've opened https://github.com/apache/arrow/issues/55583 to clean up ArrowConfig.cmake.in.

    raulcd raulcd commented on code on Nov 13, 2026 09:04 UTC
    Code Review
    cpp/cmake_modules/ThirdpartyToolchain.cmake:1
    @@ -3860,13 +3864,8 @@ function(build_google_cloud_cpp_storage)
       # 141MB -> 79MB
       file(REMOVE_RECURSE "${google_cloud_cpp_SOURCE_DIR}/ci")
     
    -  list(PREPEND
    -       ARROW_BUNDLED_STATIC_LIBS
    -       google-cloud-cpp::storage
    -       google-cloud-cpp::rest_internal
    -       google-cloud-cpp::common)
    -  set(ARROW_BUNDLED_STATIC_LIBS
    -      ${ARROW_BUNDLED_STATIC_LIBS}
    +  set(ARROW_GCS_BUNDLED_STATIC_LIBS
    +      google-cloud-cpp::storage google-cloud-cpp::rest_internal google-cloud-cpp::common

    ok, as this is green and fixes a real issue I think we should merge. We should probably create ARROW_S3_BUNDLED_STATIC_LIBS as this might be just coincidence that is not currently failing but we can do that afterwards.

    raulcd raulcd approved these changes on Nov 13, 2026 09:04 UTC
    Approved Reviewer

    Approved these changes.

    kou kou commented on code on Nov 13, 2026 09:07 UTC
    Code Review
    cpp/examples/minimal_build/CMakeLists.txt:1
    @@ -67,3 +67,30 @@ elseif(ARROW_EXAMPLE_S3_STATIC_CHECK)
       message(STATUS "Skipping arrow-example-s3-static: "
                      "requires ARROW_S3 and Arrow::arrow_static")
     endif()
    +
    +option(ARROW_EXAMPLE_GCS_STATIC_CHECK "Verify GCS and static linking" OFF)
    +if(ARROW_EXAMPLE_GCS_STATIC_CHECK
    +   AND ARROW_GCS
    +   AND TARGET Arrow::arrow_static)
    +  find_package(ArrowGcs REQUIRED)
    +  if(NOT TARGET ArrowGcs::arrow_gcs_static)
    +    message(FATAL_ERROR "ArrowGcs::arrow_gcs_static not found")
    +  endif()
    +  add_executable(arrow-example-gcs-static example.cc)
    +  target_compile_definitions(arrow-example-gcs-static
    +                             PRIVATE ARROW_EXAMPLE_GCS_STATIC_CHECK)
    +  target_link_libraries(arrow-example-gcs-static PRIVATE ArrowGcs::arrow_gcs_static)
    +
    +  if(TARGET ArrowS3::arrow_s3_static)
    +    add_executable(arrow-example-s3-gcs-static example.cc)
    +    target_compile_definitions(arrow-example-s3-gcs-static
    +                               PRIVATE ARROW_EXAMPLE_S3_STATIC_CHECK
    +                                       ARROW_EXAMPLE_GCS_STATIC_CHECK)
    +    target_link_libraries(arrow-example-s3-gcs-static PRIVATE ArrowS3::arrow_s3_static
    +                                                              ArrowGcs::arrow_gcs_static)

    I think that we should fix this before we merge this.

    tadeja tadeja commented on Nov 13, 2026 10:42 UTC
    Author

    @github-actions crossbow submit test-debian-13-cpp-amd64 test-ubuntu-22.04-cpp-bundled test-ubuntu-24.04-cpp-gcc-13-bundled

    copilot-pull-request-reviewer[bot] copilot-pull-request-reviewer[bot] commented on Nov 13, 2026 10:43 UTC
    Reviewer

    <!-- ccr-overview-v2 -->

    🟢 Approval recommended

    No active review issues were identified for the change separating bundled GCS dependencies from Arrow’s core archive.

    No open issues 🎉

    <sub>Review effort: Balanced</sub>

    github-actions[bot] github-actions[bot] commented on Nov 13, 2026 10:49 UTC
    Bot
    tadeja tadeja commented on code on Nov 13, 2026 12:25 UTC
    Code Review
    cpp/examples/minimal_build/CMakeLists.txt:1
    @@ -67,3 +67,30 @@ elseif(ARROW_EXAMPLE_S3_STATIC_CHECK)
       message(STATUS "Skipping arrow-example-s3-static: "
                      "requires ARROW_S3 and Arrow::arrow_static")
     endif()
    +
    +option(ARROW_EXAMPLE_GCS_STATIC_CHECK "Verify GCS and static linking" OFF)
    +if(ARROW_EXAMPLE_GCS_STATIC_CHECK
    +   AND ARROW_GCS
    +   AND TARGET Arrow::arrow_static)
    +  find_package(ArrowGcs REQUIRED)
    +  if(NOT TARGET ArrowGcs::arrow_gcs_static)
    +    message(FATAL_ERROR "ArrowGcs::arrow_gcs_static not found")
    +  endif()
    +  add_executable(arrow-example-gcs-static example.cc)
    +  target_compile_definitions(arrow-example-gcs-static
    +                             PRIVATE ARROW_EXAMPLE_GCS_STATIC_CHECK)
    +  target_link_libraries(arrow-example-gcs-static PRIVATE ArrowGcs::arrow_gcs_static)
    +
    +  if(TARGET ArrowS3::arrow_s3_static)
    +    add_executable(arrow-example-s3-gcs-static example.cc)
    +    target_compile_definitions(arrow-example-s3-gcs-static
    +                               PRIVATE ARROW_EXAMPLE_S3_STATIC_CHECK
    +                                       ARROW_EXAMPLE_GCS_STATIC_CHECK)
    +    target_link_libraries(arrow-example-s3-gcs-static PRIVATE ArrowS3::arrow_s3_static
    +                                                              ArrowGcs::arrow_gcs_static)

    Fixed, latest commit commit 3b04d01

    tadeja tadeja commented on code on Nov 13, 2026 12:26 UTC
    Code Review
    ci/scripts/cpp_test.sh:1
    @@ -147,18 +147,23 @@ if [ "${ARROW_USE_MESON:-OFF}" = "OFF" ] && \
         -S "${source_dir}/examples/minimal_build" \
         -B "${build_dir}/examples/minimal_build" \
         -DARROW_EXAMPLE_S3_STATIC_CHECK=ON \
    +    -DARROW_EXAMPLE_GCS_STATIC_CHECK=ON \

    Oh, sorry, I didn't use your change... Thank you for this!

    tadeja tadeja commented on code on Nov 13, 2026 13:34 UTC
    Code Review
    cpp/cmake_modules/ThirdpartyToolchain.cmake:1
    @@ -3860,13 +3864,8 @@ function(build_google_cloud_cpp_storage)
       # 141MB -> 79MB
       file(REMOVE_RECURSE "${google_cloud_cpp_SOURCE_DIR}/ci")
     
    -  list(PREPEND
    -       ARROW_BUNDLED_STATIC_LIBS
    -       google-cloud-cpp::storage
    -       google-cloud-cpp::rest_internal
    -       google-cloud-cpp::common)
    -  set(ARROW_BUNDLED_STATIC_LIBS
    -      ${ARROW_BUNDLED_STATIC_LIBS}
    +  set(ARROW_GCS_BUNDLED_STATIC_LIBS
    +      google-cloud-cpp::storage google-cloud-cpp::rest_internal google-cloud-cpp::common

    Tentatively created this one

  • #55591
  • raulcd raulcd approved these changes on Nov 13, 2026 15:20 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    tadeja tadeja
    Labels
    risk: low confidence: 89% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 51.6% (MEDIUM) · Higher = larger blast radius
    51.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 89% · Lower = rushed or shallow review
    89%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 5.7% · Safe to merge
    5.7%
    Repository