Error on master: build aborted: no such package 'tools/jdk'

158 views
Skip to first unread message

Paul Gross

unread,
Jun 15, 2015, 12:55:34 PM6/15/15
to bazel-...@googlegroups.com
When I update bazel to master (rev 43b2ea7274fe11f0d5c9f3363110da72c37da923), I now get this error when building my projects:

% bazel build //...
.......
ERROR: Loading of target '//tools/jdk:jdk' failed; build aborted: no such package 'tools/jdk': BUILD file not found on package path.
ERROR: Loading failed; build aborted.
INFO: Elapsed time: 0.335s

In another project, I get:

 every rule of type java_binary implicitly depends upon the target '//tools/defaults:java_toolchain',  but this target could not be found.

% echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home

It seems related to this issue, but slightly different: https://github.com/google/bazel/issues/245. Or maybe I need to change something about my BUILD files now?

Thanks,
Paul

Paul Gross

unread,
Jun 15, 2015, 1:48:48 PM6/15/15
to bazel-...@googlegroups.com
dmarting helped me on IRC. The issue was my ~/.bazelrc had the wrong path in it.

Thanks,
Paul
Reply all
Reply to author
Forward
0 new messages