<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): Windows 10</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): binary</li>
<li>TensorFlow version: 1.13.1</li>
<li>Python version: 3.6</li>
<li>Installed using virtualenv? pip? conda?: conda</li>
<li>Bazel version (if compiling from source): NA</li>
<li>GCC/Compiler version (if compiling from source): NA</li>
<li>CUDA/cuDNN version: NA</li>
<li>GPU model and memory: using CPU</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong></p>
<p dir="auto">Originaly, when importing python module keras with tensorflow backend ar error ocurred when importing. To be sure, I simply imported tensorflow and same error was shown:</p>
<blockquote>
<p dir="auto">ImportError: DLL load failed: Specified module could not be found.</p>
<p dir="auto">Failed to load the native TensorFlow runtime.</p>
</blockquote>
<p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p>
<p dir="auto">Open python in conda prompt or using spyder console:<br>
<code class="notranslate">import tensorflow</code></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>
<blockquote>
<p dir="auto">import tensorflow<br>
Traceback (most recent call last):</p>
<p dir="auto">File "", line 1, in <br>
import tensorflow</p>
<p dir="auto">File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_<em>init</em>_.py", line 24, in <br>
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import</p>
<p dir="auto">File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python_<em>init</em>_.py", line 49, in <br>
from tensorflow.python import pywrap_tensorflow</p>
<p dir="auto">File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <br>
raise ImportError(msg)</p>
<p dir="auto">ImportError: Traceback (most recent call last):<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <br>
from tensorflow.python.pywrap_tensorflow_internal import *<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <br>
_pywrap_tensorflow_internal = swig_import_helper()<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper<br>
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br>
File "C:\ProgramData\Anaconda3\lib\imp.py", line 243, in load_module<br>
return load_dynamic(name, filename, file)<br>
File "C:\ProgramData\Anaconda3\lib\imp.py", line 343, in load_dynamic<br>
return _load(spec)<br>
ImportError: DLL load failed: No se puede encontrar el módulo especificado.</p>
<p dir="auto">Failed to load the native TensorFlow runtime.</p>
<p dir="auto">See <a href="https://www.tensorflow.org/install/errors" rel="nofollow">https://www.tensorflow.org/install/errors</a></p>
<p dir="auto">for some common reasons and solutions.  Include the entire stack trace<br>
above this error message when asking for help.</p>
</blockquote>
<p dir="auto">Hi there,</p>
<p dir="auto">I've been attempting off and on for the last 1-2 weeks to get Tensorflow to build on CentOS 6.8. I've spent a lot of time reading through old issues and piecing/hacking together suggestions from developers and other users on how to configure the build. I'm using a hand-built version of GCC (v. 4.9.3) in a non-default location with the system version of binutils (more info below).</p>
<p dir="auto">I've managed to get the tutorial_trainers_example to build and run successfully, but I'm now running into trouble when attempting to build the pip wheel (see below). It looks like there may be some missing header files.</p>
<h3 dir="auto">Relevant Threads</h3>
<p dir="auto">The most helpful threads I've found during this process have been the following:</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116236573" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/110" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/110/hovercard" href="https://github.com/tensorflow/tensorflow/issues/110">#110</a> (especially comments from <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rdipietro/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rdipietro">@rdipietro</a>)<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="125622945" data-permission-text="Title is private" data-url="https://github.com/bazelbuild/bazel/issues/760" data-hovercard-type="issue" data-hovercard-url="/bazelbuild/bazel/issues/760/hovercard" href="https://github.com/bazelbuild/bazel/issues/760">bazelbuild/bazel#760</a> (thanks <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/damienmg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/damienmg">@damienmg</a>)</p>
<p dir="auto">The only mention I can find of the specific error (granted, for a completely different platform) is in this recent Stackoverflow thread:</p>
<p dir="auto"><a href="http://stackoverflow.com/questions/39855672/tensorflow-how-to-compile-libtensorflow-cc-so-for-android" rel="nofollow">http://stackoverflow.com/questions/39855672/tensorflow-how-to-compile-libtensorflow-cc-so-for-android</a></p>
<p dir="auto">The fact that this is a recent thread makes me think that perhaps there was some sort of error that was introduced into the build config in the last few weeks/months.</p>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ lsb_release -a
LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.8 (Final)
Release:    6.8
Codename:   Final
$ uname -a
Linux vmp1250 2.6.32-642.1.1.el6.x86_64 #1 SMP Tue May 31 21:57:07 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux"><pre class="notranslate"><code class="notranslate">$ lsb_release -a
LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.8 (Final)
Release:    6.8
Codename:   Final
$ uname -a
Linux vmp1250 2.6.32-642.1.1.el6.x86_64 #1 SMP Tue May 31 21:57:07 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
</code></pre></div>
<p dir="auto">Installed version of CUDA and cuDNN:<br>
(please attach the output of <code class="notranslate">ls -l /path/to/cuda/lib/libcud*</code>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ls -lh /gpfs22/local/centos6/cuda-7.5/lib/libcud*
-rw-r--r--. 1 root root 185K Sep 17  2015 /gpfs22/local/centos6/cuda-7.5/lib/libcudadevrt.a
lrwxrwxrwx. 1 root root   16 Sep 17  2015 /gpfs22/local/centos6/cuda-7.5/lib/libcudart.so -&gt; libcudart.so.7.5
lrwxrwxrwx. 1 root root   19 Sep 17  2015 /gpfs22/local/centos6/cuda-7.5/lib/libcudart.so.7.5 -&gt; libcudart.so.7.5.18
-rwxr-xr-x. 1 root root 305K Sep 17  2015 /gpfs22/local/centos6/cuda-7.5/lib/libcudart.so.7.5.18
-rw-r--r--. 1 root root 545K Sep 17  2015 /gpfs22/local/centos6/cuda-7.5/lib/libcudart_static.a"><pre class="notranslate"><code class="notranslate">$ ls -lh /gpfs22/local/centos6/cuda-7.5/lib/libcud*
-rw-r--r--. 1 root root 185K Sep 17  2015 /gpfs22/local/centos6/cuda-7.5/lib/libcudadevrt.a
lrwxrwxrwx. 1 root root   16 Sep 17  2015 /gpfs22/local/centos6/cuda-7.5/lib/libcudart.so -&gt; libcudart.so.7.5
lrwxrwxrwx. 1 root root   19 Sep 17  2015 /gpfs22/local/centos6/cuda-7.5/lib/libcudart.so.7.5 -&gt; libcudart.so.7.5.18
-rwxr-xr-x. 1 root root 305K Sep 17  2015 /gpfs22/local/centos6/cuda-7.5/lib/libcudart.so.7.5.18
-rw-r--r--. 1 root root 545K Sep 17  2015 /gpfs22/local/centos6/cuda-7.5/lib/libcudart_static.a
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ls -lh /gpfs22/local/centos6/cudnn-7.5-v5/lib64/
total 227M
lrwxrwxrwx. 1 1000 1000  13 May 25 10:38 libcudnn.so -&gt; libcudnn.so.5
lrwxrwxrwx. 1 1000 1000  17 May 25 10:38 libcudnn.so.5 -&gt; libcudnn.so.5.0.5
-rwxrwxr-x. 1 1000 1000 58M Apr 22 19:15 libcudnn.so.5.0.5
-rw-rw-r--. 1 1000 1000 57M Apr 22 19:15 libcudnn_static.a"><pre class="notranslate"><code class="notranslate">$ ls -lh /gpfs22/local/centos6/cudnn-7.5-v5/lib64/
total 227M
lrwxrwxrwx. 1 1000 1000  13 May 25 10:38 libcudnn.so -&gt; libcudnn.so.5
lrwxrwxrwx. 1 1000 1000  17 May 25 10:38 libcudnn.so.5 -&gt; libcudnn.so.5.0.5
-rwxrwxr-x. 1 1000 1000 58M Apr 22 19:15 libcudnn.so.5.0.5
-rw-rw-r--. 1 1000 1000 57M Apr 22 19:15 libcudnn_static.a
</code></pre></div>
<p dir="auto">If installed from source, provide</p>
<p dir="auto">The commit hash (<code class="notranslate">git rev-parse HEAD</code>):</p>
<ul dir="auto">
<li>Most recent (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/df871edcff2faf643975b9863100ed41b6da9c3f/hovercard" href="https://github.com/tensorflow/tensorflow/commit/df871edcff2faf643975b9863100ed41b6da9c3f"><tt>df871ed</tt></a>)</li>
</ul>
<p dir="auto">The output of <code class="notranslate">bazel version</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ bazel version
Build label: 0.3.2- (@non-git)
Build target: bazel-out/local-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Oct 7 20:15:17 2016 (1475871317)
Build timestamp: 1475871317
Build timestamp as int: 1475871317"><pre class="notranslate"><code class="notranslate">$ bazel version
Build label: 0.3.2- (@non-git)
Build target: bazel-out/local-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Oct 7 20:15:17 2016 (1475871317)
Build timestamp: 1475871317
Build timestamp as int: 1475871317
</code></pre></div>
<h3 dir="auto">Custom Build Config for Bazel &amp; Tensorflow</h3>
<p dir="auto">For the bazel build:</p>
<ul dir="auto">
<li>Modified <code class="notranslate">tools/cpp/CROSSTOOL</code> to point to C and C++ compilers in non-default locations</li>
<li>Added an extra <code class="notranslate">linker_flag</code> line in <code class="notranslate">tools/cpp/CROSSTOOL</code></li>
<li>Added a bunch of <code class="notranslate">cxx_builtin_include_directory</code> lines to point to all the appropriate header files within GCC 4.9.3 in <code class="notranslate">tools/cpp/CROSSTOOL</code></li>
</ul>
<p dir="auto">For the Tensorflow build:</p>
<ul dir="auto">
<li>Modified <code class="notranslate">third_party/gpus/crosstool/CROSSTOOL.tpl</code> to point to C++ compiler in custom location</li>
<li>Added an extra <code class="notranslate">linker_flag</code> line to <code class="notranslate">third_party/gpus/crosstool/CROSSTOOL.tpl</code></li>
<li>Updated <code class="notranslate">third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc.tpl</code> to point to the versions of NVCC and GCC that are in non-default locations</li>
<li>Commented out the line <code class="notranslate">cmd = 'PATH=' + PREFIX_DIR + ' ' + cmd</code> in <code class="notranslate">third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc.tpl</code> (otherwise <code class="notranslate">as</code> cannot be found).</li>
</ul>
<p dir="auto">I can provide the exact lines I used if you'd like. Just let me know.</p>
<h3 dir="auto">Description of Problem</h3>
<p dir="auto">Environment setup (I realize some of this may be overkill):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ export PATH=/gpfs22/local/centos6/swig/3.0.5/x86_64/gcc49/nonet/bin:/gpfs22/local/centos6/cuda-7.5/bin:/gpfs22/local/centos6/python2/anaconda2/bin:/gpfs21/scratch/frenchwr/tensorflow/bazel-0.3.2/output:/gpfs22/local/centos6/gcc/4.9.3/x86_64/bin:/gpfs22/local/centos6/java/1.8.0/bin:/usr/local/git/latest/x86_64/gcc46/nonet/bin:/usr/local/git/latest/x86_64/gcc46/nonet/libexec/git-core:/usr/scheduler/slurm/sbin:/usr/scheduler/slurm/bin:/usr/lpp/mmfs/bin:/usr/local/bin:/usr/local/common/bin:/usr/bin:/bin:/usr/scheduler/slurm/sbin:/usr/scheduler/slurm/bin:/usr/lpp/mmfs/bin:/usr/local/bin:/usr/local/common/bin:/usr/bin:/bin:/usr/local/git/latest/x86_64/gcc46/nonet/bin:/usr/local/git/latest/x86_64/gcc46/nonet/libexec/git-core:/usr/scheduler/slurm/sbin:/usr/scheduler/slurm/bin:/usr/lpp/mmfs/bin:/usr/local/bin:/usr/local/common/bin:/usr/bin:/bin:/usr/scheduler/slurm/sbin:/usr/scheduler/slurm/bin:/usr/lpp/mmfs/bin:/usr/local/bin:/usr/local/common/bin:/usr/bin:/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/var/cfengine/bin:/var/cfengine/bin
$ export LD_LIBRARY_PATH=/gpfs22/local/centos6/cudnn-7.5-v5/lib64:/gpfs22/local/centos6/swig/3.0.5/x86_64/gcc49/nonet/share/swig/3.0.5:/gpfs22/local/centos6/cuda-7.5/lib:/gpfs22/local/centos6/cuda-7.5/lib64:/gpfs22/local/centos6/java/1.8.0/lib:/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib:/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib64:/gpfs22/local/centos6/java/1.8.0/lib/:/gpfs22/local/centos6/python2/anaconda2/lib
$ export JAVA_HOME=/gpfs22/local/centos6/java/1.8.0
$ export JAVA_ROOT=/gpfs22/local/centos6/java/1.8.0
$ export CXX=/gpfs22/local/centos6/gcc/4.9.3/x86_64/bin/g++
$ export CC=/gpfs22/local/centos6/gcc/4.9.3/x86_64/bin/gcc
$ export GCC_ROOT=/gpfs22/local/centos6/gcc/4.9.3/x86_64
$ export LDFLAGS=&quot;-L/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib -L/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib64 -L/gpfs22/local/centos6/cuda-7.5/lib64 -L/gpfs22/local/centos6/cuda-7.5/lib -L/gpfs22/local/centos6/cudnn-7.5-v5/lib64 -L/gpfs22/local/centos6/python2/anaconda2/lib&quot;
$ export CXXFLAGS=&quot;-L/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib -L/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib64 -L/gpfs22/local/centos6/cuda-7.5/lib64 -L/gpfs22/local/centos6/cuda-7.5/lib -L/gpfs22/local/centos6/cudnn-7.5-v5/lib64 -L/gpfs22/local/centos6/python2/anaconda2/lib&quot;
$ export CPLUS_INCLUDE_PATH=&quot;/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib/gcc/:/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/:/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/:/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/:/gpfs22/local/centos6/gcc/4.9.3/x86_64/include/c++/4.9.3/:/gpfs22/local/centos6/gcc/4.9.3/x86_64/include/c++/4.9.3/x86_64-unknown-linux-gnu/:/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib64/:/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib/:/gpfs22/local/centos6/cuda-7.5/include/:/gpfs22/local/centos6/cudnn-7.5-v5/include/&quot;
$ export PYTHONPATH=/gpfs22/local/centos6/python2/anaconda2/lib/python2.7:$PYTHONPATH
$ export PYTHON_ROOT=/gpfs22/local/centos6/python2/anaconda2
$ export PYTHON27_INC=$PYTHON_ROOT/include/python2.7
$ export CUDA_HOME=/gpfs22/local/centos6/cuda-7.5
$ export SWIG_ROOT=/gpfs22/local/centos6/swig/3.0.5/x86_64/gcc49/nonet
$ export NVVM_ROOT=/gpfs22/local/centos6/cuda-7.5/nvvm
$ export LIBRARY_PATH=/gpfs22/local/centos6/cudnn-7.5-v5/lib64:$LIBRARY_PATH
$ export CPATH=/gpfs22/local/centos6/cudnn-7.5-v5/include:$CPATH
$ export CUDNN_ROOT=/gpfs22/local/centos6/cudnn-7.5-v5
$ export SWIG_PATH=$(which swig)"><pre class="notranslate"><code class="notranslate">$ export PATH=/gpfs22/local/centos6/swig/3.0.5/x86_64/gcc49/nonet/bin:/gpfs22/local/centos6/cuda-7.5/bin:/gpfs22/local/centos6/python2/anaconda2/bin:/gpfs21/scratch/frenchwr/tensorflow/bazel-0.3.2/output:/gpfs22/local/centos6/gcc/4.9.3/x86_64/bin:/gpfs22/local/centos6/java/1.8.0/bin:/usr/local/git/latest/x86_64/gcc46/nonet/bin:/usr/local/git/latest/x86_64/gcc46/nonet/libexec/git-core:/usr/scheduler/slurm/sbin:/usr/scheduler/slurm/bin:/usr/lpp/mmfs/bin:/usr/local/bin:/usr/local/common/bin:/usr/bin:/bin:/usr/scheduler/slurm/sbin:/usr/scheduler/slurm/bin:/usr/lpp/mmfs/bin:/usr/local/bin:/usr/local/common/bin:/usr/bin:/bin:/usr/local/git/latest/x86_64/gcc46/nonet/bin:/usr/local/git/latest/x86_64/gcc46/nonet/libexec/git-core:/usr/scheduler/slurm/sbin:/usr/scheduler/slurm/bin:/usr/lpp/mmfs/bin:/usr/local/bin:/usr/local/common/bin:/usr/bin:/bin:/usr/scheduler/slurm/sbin:/usr/scheduler/slurm/bin:/usr/lpp/mmfs/bin:/usr/local/bin:/usr/local/common/bin:/usr/bin:/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/var/cfengine/bin:/var/cfengine/bin
$ export LD_LIBRARY_PATH=/gpfs22/local/centos6/cudnn-7.5-v5/lib64:/gpfs22/local/centos6/swig/3.0.5/x86_64/gcc49/nonet/share/swig/3.0.5:/gpfs22/local/centos6/cuda-7.5/lib:/gpfs22/local/centos6/cuda-7.5/lib64:/gpfs22/local/centos6/java/1.8.0/lib:/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib:/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib64:/gpfs22/local/centos6/java/1.8.0/lib/:/gpfs22/local/centos6/python2/anaconda2/lib
$ export JAVA_HOME=/gpfs22/local/centos6/java/1.8.0
$ export JAVA_ROOT=/gpfs22/local/centos6/java/1.8.0
$ export CXX=/gpfs22/local/centos6/gcc/4.9.3/x86_64/bin/g++
$ export CC=/gpfs22/local/centos6/gcc/4.9.3/x86_64/bin/gcc
$ export GCC_ROOT=/gpfs22/local/centos6/gcc/4.9.3/x86_64
$ export LDFLAGS="-L/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib -L/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib64 -L/gpfs22/local/centos6/cuda-7.5/lib64 -L/gpfs22/local/centos6/cuda-7.5/lib -L/gpfs22/local/centos6/cudnn-7.5-v5/lib64 -L/gpfs22/local/centos6/python2/anaconda2/lib"
$ export CXXFLAGS="-L/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib -L/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib64 -L/gpfs22/local/centos6/cuda-7.5/lib64 -L/gpfs22/local/centos6/cuda-7.5/lib -L/gpfs22/local/centos6/cudnn-7.5-v5/lib64 -L/gpfs22/local/centos6/python2/anaconda2/lib"
$ export CPLUS_INCLUDE_PATH="/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib/gcc/:/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/:/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/:/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/:/gpfs22/local/centos6/gcc/4.9.3/x86_64/include/c++/4.9.3/:/gpfs22/local/centos6/gcc/4.9.3/x86_64/include/c++/4.9.3/x86_64-unknown-linux-gnu/:/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib64/:/gpfs22/local/centos6/gcc/4.9.3/x86_64/lib/:/gpfs22/local/centos6/cuda-7.5/include/:/gpfs22/local/centos6/cudnn-7.5-v5/include/"
$ export PYTHONPATH=/gpfs22/local/centos6/python2/anaconda2/lib/python2.7:$PYTHONPATH
$ export PYTHON_ROOT=/gpfs22/local/centos6/python2/anaconda2
$ export PYTHON27_INC=$PYTHON_ROOT/include/python2.7
$ export CUDA_HOME=/gpfs22/local/centos6/cuda-7.5
$ export SWIG_ROOT=/gpfs22/local/centos6/swig/3.0.5/x86_64/gcc49/nonet
$ export NVVM_ROOT=/gpfs22/local/centos6/cuda-7.5/nvvm
$ export LIBRARY_PATH=/gpfs22/local/centos6/cudnn-7.5-v5/lib64:$LIBRARY_PATH
$ export CPATH=/gpfs22/local/centos6/cudnn-7.5-v5/include:$CPATH
$ export CUDNN_ROOT=/gpfs22/local/centos6/cudnn-7.5-v5
$ export SWIG_PATH=$(which swig)
</code></pre></div>
<p dir="auto">Tensorflow Configuration:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ $ ./configure
/scratch/frenchwr/tensorflow/tensorflow-head /scratch/frenchwr/tensorflow/tensorflow-head
Please specify the location of python. [Default is /gpfs22/local/centos6/python2/anaconda2/bin/python]: 
Do you wish to build TensorFlow with Google Cloud Platform support? [y/N] N
No Google Cloud Platform support will be enabled for TensorFlow
Do you wish to build TensorFlow with Hadoop File System support? [y/N] N
No Hadoop File System support will be enabled for TensorFlow
Found possible Python library paths:
  /gpfs22/local/centos6/python2/anaconda2/lib/python2.7/site-packages
  /gpfs22/local/centos6/python2/anaconda2/lib/python2.7
Please input the desired Python library path to use.  Default is [/gpfs22/local/centos6/python2/anaconda2/lib/python2.7/site-packages]

/gpfs22/local/centos6/python2/anaconda2/lib/python2.7/site-packages
Do you wish to build TensorFlow with GPU support? [y/N] y
GPU support will be enabled for TensorFlow
Please specify which gcc should be used by nvcc as the host compiler. [Default is /gpfs22/local/centos6/gcc/4.9.3/x86_64/bin/gcc]: 
Please specify the Cuda SDK version you want to use, e.g. 7.0. [Leave empty to use system default]: 7.5
Please specify the location where CUDA 7.5 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: /gpfs22/local/centos6/cuda-7.5
Please specify the Cudnn version you want to use. [Leave empty to use system default]: 5.0.5
Please specify the location where cuDNN 5.0.5 library is installed. Refer to README.md for more details. [Default is /gpfs22/local/centos6/cuda-7.5]: /gpfs22/local/centos6/cudnn-7.5-v5
Please specify a list of comma-separated Cuda compute capabilities you want to build with.
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus.
Please note that each additional compute capability significantly increases your build time and binary size.
[Default is: &quot;3.5,5.2&quot;]: 5.2
INFO: Starting clean (this may take a while). Consider using --expunge_async if the clean takes more than several minutes.
.................
INFO: All external dependencies fetched successfully.
Configuration finished"><pre class="notranslate"><code class="notranslate">$ $ ./configure
/scratch/frenchwr/tensorflow/tensorflow-head /scratch/frenchwr/tensorflow/tensorflow-head
Please specify the location of python. [Default is /gpfs22/local/centos6/python2/anaconda2/bin/python]: 
Do you wish to build TensorFlow with Google Cloud Platform support? [y/N] N
No Google Cloud Platform support will be enabled for TensorFlow
Do you wish to build TensorFlow with Hadoop File System support? [y/N] N
No Hadoop File System support will be enabled for TensorFlow
Found possible Python library paths:
  /gpfs22/local/centos6/python2/anaconda2/lib/python2.7/site-packages
  /gpfs22/local/centos6/python2/anaconda2/lib/python2.7
Please input the desired Python library path to use.  Default is [/gpfs22/local/centos6/python2/anaconda2/lib/python2.7/site-packages]

/gpfs22/local/centos6/python2/anaconda2/lib/python2.7/site-packages
Do you wish to build TensorFlow with GPU support? [y/N] y
GPU support will be enabled for TensorFlow
Please specify which gcc should be used by nvcc as the host compiler. [Default is /gpfs22/local/centos6/gcc/4.9.3/x86_64/bin/gcc]: 
Please specify the Cuda SDK version you want to use, e.g. 7.0. [Leave empty to use system default]: 7.5
Please specify the location where CUDA 7.5 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: /gpfs22/local/centos6/cuda-7.5
Please specify the Cudnn version you want to use. [Leave empty to use system default]: 5.0.5
Please specify the location where cuDNN 5.0.5 library is installed. Refer to README.md for more details. [Default is /gpfs22/local/centos6/cuda-7.5]: /gpfs22/local/centos6/cudnn-7.5-v5
Please specify a list of comma-separated Cuda compute capabilities you want to build with.
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus.
Please note that each additional compute capability significantly increases your build time and binary size.
[Default is: "3.5,5.2"]: 5.2
INFO: Starting clean (this may take a while). Consider using --expunge_async if the clean takes more than several minutes.
.................
INFO: All external dependencies fetched successfully.
Configuration finished
</code></pre></div>
<p dir="auto">Tutorials Example Trainer Build:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bazel build -c opt --config=cuda --verbose_failures --subcommands //tensorflow/cc:tutorials_example_trainer"><pre class="notranslate"><code class="notranslate">bazel build -c opt --config=cuda --verbose_failures --subcommands //tensorflow/cc:tutorials_example_trainer
</code></pre></div>
<p dir="auto">Tutorials Example Trainer Run:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so.7.5 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so.7.5 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so.5.0.5 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so.7.5 locally
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 0 with properties: 
name: GeForce GTX TITAN X
major: 5 minor: 2 memoryClockRate (GHz) 1.076
pciBusID 0000:02:00.0
Total memory: 12.00GiB
Free memory: 11.87GiB
I tensorflow/core/common_runtime/gpu/gpu_device.cc:972] DMA: 0 
I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] 0:   Y 
I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:0) -&gt; (device: 0, name: GeForce GTX TITAN X, pci bus id: 0000:02:00.0)
000000/000001 lambda = 1.841570 x = [0.669396 0.742906] y = [3.493999 -0.669396]
000000/000009 lambda = 1.841570 x = [0.669396 0.742906] y = [3.493999 -0.669396]
...
..."><pre class="notranslate"><code class="notranslate">I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so.7.5 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so.7.5 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so.5.0.5 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so.7.5 locally
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 0 with properties: 
name: GeForce GTX TITAN X
major: 5 minor: 2 memoryClockRate (GHz) 1.076
pciBusID 0000:02:00.0
Total memory: 12.00GiB
Free memory: 11.87GiB
I tensorflow/core/common_runtime/gpu/gpu_device.cc:972] DMA: 0 
I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] 0:   Y 
I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:0) -&gt; (device: 0, name: GeForce GTX TITAN X, pci bus id: 0000:02:00.0)
000000/000001 lambda = 1.841570 x = [0.669396 0.742906] y = [3.493999 -0.669396]
000000/000009 lambda = 1.841570 x = [0.669396 0.742906] y = [3.493999 -0.669396]
...
...
</code></pre></div>
<p dir="auto">Pip Wheel Build (extra command line options suggested by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rdipietro/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rdipietro">@rdipietro</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116236573" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/110" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/110/hovercard" href="https://github.com/tensorflow/tensorflow/issues/110">#110</a>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ bazel build -c opt --config=cuda --linkopt '-lrt' --copt=&quot;-DGPR_BACKWARDS_COMPATIBILITY_MODE&quot; --conlyopt=&quot;-std=c99&quot; //tensorflow/tools/pip_package:build_pip_package
...
...
INFO: From Compiling external/protobuf/src/google/protobuf/compiler/cpp/cpp_message.cc:
external/protobuf/src/google/protobuf/compiler/cpp/cpp_message.cc:376:8: warning: 'std::string google::protobuf::compiler::cpp::{anonymous}::MessageTypeProtoName(const google::protobuf::FieldDescriptor*)' defined but not used [-Wunused-function]
 string MessageTypeProtoName(const FieldDescriptor* field) {
        ^
ERROR: /gpfs22/home/frenchwr/.cache/bazel/_bazel_frenchwr/4ceedd0aac0f37a9bc9063198121367a/external/gif_archive/BUILD:6:1: C++ compilation of rule '@gif_archive//:gif' failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter ... (remaining 37 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
external/gif_archive/egif_lib.c: In function 'EGifOpenFileName':
external/gif_archive/egif_lib.c:62:6: error: 'S_IREAD' undeclared (first use in this function)
      S_IREAD | S_IWRITE);
      ^
external/gif_archive/egif_lib.c:62:6: note: each undeclared identifier is reported only once for each function it appears in
external/gif_archive/egif_lib.c:62:16: error: 'S_IWRITE' undeclared (first use in this function)
      S_IREAD | S_IWRITE);
                ^
external/gif_archive/egif_lib.c: In function 'EGifOpenFileHandle':
external/gif_archive/egif_lib.c:119:5: warning: implicit declaration of function 'fdopen' [-Wimplicit-function-declaration]
     f = fdopen(FileHandle, &quot;wb&quot;);    /* Make it into a stream: */
     ^
external/gif_archive/egif_lib.c:119:7: warning: assignment makes pointer from integer without a cast
     f = fdopen(FileHandle, &quot;wb&quot;);    /* Make it into a stream: */
       ^
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 403.336s, Critical Path: 394.04s"><pre class="notranslate"><code class="notranslate">$ bazel build -c opt --config=cuda --linkopt '-lrt' --copt="-DGPR_BACKWARDS_COMPATIBILITY_MODE" --conlyopt="-std=c99" //tensorflow/tools/pip_package:build_pip_package
...
...
INFO: From Compiling external/protobuf/src/google/protobuf/compiler/cpp/cpp_message.cc:
external/protobuf/src/google/protobuf/compiler/cpp/cpp_message.cc:376:8: warning: 'std::string google::protobuf::compiler::cpp::{anonymous}::MessageTypeProtoName(const google::protobuf::FieldDescriptor*)' defined but not used [-Wunused-function]
 string MessageTypeProtoName(const FieldDescriptor* field) {
        ^
ERROR: /gpfs22/home/frenchwr/.cache/bazel/_bazel_frenchwr/4ceedd0aac0f37a9bc9063198121367a/external/gif_archive/BUILD:6:1: C++ compilation of rule '@gif_archive//:gif' failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter ... (remaining 37 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
external/gif_archive/egif_lib.c: In function 'EGifOpenFileName':
external/gif_archive/egif_lib.c:62:6: error: 'S_IREAD' undeclared (first use in this function)
      S_IREAD | S_IWRITE);
      ^
external/gif_archive/egif_lib.c:62:6: note: each undeclared identifier is reported only once for each function it appears in
external/gif_archive/egif_lib.c:62:16: error: 'S_IWRITE' undeclared (first use in this function)
      S_IREAD | S_IWRITE);
                ^
external/gif_archive/egif_lib.c: In function 'EGifOpenFileHandle':
external/gif_archive/egif_lib.c:119:5: warning: implicit declaration of function 'fdopen' [-Wimplicit-function-declaration]
     f = fdopen(FileHandle, "wb");    /* Make it into a stream: */
     ^
external/gif_archive/egif_lib.c:119:7: warning: assignment makes pointer from integer without a cast
     f = fdopen(FileHandle, "wb");    /* Make it into a stream: */
       ^
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 403.336s, Critical Path: 394.04s
</code></pre></div>