<hr>
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:</li>
<li><strong>TensorFlow installed from (source or binary)</strong>:</li>
<li><strong>TensorFlow version (use command below)</strong>:</li>
<li><strong>Python version</strong>:</li>
<li><strong>Bazel version (if compiling from source)</strong>:</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>:</li>
<li><strong>CUDA/cuDNN version</strong>:</li>
<li><strong>GPU model and memory</strong>:</li>
<li><strong>Exact command to reproduce</strong>:</li>
</ul>
<p dir="auto">You can collect some of this information using our environment capture script:</p>
<p dir="auto"><a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh</a></p>
<p dir="auto">You can obtain the TensorFlow version with</p>
<p dir="auto">python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">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.</p>
<p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): centos7</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li>
<li>TensorFlow installed from (source or binary): source</li>
<li>TensorFlow version: r1.12</li>
<li>Python version: python2.7.14</li>
<li>Installed using virtualenv? pip? conda?: source</li>
<li>Bazel version (if compiling from source): 0.18.0</li>
<li>GCC/Compiler version (if compiling from source): gcc4.8.5</li>
<li>CUDA/cuDNN version: cuda9.0</li>
<li>GPU model and memory: p40 20g</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong></p>
<p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong><br>
./configure<br>
bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package</p>
<p dir="auto"><strong>Any other info / logs</strong><br>
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.</p>
<p dir="auto">After bazel build:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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 &quot;/home/adamzhangchao/bin/tensorflow/third_party/repo.bzl&quot;, line 106
		_apply_patch(ctx, ctx.attr.patch_file)
	File &quot;/home/adamzhangchao/bin/tensorflow/third_party/repo.bzl&quot;, line 68, in _apply_patch
		fail(&quot;patch command is not found, ple...&quot;)
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 &quot;/home/adamzhangchao/bin/tensorflow/third_party/repo.bzl&quot;, line 106
		_apply_patch(ctx, ctx.attr.patch_file)
	File &quot;/home/adamzhangchao/bin/tensorflow/third_party/repo.bzl&quot;, line 68, in _apply_patch
		fail(&quot;patch command is not found, ple...&quot;)
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"><pre class="notranslate"><code class="notranslate">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
</code></pre></div>