简体   繁体   中英

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? 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解决)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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