zrlk
zrlk
The macro and rule we're using is https://github.com/google/kythe/blob/master/tools/build_rules/genproto.bzl ; for Java, this is based on genproto from Bazel's build_rules. Since we started the latter has grown a `java_compile_command`--why doesn't/shouldn't this...
I ended up writing a macro instead of a custom rule (see genproto_all in https://github.com/google/kythe/blob/master/tools/build_rules/genproto.bzl). With this approach I need to remember to depend on foo_proto_cc instead of foo_proto, but...
Since you mentioned the wrapper script, I think this is a problem with our configuration; we're building with clang, not gcc, and weren't calling it through the wrapper. I'll re-open...
This is Kythe (kythe.io) ``` CLANG=`which clang-3.6` ./setup_bazel.sh bazel query -k 'somepath(//...,//third_party/java/buck-ios-support:all)' INFO: Empty results (with Bazel f87a414) ``` ``` CLANG=`which clang-3.6` ./setup_bazel.sh bazel query -k 'somepath(//...,//third_party/java/buck-ios-support:all)' ERROR: /path/to/bazel/base_workspace/examples/py/BUILD:1: Extension...
The issue shows up in Bazel 9e091ddef4dbbd97a2bff75948c474fe4127e541: From a freshly-cleaned checkout of the Kythe code: ``` CLANG=`which clang-3.6` ./setup_bazel.sh bazel build //... ``` fails, now in a different way: ```...
This works for me, but only with `-k`.
``` bazel build //... ......... ERROR: /path/to/bazel/base_workspace/examples/proto/BUILD:1: Extension file not found. Unable to load file '//tools:build_rules/genproto.bzl': file doesn't exist or isn't a file. ERROR: /path/to/bazel/base_workspace/examples/BUILD:3:1: error loading package 'examples/proto': Extension...
As of commit 53f407608ef6547bd690fa4420418aa6b6991b22 I'm able to build and test `//...` (without removing any files in base_workspace). Thanks!
The error you mentioned sounds like a symptom of https://github.com/bazelbuild/bazel/issues/652
Fixed somewhere at or before 0.11.1.