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

时间:2018-09-21 05:48:09

标签: xcode tensorflow gcc build-process bazel

最近我已根据需要在Mac中更新了命令行工具,但此后,我的bazel构建无法正常工作,您能提供建议如何解决它吗?预先感谢

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

1 个答案:

答案 0 :(得分:0)

与以下问题类似:bazel "undeclared inclusion(s)" errors after updating gcc (由bazel clean --expunge解决)