Skip to content

[CI][C++] ARM64 macOS GLib & Ruby job fails on main to build Google Cloud CPP failing to initialize X509_NAME #51634

Closed

Description

@raulcd

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

The ARM64 macOS GLib & Ruby is failing on main with:

 [161/662] Building CXX object _deps/google_cloud_cpp-build/google/cloud/CMakeFiles/google_cloud_cpp_rest_internal.dir/internal/openssl/parse_service_account_p12_file.cc.o
FAILED: [code=1] _deps/google_cloud_cpp-build/google/cloud/CMakeFiles/google_cloud_cpp_rest_internal.dir/internal/openssl/parse_service_account_p12_file.cc.o 
/opt/homebrew/bin/ccache /usr/bin/c++ -DARROW_HAVE_NEON -DARROW_WITH_TIMING_TESTS -DGOOGLE_CLOUD_CPP_HAVE_OPENSSL -isystem /Users/runner/work/arrow/arrow/build/cpp/_deps/google_cloud_cpp-src -isystem /opt/homebrew/include -isystem /Users/runner/work/arrow/arrow/build/cpp/_deps/google_cloud_cpp-build -isystem /Users/runner/work/arrow/arrow/build/cpp/_deps/opentelemetry_cpp-src/api/include -isystem /opt/homebrew/opt/openssl@4/include -isystem /Users/runner/work/arrow/arrow/build/cpp/_deps/nlohmann_json-src/include -fno-aligned-new  -Qunused-arguments -fcolor-diagnostics  -Wall -Wextra -Wdocumentation -DARROW_WARN_DOCUMENTATION -Wshorten-64-to-32 -Wno-missing-braces -Wno-unused-parameter -Wno-constant-logical-operand -Wno-return-stack-address -Wdate-time -Wno-unknown-warning-option -Wno-pass-failed -march=armv8-a  -g -Werror -O0 -ggdb -g1 -Wno-error -std=c++20 -arch arm64 -fPIC -Wall -Wextra -Wconversion -Wno-sign-conversion -MD -MT _deps/google_cloud_cpp-build/google/cloud/CMakeFiles/google_cloud_cpp_rest_internal.dir/internal/openssl/parse_service_account_p12_file.cc.o -MF _deps/google_cloud_cpp-build/google/cloud/CMakeFiles/google_cloud_cpp_rest_internal.dir/internal/openssl/parse_service_account_p12_file.cc.o.d -o _deps/google_cloud_cpp-build/google/cloud/CMakeFiles/google_cloud_cpp_rest_internal.dir/internal/openssl/parse_service_account_p12_file.cc.o -c /Users/runner/work/arrow/arrow/build/cpp/_deps/google_cloud_cpp-src/google/cloud/internal/openssl/parse_service_account_p12_file.cc
/Users/runner/work/arrow/arrow/build/cpp/_deps/google_cloud_cpp-src/google/cloud/internal/openssl/parse_service_account_p12_file.cc:88:14: error: cannot initialize a variable of type 'X509_NAME *' (aka 'X509_name_st *') with an rvalue of type 'const X509_NAME *' (aka 'const X509_name_st *')
   88 |   X509_NAME* name = X509_get_subject_name(cert.get());
      |              ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Component(s)

Continuous Integration, C++

Activity

  1. added a commit that references this issue on Sep 29, 2026
  2. hiroyuki-sato commented on Sep 29, 2026

    @hiroyuki-sato
    Collaborator

    It looks like google-cloud-cpp build with OpenSSL 4.x

    I'll try to fix this.

    -- Found OpenSSL: /opt/homebrew/opt/openssl@4/lib/libcrypto.dylib (found suitable version "4.0.2", minimum required is "1.0.2")
    -- Providing CMake module for FindOpenSSLAlt as part of Arrow CMake package
    -- Found OpenSSL Crypto Library: /opt/homebrew/opt/openssl@4/lib/libcrypto.dylib
    -- Building with OpenSSL (Version: 4.0.2) support
    

    https://github.com/apache/arrow/actions/runs/36528087511/job/109275436666#step:8:1964

    This contains -isystem /opt/homebrew/opt/openssl@4/include

    /opt/homebrew/bin/ccache /usr/bin/c++ -DARROW_HAVE_NEON -DARROW_WITH_TIMING_TESTS -DGOOGLE_CLOUD_CPP_HAVE_OPENSSL -isystem /Users/runner/work/arrow/arrow/build/cpp/_deps/google_cloud_cpp-src -isystem /opt/homebrew/include -isystem /Users/runner/work/arrow/arrow/build/cpp/_deps/google_cloud_cpp-build -isystem /Users/runner/work/arrow/arrow/build/cpp/_deps/opentelemetry_cpp-src/api/include -isystem /opt/homebrew/opt/openssl@4/include -isystem /Users/runner/work/arrow/arrow/build/cpp/_deps/nlohmann_json-src/include -fno-aligned-new  -Qunused-arguments -fcolor-diagnostics  -Wall -Wextra -Wdocumentation -DARROW_WARN_DOCUMENTATION -Wshorten-64-to-32 -Wno-missing-braces -Wno-unused-parameter -Wno-constant-logical-operand -Wno-return-stack-address -Wdate-time -Wno-unknown-warning-option -Wno-pass-failed -march=armv8-a  -g -Werror -O0 -ggdb -g1 -Wno-error -std=c++20 -arch arm64 -fPIC -Wall -Wextra -Wconversion -Wno-sign-conversion -MD -MT _deps/google_cloud_cpp-build/google/cloud/CMakeFiles/google_cloud_cpp_rest_internal.dir/internal/openssl/parse_service_account_p12_file.cc.o -MF _deps/google_cloud_cpp-build/google/cloud/CMakeFiles/google_cloud_cpp_rest_internal.dir/internal/openssl/parse_service_account_p12_file.cc.o.d -o _deps/google_cloud_cpp-build/google/cloud/CMakeFiles/google_cloud_cpp_rest_internal.dir/internal/openssl/parse_service_account_p12_file.cc.o -c /Users/runner/work/arrow/arrow/build/cpp/_deps/google_cloud_cpp-src/google/cloud/internal/openssl/parse_service_account_p12_file.cc
    
  3. added a commit that references this issue on Sep 30, 2026
  4. hiroyuki-sato commented on Sep 30, 2026

    @hiroyuki-sato
    Collaborator
  5. added a commit that references this issue on Sep 30, 2026
  6. changed the title [-][CI][C++] ARM64 macOS GLib & Ruby job fails on main to build Google Cloud CPP failing to initialize X509_NAME[/-] [+][CI][C++] ARM64 macOS GLib & Ruby job fails on main to build Google Cloud CPP failing to initialize X509_NAME[/+] on Sep 30, 2026
  7. added this to the 26.0.0 milestone on Sep 30, 2026
  8. kou commented on Sep 30, 2026

    @kou
    Member

    Issue resolved by pull request 51635
    #51635

  9. hiroyuki-sato commented on Oct 1, 2026

    @hiroyuki-sato
    Collaborator

    JFYI, the reported issue has been resolved:

    googleapis/google-cloud-cpp#16516

    The next release (google-cloud-cpp 3.11.0?) may resolve this issue.

    However, we are still using google-cloud-cpp 3.2.0, so we can't remove the #51635 fix until we bump the bundled google-cloud-cpp version to 3.11.0 or later.

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