Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation Issue: crosses boundary of subpackage #9

Closed
joerg84 opened this issue May 27, 2019 · 3 comments
Closed

Compilation Issue: crosses boundary of subpackage #9

joerg84 opened this issue May 27, 2019 · 3 comments

Comments

@joerg84
Copy link

joerg84 commented May 27, 2019

There seems to be an issue with the TensorFlow dependency which prevents me from compiling ml-metadata. It seems to be similar to kubeflow/pipelines#1288 which hopefully fixed with the next TF release.
Is there a way I can avoid that issue in the meantime?

$ bazel run -c opt --define grpc_no_ares=true ml_metadata:build_pip_package
Starting local Bazel server and connecting to it...
INFO: An error occurred during the fetch of repository 'io_bazel_rules_closure'
INFO: Call stack for the definition of repository 'io_bazel_rules_closure':
 - /Users/jarango/ml-metadata/WORKSPACE:25:1
ERROR: error loading package '': in /Users/jarango/ml-metadata/ml_metadata/workspace.bzl: in /private/var/tmp/_bazel_jarango/3250bda47e0c37e69ea58b486f066546/external/org_tensorflow/tensorflow/workspace.bzl: Label '@org_tensorflow//third_party:nccl/nccl_configure.bzl' crosses boundary of subpackage '@org_tensorflow//third_party/nccl' (perhaps you meant to put the colon here: '@org_tensorflow//third_party/nccl:nccl_configure.bzl'?)
ERROR: error loading package '': in /Users/jarango/ml-metadata/ml_metadata/workspace.bzl: in /private/var/tmp/_bazel_jarango/3250bda47e0c37e69ea58b486f066546/external/org_tensorflow/tensorflow/workspace.bzl: Label '@org_tensorflow//third_party:nccl/nccl_configure.bzl' crosses boundary of subpackage '@org_tensorflow//third_party/nccl' (perhaps you meant to put the colon here: '@org_tensorflow//third_party/nccl:nccl_configure.bzl'?)
INFO: Elapsed time: 19.671s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
$ bazel version
Build label: 0.25.2
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri May 10 20:50:40 2019 (1557521440)
Build timestamp: 1557521440
Build timestamp as int: 1557521440
$ clang --version
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin```
@joerg84 joerg84 changed the title Label '@org_tensorflow//third_party:nccl/nccl_configure.bzl' crosses boundary of subpackage Compilation Issue: crosses boundary of subpackage May 27, 2019
@hughmiao
Copy link
Contributor

It is a bazel 0.25 issue, you can downgrade it to 0.18~0.24.1 which works well on mac.

If bazel 0.25 is preferred, you can change the WORKSPACE to use tensorflow 0.14.0-rc0 which contains the fixes:
tensorflow/tensorflow@494d2cc
tensorflow/tensorflow@2243bd6

@hughmiao
Copy link
Contributor

hughmiao commented Jun 6, 2019

This issue should be fixed in af17778. Close it for now. Please reopen if needed.

@hughmiao hughmiao closed this as completed Jun 6, 2019
@joerg84
Copy link
Author

joerg84 commented Jun 7, 2019

Confirmed, thanks! @hughmiao

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants