2017-10-06 321 views
1

当试图从https://github.com/google/protobuf/(3.4.1版本)在OS X上建立:protoc我得到如下:缺少的依赖关系时@com_google_protobuf //:protobuf_lite

$ bazel build @com_google_protobuf//:protobuf_lite 

ERROR: <...>/external/com_google_protobuf/BUILD:93:1: undeclared inclusion(s) in rule '@com_google_protobuf//:protobuf_lite': 
this rule is missing dependency declarations for the following files included by 'external/com_google_protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc': 
    '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/8.1.0/include/stddef.h' 
    '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/8.1.0/include/__stddef_max_align_t.h' 
    '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/8.1.0/include/stdint.h' 
    '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/8.1.0/include/stdarg.h' 
    '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/8.1.0/include/limits.h'. 
``` 

但是,构建目标的时候没有外部回购,它成功。

$ cd <...>/external/com_google_protobuf/ 
$ bazel build :protobuf_lite 

列出的标题是系统标题,所以我失去了一些非常明显的东西。

任何想法?

回答