Issue 1:
System information

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

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):

TensorFlow installed from (source or binary):

TensorFlow version (use command below):

Python version:

Bazel version (if compiling from source):

GCC/Compiler version (if compiling from source):

CUDA/cuDNN version:

GPU model and memory:

Exact command to reproduce:

You can collect some of this information using our environment capture script:

https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh

You can obtain the TensorFlow version with

python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"

Describe the problem

Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.

Source code / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.

Issue 2:
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): centos7

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:

TensorFlow installed from (source or binary): source

TensorFlow version: r1.12

Python version: python2.7.14

Installed using virtualenv? pip? conda?: source

Bazel version (if compiling from source): 0.18.0

GCC/Compiler version (if compiling from source): gcc4.8.5

CUDA/cuDNN version: cuda9.0

GPU model and memory: p40 20g

Describe the problem

Provide the exact sequence of commands / steps that you executed before running into the problem

./configure

bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package

Any other info / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

After bazel build:

WARNING: Duplicate rc file: /home/adamzhangchao/bin/tensorflow/tools/bazel.rc is read multiple times, most recently imported from /home/adamzhangchao/bin/tensorflow/.bazelrc
WARNING: Processed legacy workspace file /home/adamzhangchao/bin/tensorflow/tools/bazel.rc. This file will not be processed in the next release of Bazel. Please read https://github.com/bazelbuild/bazel/issues/6319 for further information, including how to upgrade.
Starting local Bazel server and connecting to it...
WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.
DEBUG: /home/adamzhangchao/.cache/bazel/_bazel_adamzhangchao/6492ced5c6ed3f5961e75357254e4c4a/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:
Auto-Configuration Warning: 'TMP' environment variable is not set, using 'C:\Windows\Temp' as default
ERROR: /home/adamzhangchao/bin/tensorflow/tensorflow/contrib/kafka/BUILD:36:1: no such package '@kafka//': Traceback (most recent call last):
File "/home/adamzhangchao/bin/tensorflow/third_party/repo.bzl", line 106
_apply_patch(ctx, ctx.attr.patch_file)
File "/home/adamzhangchao/bin/tensorflow/third_party/repo.bzl", line 68, in _apply_patch
fail("patch command is not found, ple...")
patch command is not found, please install it and referenced by '//tensorflow/contrib/kafka:dataset_kernels'
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: no such package '@kafka//': Traceback (most recent call last):
File "/home/adamzhangchao/bin/tensorflow/third_party/repo.bzl", line 106
_apply_patch(ctx, ctx.attr.patch_file)
File "/home/adamzhangchao/bin/tensorflow/third_party/repo.bzl", line 68, in _apply_patch
fail("patch command is not found, ple...")
patch command is not found, please install it
INFO: Elapsed time: 7.860s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (251 packages loaded)
currently loading: tensorflow/core/kernels