Closed dfabulich closed 8 years ago
bazel version
?
It looks like your version of bazel is too old to understand HEAD's WORKSPACE file format. Can you try recompiling bazel from scratch (using ./compile.sh), then using that to build anything you're doing at HEAD?
Bazel 0.1.2 cannot understand HEAD's WORKSPACE file (I haven't tried 0.1.3, that might work).
0.1.3 should work
On Mon, Jan 11, 2016 at 10:07 PM Kristina notifications@github.com wrote:
It looks like your version of bazel is too old to understand HEAD's WORKSPACE file format. Can you try recompiling bazel from scratch (using ./compile.sh), then using that to build anything you're doing at HEAD?
Bazel 0.1.2 cannot understand HEAD's WORKSPACE file (I haven't tried 0.1.3, that might work).
— Reply to this email directly or view it on GitHub https://github.com/bazelbuild/bazel/issues/776#issuecomment-170690130.
You are correct! ./compile.sh
took care of it for me.
For the record, I was indeed on Bazel 0.1.2, the latest version available on Homebrew.
FYI I just send a PR to homebrew to update to 0.1.3 :)
On Mon, Jan 11, 2016 at 11:53 PM dfabulich notifications@github.com wrote:
For the record, I was indeed on Bazel 0.1.2, the latest version available on Homebrew.
— Reply to this email directly or view it on GitHub https://github.com/bazelbuild/bazel/issues/776#issuecomment-170720844.
I downloaded @damienmg's updated homebrew formula, ran it, and found that generate_workspace
doesn't work with that, either.
dfab: /tmp/bazel $ bazel run //src/tools/generate_workspace
INFO: Found 1 target...
INFO: From Building src/main/java/com/google/devtools/build/lib/rules/objc/libobjc.jar (81 files):
src/main/java/com/google/devtools/build/lib/rules/objc/PlMergeControlBytes.java:67: error: cannot find symbol
control.putAllVariableSubstitutionMap(bundling.variableSubstitutions());
^
symbol: method putAllVariableSubstitutionMap(Map<String,String>)
location: variable control of type Builder
Note: src/main/java/com/google/devtools/build/lib/rules/objc/IterableWrapper.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
BazelJavaBuilder threw exception: java compilation returned status ERROR
ERROR: /private/tmp/bazel/src/main/java/com/google/devtools/build/lib/rules/objc/BUILD:8:1: Java compilation in rule '//src/main/java/com/google/devtools/build/lib/rules/objc:objc' failed: java failed: error executing command external/local-jdk/bin/java -Xbootclasspath/p:external/bazel_tools/third_party/java/jdk/langtools/javac.jar -client -jar external/bazel_tools/tools/jdk/JavaBuilder_deploy.jar ... (remaining 1 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
Target //src/tools/generate_workspace:generate_workspace failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 2.897s, Critical Path: 2.82s
ERROR: Build failed. Not running target.
dfab: /tmp/bazel $ bazel version
Build label: 0.1.3-homebrew
Build target: bazel-out/local_darwin-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Mon Jan 11 23:26:02 2016 (1452554762)
Build timestamp: 1452554762
Build timestamp as int: 1452554762
dfab: /tmp/bazel $ git rev-parse HEAD
6ba5c97e9ad94b307b3383d9d18c9ef30e3f8322
bisect points to 4bd593aaad907f4266ad510fb395638f2126a4ea as the offending commit. Still works fine if I use ./compile.sh
instead of a bazel binary.
We should recommend instead to clone the same version of the repository (e.g. tag 0.1.3 if you are running with Bazel 0.1.3).
On latest master 1f1658c5bbaf540bd2080be3cbcea3df2ca9bf9b, OSX 10.11.2
I ran a git bisect which says that "07b0ba6079022d9a9643d46b28aa4d2a75334b35 is the first bad commit"