Skip to content

bazel ci gcc 编译失败 #2822

Description

@wasphin

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 (更多上下文/截图)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions