最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

protocol buffers - configurable attribute "actual" in @google_protobuf3:google-protos doesn't match th

programmeradmin0浏览0评论

Facing below issue on bazel build on M1 Pro (MacOS - 13.6.5)

bazel build :all --config=mac64                                                                               
WARNING: Option 'remote_http_cache' is deprecated: Use --remote_cache instead
INFO: Invocation ID: 866ecba0-29ee-47b0-a8ea-b841ef0e13c5
WARNING: Option 'remote_http_cache' is deprecated: Use --remote_cache instead
ERROR: /private/var/tmp/_bazel_abcd/d98ffb95a40dfec96e210615b577e691/external/google_protobuf3/BUILD.bazel:36:6: configurable attribute "actual" in @google_protobuf3//:google-protos doesn't match this configuration. Would a default condition help?

Conditions checked:
 @abc_build//conditions:host_linux
 @abc_build//conditions:host_mac64
 @abc_build//conditions:target_lin64
 @abc_build//conditions:target_esx64

To see a condition's definition, run: bazel query --output=build <condition label>.

This instance of @google_protobuf3//:google-protos has configuration identifier eef4717. To inspect its configuration, run: bazel config eef4717.

For more help, see /docs/configurable-attributes#faq-select-choose-condition.

ERROR: Analysis of target '//xyzw' failed; build aborted: 
INFO: Elapsed time: 0.213s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded, 0 targets configured)
    Fetching repository @local_config_cc; starting
    Fetching repository @remote_java_tools; starting
    Fetching repository @remotejdk11_macos_aarch64; starting

How can we resolve this issue?

I am using java 11

java --version                                                                                                 
openjdk 11.0.20 2023-07-18 LTS
OpenJDK Runtime Environment (build 11.0.20+8-LTS)
OpenJDK 64-Bit Server VM (build 11.0.20+8-LTS, mixed mode)

Python version is -->

Python 2.7.18 (default, Feb  6 2025, 15:37:09) 
[GCC Apple LLVM 14.0.3 (clang-1403.0.22.14.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

I tried brew uninstall protobuf but still it did not resolve this issue.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论