简体   繁体   English

Mac中更新命令行工具后,bazel构建失败

[英]bazel build failed after updated command line tool in Mac

Recently I updated command line tool in my Mac as required, but after that, my bazel build is not working, can you help advise how to fix it? 最近,我根据需要在Mac中更新了命令行工具,但此后,我的bazel构建无法正常工作,您能帮忙建议如何解决它吗? thanks in advance 提前致谢

ERROR: /private/var/tmp/_bazel_me/57d181a2c7179aa428276012ffbf756a/external/com_google_protobuf/BUILD:135:1: undeclared inclusion(s) in rule '@com_google_protobuf//:protobuf':
this rule is missing dependency declarations for the following files included by 'external/com_google_protobuf/src/google/protobuf/stubs/mathlimits.cc':
  '/Library/Developer/CommandLineTools/usr/lib/clang/10.0.0/include/stddef.h'
  '/Library/Developer/CommandLineTools/usr/lib/clang/10.0.0/include/__stddef_max_align_t.h'
  '/Library/Developer/CommandLineTools/usr/lib/clang/10.0.0/include/float.h'
  '/Library/Developer/CommandLineTools/usr/lib/clang/10.0.0/include/stdint.h'
  '/Library/Developer/CommandLineTools/usr/lib/clang/10.0.0/include/stdarg.h'
  '/Library/Developer/CommandLineTools/usr/lib/clang/10.0.0/include/limits.h'
Target //java/com/myproject/target:build-deployment failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 5.268s, Critical Path: 2.42s
FAILED: Build did NOT complete successfully

类似于以下问题: 更新gcc后,bazel“未声明包含”错误 (使用bazel clean --expunge解决)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM