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

Bazel Build Tensorflow error #25022

Closed
ajit2678 opened this issue Jan 18, 2019 · 9 comments
Closed

Bazel Build Tensorflow error #25022

ajit2678 opened this issue Jan 18, 2019 · 9 comments
Assignees
Labels
subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues type:build/install Build and install issues

Comments

@ajit2678
Copy link

root@gpu-B85M-D3H:/home/gpu/Downloads/tensorflow# bazel build --config=opt --config=cuda --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" //tensorflow/tools/pip_package:build_pip_package
WARNING: Processed legacy workspace file /home/gpu/Downloads/tensorflow/tools/bazel.rc. This file will not be processed in the next release of Bazel. Please read bazelbuild/bazel#6319 for further information, including how to upgrade.
Starting local Bazel server and connecting to it...
ERROR: /home/gpu/Downloads/tensorflow/tensorflow/tools/pip_package/BUILD:34:1: Illegal ambiguous match on configurable attribute "deps" in //tensorflow/tools/pip_package:included_headers_gather:
@local_config_cuda//cuda:using_nvcc
@local_config_cuda//cuda:using_clang
Multiple matches are not allowed unless one is unambiguously more specialized.
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted:

/home/gpu/Downloads/tensorflow/tensorflow/tools/pip_package/BUILD:34:1: Illegal ambiguous match on configurable attribute "deps" in //tensorflow/tools/pip_package:included_headers_gather:
@local_config_cuda//cuda:using_nvcc
@local_config_cuda//cuda:using_clang
Multiple matches are not allowed unless one is unambiguously more specialized.
INFO: Elapsed time: 4.158s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (198 packages loaded)
currently loading: tensorflow/core/kernels ... (2 packages)

kindly help me to get sloved

@ajit2678 ajit2678 changed the title Bazel Build Tensorflow Bazel Build Tensorflow error Jan 18, 2019
@jvishnuvardhan jvishnuvardhan self-assigned this Jan 18, 2019
@jvishnuvardhan jvishnuvardhan added the type:build/install Build and install issues label Jan 18, 2019
@jvishnuvardhan
Copy link
Contributor

@ajit2678 Thank you for your post. We noticed you have not filled out the fields in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Along with the template, please provide as many details as possible to find the root cause of the issue. Thanks!

@jvishnuvardhan jvishnuvardhan added the stat:awaiting response Status - Awaiting response from author label Jan 18, 2019
@ajit2678
Copy link
Author

ERROR: /root/.cache/bazel/_bazel_root/750c4c3f7edf43cdaa78f904ca850347/external/local_config_cuda/cuda/BUILD:1249:1: declared output 'external/local_config_cuda/cuda/cuda/lib/libcudnn.so.7' is a dangling symbolic link
ERROR: /root/.cache/bazel/_bazel_root/750c4c3f7edf43cdaa78f904ca850347/external/local_config_cuda/cuda/BUILD:1249:1: not all outputs were created or valid
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 13.777s, Critical Path: 9.38s
INFO: 3 processes: 3 local.
FAILED: Build did NOT complete successfully

Now This error i am getting

• CUDA 10.0
• CUDNN 7.3
• NCCL 2.3

@tensorflowbutler tensorflowbutler removed the stat:awaiting response Status - Awaiting response from author label Jan 21, 2019
@jvishnuvardhan
Copy link
Contributor

@ajit2678 Could you please fill the template as mentioned in my earlier response. Details in the template will help us finding the root-cause and solving the issue. Waiting for your system information template. Thanks!

@jvishnuvardhan jvishnuvardhan added the stat:awaiting response Status - Awaiting response from author label Jan 22, 2019
@ajit2678
Copy link
Author

System information

  • OS Platform and Distribution (Linux Ubuntu 16.04):- Ubuntu 16.04
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:-NO
  • TensorFlow installed from (source or binary):- from Git hub source
  • TensorFlow version:-1.8
  • Python version:-3.5
  • Installed using virtualenv? pip? conda?:- conda
  • Bazel version (if compiling from source): - 1.8
  • GCC/Compiler version (if compiling from source):
  • CUDA/cuDNN version: -10.0/7.3 & nccl 2.3
  • GPU model and memory: Geforce GT 610

@tensorflowbutler tensorflowbutler removed the stat:awaiting response Status - Awaiting response from author label Jan 23, 2019
@jvishnuvardhan
Copy link
Contributor

@ajit2678 Could you follow the instructions here and let us know how it works. I recently used those steps and successfully installed tensorflow-gpu. Thanks!

@jvishnuvardhan jvishnuvardhan added the stat:awaiting response Status - Awaiting response from author label Jan 28, 2019
@ajit2678
Copy link
Author

I have solved the Problem

@jvishnuvardhan
Copy link
Contributor

@ajit2678 Thanks! Have a nice day

@jvishnuvardhan jvishnuvardhan removed the stat:awaiting response Status - Awaiting response from author label Feb 10, 2019
@MoonBlvd
Copy link

I have similar issue when build graph transform. How did you solve yours?

@jvishnuvardhan jvishnuvardhan added the subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues label Mar 1, 2019
@ParmpalSinghGill
Copy link

set clang as cuda compiler to No
Do you want to use clang as CUDA compiler? [y/N]: N
in ./configure resolve for me

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

No branches or pull requests

5 participants