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

Missing clean_dep call in tf_custom_op_library_additional_deps #25762

Closed
Alfus opened this issue Feb 14, 2019 · 4 comments
Closed

Missing clean_dep call in tf_custom_op_library_additional_deps #25762

Alfus opened this issue Feb 14, 2019 · 4 comments
Assignees
Labels
stat:awaiting tensorflower Status - Awaiting response from tensorflower subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues type:build/install Build and install issues

Comments

@Alfus
Copy link

Alfus commented Feb 14, 2019

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 16.04
  • TensorFlow installed from (source or binary): source
  • TensorFlow version: 1.13.0-rc0
  • Python version: 3.5
  • Bazel version (if compiling from source): 0.19.2
  • GCC/Compiler version (if compiling from source): 5.4.0
  • CUDA/cuDNN version: 10

Describe the problem

I believe the 'if_windows' part of

] + if_windows(["//tensorflow/python:pywrap_tensorflow_import_lib"])

is missing a call to clean_deps() and should be:

] + if_windows([clean_dep("//tensorflow/python:pywrap_tensorflow_import_lib")])

Note that I am not actually using windows, and my custom op builds and works fine. However, when I call:

bazel query "deps(//learning/tensorflow_ops:custom_op_tf.so)"

I get the error

ERROR: learning/tensorflow_ops/BUILD:9:1: no such package 'tensorflow/python': BUILD file not found on package path and referenced by '//learning/tensorflow_ops:custom_op_tf.so_check_deps'
ERROR: Evaluation of query "deps(//learning/tensorflow_ops:custom_op_tf.so)" failed: errors were encountered while computing transitive closure
@jvishnuvardhan jvishnuvardhan self-assigned this Feb 19, 2019
@jvishnuvardhan jvishnuvardhan added type:build/install Build and install issues subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues labels Mar 1, 2019
@jvishnuvardhan
Copy link
Contributor

@Alfus Sorry for the delay. Could you check whether this issue is persisting with latest version of TF? Thanks!

@jvishnuvardhan jvishnuvardhan added the stat:awaiting response Status - Awaiting response from author label Mar 1, 2019
@Alfus
Copy link
Author

Alfus commented Mar 1, 2019

The issue still remains at the current master. Note that this problem will only show up when including the tf source as an external repo (this is the case that clean_dep is designed to fix)

@jvishnuvardhan jvishnuvardhan added stat:awaiting tensorflower Status - Awaiting response from tensorflower and removed stat:awaiting response Status - Awaiting response from author labels Mar 1, 2019
@gunan gunan assigned yifeif and unassigned gunan Nov 25, 2019
@gunan
Copy link
Contributor

gunan commented Nov 25, 2019

I completely missed this issue.
@yifeif you were working with custom ops on windows.
Could you patch the suggested fix here?

@tensorflow-bot
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:awaiting tensorflower Status - Awaiting response from tensorflower subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

4 participants