<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): CentOS 7.4</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: NA</li>
<li>TensorFlow installed from (source or binary): source</li>
<li>TensorFlow version: v1.13.1</li>
<li>Python version: 3.6</li>
<li>Installed using virtualenv? pip? conda?: NA</li>
<li>Bazel version (if compiling from source): 0.25 NA</li>
<li>GCC/Compiler version (if compiling from source): gcc/4.8.5</li>
<li>CUDA/cuDNN version: 10.0.130, 7.4.2.24</li>
<li>GPU model and memory: GTX 1060 6Gb</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong></p>
<p dir="auto">CMake build doesnt complete</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_scope.cc.o
[ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_op.cc.o
[ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_show_multi.cc.o
[ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_show.cc.o
[ 18%] Building CXX object CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/blas.cc.o
[ 18%] Building CXX object CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/device_description.cc.o
[ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_stats.cc.o
[ 18%] Building CXX object CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dnn.cc.o
[ 18%] Linking CXX executable proto_text
In file included from /home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dnn.cc:16:0:
/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dnn.h:34:47: fatal error: tensorflow/stream_executor/dnn.pb.h: No such file or directory
 #include &quot;tensorflow/stream_executor/dnn.pb.h&quot;
                                               ^
compilation terminated.
[ 18%] Built target proto_text
[ 18%] Building CXX object CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dso_loader.cc.o
make[2]: *** [CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dnn.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_tensor.cc.o
[ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_timeline.cc.o
make[1]: *** [CMakeFiles/tf_stream_executor.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_utils.cc.o
[ 19%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/tfprof_options.cc.o
[ 19%] Built target tf_core_profiler
make: *** [all] Error 2"><pre class="notranslate"><code class="notranslate">[ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_scope.cc.o
[ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_op.cc.o
[ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_show_multi.cc.o
[ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_show.cc.o
[ 18%] Building CXX object CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/blas.cc.o
[ 18%] Building CXX object CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/device_description.cc.o
[ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_stats.cc.o
[ 18%] Building CXX object CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dnn.cc.o
[ 18%] Linking CXX executable proto_text
In file included from /home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dnn.cc:16:0:
/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dnn.h:34:47: fatal error: tensorflow/stream_executor/dnn.pb.h: No such file or directory
 #include "tensorflow/stream_executor/dnn.pb.h"
                                               ^
compilation terminated.
[ 18%] Built target proto_text
[ 18%] Building CXX object CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dso_loader.cc.o
make[2]: *** [CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dnn.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_tensor.cc.o
[ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_timeline.cc.o
make[1]: *** [CMakeFiles/tf_stream_executor.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_utils.cc.o
[ 19%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/tfprof_options.cc.o
[ 19%] Built target tf_core_profiler
make: *** [all] Error 2
</code></pre></div>
<p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p>
<p dir="auto">git checkout <a href="https://github.com/tensorflow/tensorflow.git">https://github.com/tensorflow/tensorflow.git</a><br>
cd tensorflow/tensorflow/contrib/cmake<br>
mkdir build &amp;&amp; cd build<br>
CUDA_HOME=/usr/local/cuda-10.0 cmake3 .. -DCMAKE_PREFIX_PATH=/usr/local/cuda-10.0:/usr/local/cudnn-7.4.2.24/cuda -DCMAKE_INSTALL_PREFIX=/home/samh/opt/tensorflow-v1.13.1-static-gpu -Dtensorflow_BUILD_PYTHON_BINDING=off -Dtensorflow_ENABLE_GPU=on -Dtensorflow_ENABLE_GRPC_SUPPORT=on -Dtensorflow_ENABLE_POSITION_INDEPENDENT_CODE=on -Dtensorflow_ENABLE_SNAPPY_SUPPORT=on -Dtensorflow_OPTIMIZE_FOR_NATIVE_ARCH=on -Dtensorflow_PATH_CUDA_LIB=/usr/local/cuda-10.0/lib -Dtensorflow_PATH_CUDNN_LIB=/usr/local/cudnn-7.4.2.24/cuda/lib  -Dtensorflow_CUDNN_INCLUDE=/usr/local/cudnn-7.4.2.24/cuda/include -Dtensorflow_BUILD_SHARED_LIB=on -Dtensorflow_NCCL_INCLUDE=/usr/local/nccl-2.4.7/include -Dtensorflow_PATH_NCCL_LIB=/usr/local/nccl-2.4.7/lib -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-10.0 -DCUDA_cupti_LIBRARY=/usr/local/cuda-10.0/extras/CUPTI/lib -DOPENSSL_NO_ASM=1<br>
make -j12</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">I need a static build with GPU support, any process to do this would be considered an alternative.</p>
<p dir="auto">Sam</p>
<p dir="auto">See</p>
<p dir="auto"><a href="https://stackoverflow.com/questions/52683649/libtensorflow-cc-so-initialised-a-second-time-causes-segfault" rel="nofollow">https://stackoverflow.com/questions/52683649/libtensorflow-cc-so-initialised-a-second-time-causes-segfault</a></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">Please go to Stack Overflow for help and support:</p>
<p dir="auto"><a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">https://stackoverflow.com/questions/tagged/tensorflow</a></p>
<p dir="auto">If you open a GitHub issue, here is our policy:</p>
<ol dir="auto">
<li>It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).</li>
<li>The form below must be filled out.</li>
<li>It shouldn't be a TensorBoard issue. Those go <a href="https://github.com/tensorflow/tensorboard/issues">here</a>.</li>
</ol>
<p dir="auto"><strong>Here's why we have that policy</strong>: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.</p>
<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>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device</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>