Repository navigation
GH-36598: [C++][MinGW] Fix build failure with Protobuf 23.4 - #36606
Merged
Merged
Conversation
* We need to use protobuf-config.cmake provided by Protobuf instead of FindProtobuf.cmake provided by CMake because FindProtobuf.cmake misses absl::status dependency. * Accept Protobuf 23.4. * Use PROTOBUF_USE_DLLS when we build substrait related files.
|
|
Member
Member
Author
|
Oh, we needed to use |
Member
|
@github-actions crossbow submit -g cpp |
pitrou
reviewed
Jul 11, 2023
| set(ARROW_PROTOBUF_REQUIRED_VERSION "2.6.1") | ||
| endif() | ||
| resolve_dependency(Protobuf | ||
| FORCE_ANY_NEWER_VERSION |
Member
There was a problem hiding this comment.
Can you add a comment explaning why we add FORCE_ANY_NEWER_VERSION?
|
Revision: f9df3bb Submitted crossbow builds: ursacomputing/crossbow @ actions-e63c8556cf |
pitrou
approved these changes
Jul 12, 2023
raulcd
pushed a commit
that referenced
this pull request
Jul 13, 2023
### Rationale for this change There are 2 problems: * `FindProtobuf.cmake` provided by CMake is incomplete with Protobuf 23.4. * Misses `-DPROTOBUF_USE_DLLS` for building Substrait related files. ### What changes are included in this PR? * We need to use `protobuf-config.cmake` provided by Protobuf instead of `FindProtobuf.cmake` provided by CMake because `FindProtobuf.cmake` misses `absl::status` dependency. * Accept Protobuf 23.4. * Use `PROTOBUF_USE_DLLS` when we build Substrait related files. * Use `Boost_INCLUDE_DIRS` instead of `Boost_INCLUDE_DIR` because `Boost_INCLUDE_DIR` isn't defined in `BoostConfig.cmake`. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: #36598 Authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Antoine Pitrou <[email protected]>
|
After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit f18d8b3. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about possible false positives for unstable benchmarks that are known to sometimes produce them. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale for this change
There are 2 problems:
FindProtobuf.cmakeprovided by CMake is incomplete with Protobuf 23.4.-DPROTOBUF_USE_DLLSfor building Substrait related files.What changes are included in this PR?
protobuf-config.cmakeprovided by Protobuf instead ofFindProtobuf.cmakeprovided by CMake becauseFindProtobuf.cmakemissesabsl::statusdependency.PROTOBUF_USE_DLLSwhen we build Substrait related files.Boost_INCLUDE_DIRSinstead ofBoost_INCLUDE_DIRbecauseBoost_INCLUDE_DIRisn't defined inBoostConfig.cmake.Are these changes tested?
Yes.
Are there any user-facing changes?
Yes.