Conversation
9ebca2a to
18b09eb
Compare
| private: | ||
| // Overrides google::protobuf::compiler::MultiFileErrorCollector: | ||
| void AddError(const String & filename, int line, int column, const String & message) override | ||
| void RecordError(absl::string_view filename, int line, int column, absl::string_view message) override |
There was a problem hiding this comment.
Google eating its own dogfood.
|
|
||
| add_dependencies(_hdfs3 protoc) | ||
| target_compile_options(_hdfs3 PRIVATE | ||
| -include "${ClickHouse_SOURCE_DIR}/contrib/google-protobuf/src/google/protobuf/stubs/port.h" |
There was a problem hiding this comment.
So this header-includes a file, right? Not very pretty to do this via CMake. What is the reason for that? Is it because 3rd-party deps can't include headers from other 3rd party deps? Maybe you can try with target_include_directories instead?
There was a problem hiding this comment.
The issue is that orc and hdfs used to include stubs/port.h from protobuf transitively (so they imported just the protobuf-related headers), but are also relying on google::protobuf::uint8 (or similar) types. After the update the stubs/port.h header containing those types does not come transitively anymore, so I had to force-include it with compiler flags.
| target_include_directories(_orc SYSTEM BEFORE PUBLIC | ||
| ${ORC_INCLUDE_DIR} | ||
| "${ClickHouse_SOURCE_DIR}/contrib/arrow-cmake/cpp/src/orc/c++/include") | ||
| target_compile_options(_orc PRIVATE |
Cherry pick #81976 to 25.6: Bump `google-protobuf` to v31.1
* [GLUTEN-1632][CH]Daily Update Clickhouse Version (20250629) * Fix Build due to ClickHouse/ClickHouse#80931 * Fix Build due to ClickHouse/ClickHouse#81976 * Fix Build due to ClickHouse/ClickHouse#82508 * Try to Fix issue caused by ClickHouse/ClickHouse#81754 see ClickHouse/ClickHouse#82379 * Fix UT due to ClickHouse/ClickHouse#82358 --------- Co-authored-by: kyligence-git <[email protected]> Co-authored-by: Chang chen <[email protected]>
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Use
google-protobufv31.1