New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARROW-11204: [C++] Fix build failures with bundled gRPC and Protobuf #9157
Conversation
"-Dprotobuf_MSVC_STATIC_RUNTIME=" (empty value) is a problem on this case. This is caused by ARROW-9400, 0ed34c8 .
The changes in |
@github-actions crossbow submit -g linux |
Revision: b3d1418 Submitted crossbow builds: ursa-labs/crossbow @ actions-866 |
-DCMAKE_INSTALL_PREFIX=${GRPC_PREFIX} | ||
-DCMAKE_INSTALL_LIBDIR=lib | ||
-DBUILD_SHARED_LIBS=OFF) | ||
if(RE2_VENDORED) | ||
list(APPEND GRPC_CMAKE_ARGS -Dre2_ROOT=${RE2_PREFIX} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't use <PackageName>_ROOT
with CMake 3.11 or older.
(This is not related to MSVC.)
@github-actions crossbow submit -g linux |
Revision: 218829a Submitted crossbow builds: ursa-labs/crossbow @ actions-867 |
@github-actions crossbow submit centos-*-amd64 |
Revision: 218829a Submitted crossbow builds: ursa-labs/crossbow @ actions-872
|
@github-actions crossbow submit centos-*-amd64 |
Revision: 1806d48 Submitted crossbow builds: ursa-labs/crossbow @ actions-874
|
+1
|
This is caused by ARROW-9400, 0ed34c8 . There are some problems: * "-Dprotobuf_MSVC_STATIC_RUNTIME=" (empty value) is a problem with non MSVC * Can't find RE2 with CMake 3.11 or older A failure log (no useful information): https://github.com/ursa-labs/crossbow/runs/1675885130#step:5:877 FAILED: grpc_ep-prefix/src/grpc_ep-stamp/grpc_ep-configure cd /.../grpc_ep-prefix/src/grpc_ep-build && cmake -P /.../grpc_ep-prefix/src/grpc_ep-stamp/grpc_ep-configure-RELEASE.cmake && cmake -E touch /.../grpc_ep-prefix/src/grpc_ep-stamp/grpc_ep-configure CMake Error at /.../grpc_ep-prefix/src/grpc_ep-stamp/grpc_ep-configure-RELEASE.cmake:16 (message): Command failed: 1 '/usr/bin/cmake' '-DCMAKE_C_COMPILER=/usr/bin/cc' '-DCMAKE_CXX_COMPILER=/usr/bin/c++' '-DCMAKE_AR=/usr/bin/ar' '-DCMAKE_RANLIB=/usr/bin/ranlib' '-DCMAKE_BUILD_TYPE=RELEASE' '-DCMAKE_C_FLAGS=...' '-DCMAKE_C_FLAGS_RELEASE=...' '-DCMAKE_CXX_FLAGS=...' '-DCMAKE_CXX_FLAGS_RELEASE=...' '-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=' '-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=' '-DCMAKE_PREFIX_PATH=';/.../protobuf_ep-install;;/.../cares_ep-install;;/.../absl_ep-install'' '-DgRPC_ABSL_PROVIDER=package' '-DgRPC_BUILD_CSHARP_EXT=OFF' '-DgRPC_BUILD_GRPC_CSHARP_PLUGIN=OFF' '-DgRPC_BUILD_GRPC_NODE_PLUGIN=OFF' '-DgRPC_BUILD_GRPC_OBJECTIVE_C_PLUGIN=OFF' '-DgRPC_BUILD_GRPC_PHP_PLUGIN=OFF' '-DgRPC_BUILD_GRPC_PYTHON_PLUGIN=OFF' '-DgRPC_BUILD_GRPC_RUBY_PLUGIN=OFF' '-DgRPC_BUILD_TESTS=OFF' '-DgRPC_CARES_PROVIDER=package' '-DgRPC_GFLAGS_PROVIDER=package' '-DgRPC_MSVC_STATIC_RUNTIME=' '-DgRPC_PROTOBUF_PROVIDER=package' '-DgRPC_PROTOBUF_PACKAGE_TYPE=CONFIG' '-DgRPC_RE2_PROVIDER=package' '-DgRPC_SSL_PROVIDER=package' '-DgRPC_ZLIB_PROVIDER=package' '-DgRPC_MSVC_STATIC_RUNTIME=' '-DCMAKE_INSTALL_PREFIX=/.../grpc_ep-install' '-DCMAKE_INSTALL_LIBDIR=lib' '-DBUILD_SHARED_LIBS=OFF' '-GNinja' '/.../grpc_ep-prefix/src/grpc_ep' See also /.../grpc_ep-prefix/src/grpc_ep-stamp/grpc_ep-configure-*.log Closes apache#9157 from kou/cpp-grpc-bundled Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
This is caused by ARROW-9400, 0ed34c8 .
There are some problems:
A failure log (no useful information):
https://github.com/ursa-labs/crossbow/runs/1675885130#step:5:877