Skip to content
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

Build break with Bazel #1287

Closed
pcman-zhang opened this issue Nov 16, 2020 · 4 comments
Closed

Build break with Bazel #1287

pcman-zhang opened this issue Nov 16, 2020 · 4 comments

Comments

@pcman-zhang
Copy link

Describe the bug (描述bug)
Try to build brpc with bazel, but build break

To Reproduce (复现方法)
at the directory of brpc, run:
$ bazel build brpc

This error occupied:

ERROR: Traceback (most recent call last):
File "/private/var/tmp/_bazel_freeman/b850d964ac91cfb4966c867783252dee/external/com_google_protobuf/protobuf.bzl", line 130, column 29, in
"protoc": attr.label(
Error in label: label() got unexpected keyword argument 'single_file'
ERROR: Skipping 'brpc': error loading package '': in /Users/freeman/Dev/incubator-brpc/bazel/brpc.bzl: Extension file 'protobuf.bzl' has errors
WARNING: Target pattern parsing failed.
ERROR: error loading package '': in /Users/freeman/Dev/incubator-brpc/bazel/brpc.bzl: Extension file 'protobuf.bzl' has errors
INFO: Elapsed time: 0.048s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded)

Expected behavior (期望行为)
build success

Versions (各种版本)
OS: macOS catalina 10.15.7
Compiler: Apple clang version 12.0.0 (clang-1200.0.32.2) / bazel version: Build label: 3.6.0-homebrew
brpc: current master branch
protobuf: libprotoc 3.13.0

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

@chenzhangyi
Copy link
Member

bazel是什么版本?

@pcman-zhang
Copy link
Author

bazel: version 3.60

@yuqALL
Copy link

yuqALL commented Jul 15, 2021

一样的问题

@wwbmmm
Copy link
Contributor

wwbmmm commented Oct 14, 2022

master has support latest version of bazel

@wwbmmm wwbmmm closed this as completed Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants