Issue 1:
I want to install TensorFlow through compiling from source. After I finished the configure, I run the command bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package. But some errors occurs. Here are the info:

WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.
ERROR: Skipping '//tensorflow/tools/pip_package:build_pip_package': error loading package 'tensorflow/tools/pip_package': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last):
File "/home/cxt/tensorflow/third_party/gpus/cuda_configure.bzl", line 1166
_create_local_cuda_repository(repository_ctx)
File "/home/cxt/tensorflow/third_party/gpus/cuda_configure.bzl", line 1001, in _create_local_cuda_repository
_find_nvvm_libdevice_dir(repository_ctx, cuda_config)
File "/home/cxt/tensorflow/third_party/gpus/cuda_configure.bzl", line 724, in _find_nvvm_libdevice_dir
auto_configure_fail(("Cannot find libdevice.10.bc un...))
File "/home/cxt/tensorflow/third_party/gpus/cuda_configure.bzl", line 210, in auto_configure_fail
fail(("\n%sCuda Configuration Error:%...)))

Cuda Configuration Error: Cannot find libdevice.10.bc under /usr/local/cuda-8.0
WARNING: Target pattern parsing failed.
ERROR: error loading package 'tensorflow/tools/pip_package': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last):
File "/home/cxt/tensorflow/third_party/gpus/cuda_configure.bzl", line 1166
_create_local_cuda_repository(repository_ctx)
File "/home/cxt/tensorflow/third_party/gpus/cuda_configure.bzl", line 1001, in _create_local_cuda_repository
_find_nvvm_libdevice_dir(repository_ctx, cuda_config)
File "/home/cxt/tensorflow/third_party/gpus/cuda_configure.bzl", line 724, in _find_nvvm_libdevice_dir
auto_configure_fail(("Cannot find libdevice.10.bc un...))
File "/home/cxt/tensorflow/third_party/gpus/cuda_configure.bzl", line 210, in auto_configure_fail
fail(("\n%sCuda Configuration Error:%...)))

Cuda Configuration Error: Cannot find libdevice.10.bc under /usr/local/cuda-8.0

I tried the solution on this link. But it didn't work.

The following are the info about my PC.

System information

Have I written custom code: No

OS Platform and Distribution:Linux Ubuntu 16.04

TensorFlow installed from (source or binary):source

TensorFlow version (use command below):bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package

Python version:3.6

Bazel version:0.15.0

GCC/Compiler version:5.5.0

CUDA/cuDNN version:8.0/5.1.10

GPU model and memory:N/A

Exact command to reproduce:N/A

Describe the problem

I want to install TensorFlow on my system. But I tried plenty of ways, none of them works. It took me a lot of time. Can anybody help me out or provide me a useful way?

Thanks a lot!

Issue 2:
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 16.04 LTS (GNU/Linux 4.4.38-rt49-tegra aarch64)

TensorFlow installed from (source or binary): source

TensorFlow version (use command below): 1.7.0-rc0, r1.7, master

Python version: 2.7.12

Bazel version (if compiling from source): 0.11.1

GCC/Compiler version (if compiling from source): 5.4.0-6ubuntu1~16.04.9

CUDA/cuDNN version: 8.0/6

GPU model and memory: name: GP106 major: 6 minor: 1 totalMemory: 3.75GiB (as reported by some previous version of Tensorflow on the other part of the same Drive PX2)

Exact command to reproduce:

git checkout v1.7.0-rc0

./configure

bazel build //tensorflow:libtensorflow_cc.so

Describe the problem

Same problem for all branches listed under TensorFlow version.

Build fails immediately with

Cuda Configuration Error: Cannot find libdevice.10.bc under /usr/local/cuda-8.0

It's strange because I explicitly answered 8.0 versions and libdevice.10.bc exists only in 9.0 AFAIK.

Source code / logs

error.log

configure.log

tf_configure.txt