apache / brpc

brpc is an Industrial-grade RPC framework using C++ Language, which is often used in high performance system such as Search, Storage, Machine learning, Advertisement, Recommendation etc. "brpc" means "better RPC".
https://brpc.apache.org
Apache License 2.0
16.56k stars 3.98k forks source link

bazel ci gcc 编译失败 #2822

Closed wasphin closed 3 days ago

wasphin commented 5 days ago

Describe the bug (描述bug)

当前 ci 编译报错, https://github.com/apache/brpc/actions/runs/11756557576/job/32872650818

日志中发现,bazel 未使用声明的 protobuf 版本

WARNING: For repository 'com_google_protobuf', the root module requires module version protobuf@3.19.6, but got protobuf@27.0 in the resolved dependency graph.

::google::protobuf::DynamicCastToGenerated 在 protobuf 27 版本改动,引入了不兼容 gcc 13 以下版本的问题,在 27.3 中修复。

需确定 bazel 是如何解析为 27 版本的

To Reproduce (复现方法)

Expected behavior (期望行为)

Versions (各种版本) OS: Compiler: brpc: protobuf:

Additional context/screenshots (更多上下文/截图)