<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="» ./configure 
~/tmp/tensorflow ~/tmp/tensorflow
Please specify the location of python. [Default is /usr/bin/python]: /usr/bin/python3
Do you wish to build TensorFlow with Google Cloud Platform support? [y/N] 
No Google Cloud Platform support will be enabled for TensorFlow
Do you wish to build TensorFlow with Hadoop File System support? [y/N] 
No Hadoop File System support will be enabled for TensorFlow
Found possible Python library paths:
  /usr/lib/python3/dist-packages
  /usr/local/lib/python3.5/dist-packages
  .
Please input the desired Python library path to use.  Default is [/usr/lib/python3/dist-packages]
/home/wojciech/.local/lib/python3.5/site-packages
Do you wish to build TensorFlow with OpenCL support? [y/N] 
No OpenCL support will be enabled for TensorFlow
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 /usr/bin/gcc]: 
Please specify the Cuda SDK version you want to use, e.g. 7.0. [Leave empty to use system default]: 
Please specify the location where CUDA  toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: 
Please specify the Cudnn version you want to use. [Leave empty to use system default]: 
Please specify the location where cuDNN  library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: 
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;]: 6.1
.
INFO: Starting clean (this may take a while). Consider using --expunge_async if the clean takes more than several minutes.
.
ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package '': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last):
	File &quot;/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl&quot;, line 517
		_create_cuda_repository(repository_ctx)
	File &quot;/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl&quot;, line 432, in _create_cuda_repository
		_cuda_toolkit_path(repository_ctx, cuda_version)
	File &quot;/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl&quot;, line 148, in _cuda_toolkit_path
		str(repository_ctx.path(cuda_toolkit...)
	File &quot;/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl&quot;, line 148, in str
		repository_ctx.path(cuda_toolkit_path).realpath
Object of type 'path' has no field &quot;realpath&quot;."><pre class="notranslate">» ./configure 
<span class="pl-k">~</span>/tmp/tensorflow <span class="pl-k">~</span>/tmp/tensorflow
Please specify the location of python. [Default is /usr/bin/python]: /usr/bin/python3
Do you wish to build TensorFlow with Google Cloud Platform support<span class="pl-k">?</span> [y/N] 
No Google Cloud Platform support will be enabled <span class="pl-k">for</span> TensorFlow
Do you wish to build TensorFlow with Hadoop File System support<span class="pl-k">?</span> [y/N] 
No Hadoop File System support will be enabled <span class="pl-k">for</span> TensorFlow
Found possible Python library paths:
  /usr/lib/python3/dist-packages
  /usr/local/lib/python3.5/dist-packages
  <span class="pl-c1">.</span>
Please input the desired Python library path to use.  Default is [/usr/lib/python3/dist-packages]
/home/wojciech/.local/lib/python3.5/site-packages
Do you wish to build TensorFlow with OpenCL support<span class="pl-k">?</span> [y/N] 
No OpenCL support will be enabled <span class="pl-k">for</span> TensorFlow
Do you wish to build TensorFlow with GPU support<span class="pl-k">?</span> [y/N] y
GPU support will be enabled <span class="pl-k">for</span> TensorFlow
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]: 
Please specify the Cuda SDK version you want to use, e.g. 7.0. [Leave empty to use system default]: 
Please specify the location where CUDA  toolkit is installed. Refer to README.md <span class="pl-k">for</span> more details. [Default is /usr/local/cuda]: 
Please specify the Cudnn version you want to use. [Leave empty to use system default]: 
Please specify the location where cuDNN  library is installed. Refer to README.md <span class="pl-k">for</span> more details. [Default is /usr/local/cuda]: 
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 <span class="pl-k">time</span> and binary size.
[Default is: <span class="pl-s"><span class="pl-pds">"</span>3.5,5.2<span class="pl-pds">"</span></span>]: 6.1
<span class="pl-c1">.</span>
INFO: Starting clean (this may take a while). Consider using --expunge_async <span class="pl-k">if</span> the clean takes more than several minutes.
<span class="pl-c1">.</span>
ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span>: Encountered error <span class="pl-k">while</span> reading extension file <span class="pl-s"><span class="pl-pds">'</span>cuda/build_defs.bzl<span class="pl-pds">'</span></span>: no such package <span class="pl-s"><span class="pl-pds">'</span>@local_config_cuda//cuda<span class="pl-pds">'</span></span>: Traceback (most recent call last):
	File <span class="pl-s"><span class="pl-pds">"</span>/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl<span class="pl-pds">"</span></span>, line 517
		_create_cuda_repository(repository_ctx)
	File <span class="pl-s"><span class="pl-pds">"</span>/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl<span class="pl-pds">"</span></span>, line 432, <span class="pl-k">in</span> _create_cuda_repository
		_cuda_toolkit_path(repository_ctx, cuda_version)
	File <span class="pl-s"><span class="pl-pds">"</span>/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl<span class="pl-pds">"</span></span>, line 148, <span class="pl-k">in</span> _cuda_toolkit_path
		str(repository_ctx.path(cuda_toolkit...)
	File <span class="pl-s"><span class="pl-pds">"</span>/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl<span class="pl-pds">"</span></span>, line 148, <span class="pl-k">in</span> str
		repository_ctx.path(cuda_toolkit_path).realpath
Object of <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>path<span class="pl-pds">'</span></span> has no field <span class="pl-s"><span class="pl-pds">"</span>realpath<span class="pl-pds">"</span></span>.</pre></div>
<p dir="auto">git hash: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/7f3d8e1f8736f4c812e4a0a96154af3bd3750180/hovercard" href="https://github.com/tensorflow/tensorflow/commit/7f3d8e1f8736f4c812e4a0a96154af3bd3750180"><tt>7f3d8e1</tt></a></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" » bazel version                                                                                   
Build label: 0.3.1
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Jul 29 09:09:52 2016 (1469783392)
Build timestamp: 1469783392
Build timestamp as int: 1469783392"><pre class="notranslate"> » bazel version                                                                                   
Build label: 0.3.1
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Jul 29 09:09:52 2016 (1469783392)
Build timestamp: 1469783392
Build timestamp as int: 1469783392</pre></div>
<p dir="auto">python 3.5.2</p>
<p dir="auto">Works fine on the r0.11 branch</p>
<p dir="auto">I upgraded to 0.11rc1 as you have advised, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tatatodd/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tatatodd">@tatatodd</a> in issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="181810617" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/4841" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/4841/hovercard" href="https://github.com/tensorflow/tensorflow/issues/4841">#4841</a> . I did a <code class="notranslate">sudo ./configure</code>, and this was the result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ sudo ./configure
~/tensorflow ~/tensorflow
Please specify the location of python. [Default is /usr/bin/python]: /usr/bin/python3
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:
  /usr/local/lib/python3.5/dist-packages
  /usr/lib/python3/dist-packages
Please input the desired Python library path to use.  Default is [/usr/local/lib/python3.5/dist-packages]

/usr/local/lib/python3.5/dist-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 /usr/bin/gcc]: 
Please specify the Cuda SDK version you want to use, e.g. 7.0. [Leave empty to use system default]: 8.0
Please specify the location where CUDA 8.0 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: /usr/local/cuda-8.0
Please specify the Cudnn version you want to use. [Leave empty to use system default]: 
Please specify the location where cuDNN  library is installed. Refer to README.md for more details. [Default is /usr/local/cuda-8.0]: 
libcudnn.so resolves to libcudnn.5
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;]: 
INFO: Starting clean (this may take a while). Consider using --expunge_async if the clean takes more than several minutes.
.
ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package '': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last):
	File &quot;/home/darth/tensorflow/third_party/gpus/cuda_configure.bzl&quot;, line 517
		_create_cuda_repository(repository_ctx)
	File &quot;/home/darth/tensorflow/third_party/gpus/cuda_configure.bzl&quot;, line 432, in _create_cuda_repository
		_cuda_toolkit_path(repository_ctx, cuda_version)
	File &quot;/home/darth/tensorflow/third_party/gpus/cuda_configure.bzl&quot;, line 148, in _cuda_toolkit_path
		str(repository_ctx.path(cuda_toolkit...)
	File &quot;/home/darth/tensorflow/third_party/gpus/cuda_configure.bzl&quot;, line 148, in str
		repository_ctx.path(cuda_toolkit_path).realpath
Object of type 'path' has no field &quot;realpath&quot;."><pre class="notranslate"><code class="notranslate">$ sudo ./configure
~/tensorflow ~/tensorflow
Please specify the location of python. [Default is /usr/bin/python]: /usr/bin/python3
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:
  /usr/local/lib/python3.5/dist-packages
  /usr/lib/python3/dist-packages
Please input the desired Python library path to use.  Default is [/usr/local/lib/python3.5/dist-packages]

/usr/local/lib/python3.5/dist-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 /usr/bin/gcc]: 
Please specify the Cuda SDK version you want to use, e.g. 7.0. [Leave empty to use system default]: 8.0
Please specify the location where CUDA 8.0 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: /usr/local/cuda-8.0
Please specify the Cudnn version you want to use. [Leave empty to use system default]: 
Please specify the location where cuDNN  library is installed. Refer to README.md for more details. [Default is /usr/local/cuda-8.0]: 
libcudnn.so resolves to libcudnn.5
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"]: 
INFO: Starting clean (this may take a while). Consider using --expunge_async if the clean takes more than several minutes.
.
ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading 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/darth/tensorflow/third_party/gpus/cuda_configure.bzl", line 517
		_create_cuda_repository(repository_ctx)
	File "/home/darth/tensorflow/third_party/gpus/cuda_configure.bzl", line 432, in _create_cuda_repository
		_cuda_toolkit_path(repository_ctx, cuda_version)
	File "/home/darth/tensorflow/third_party/gpus/cuda_configure.bzl", line 148, in _cuda_toolkit_path
		str(repository_ctx.path(cuda_toolkit...)
	File "/home/darth/tensorflow/third_party/gpus/cuda_configure.bzl", line 148, in str
		repository_ctx.path(cuda_toolkit_path).realpath
Object of type 'path' has no field "realpath".
</code></pre></div>
<p dir="auto">Thanks in advance for your response.</p>