<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: N/A</li>
<li>TensorFlow installed from (source or binary): source, both nightly and 1.12 tried</li>
<li>TensorFlow version: 1.12 and nightly</li>
<li>Python version: 3.6</li>
<li>Installed using virtualenv? pip? conda?: conda environment</li>
<li>Bazel version (if compiling from source): 0.19.1</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version: 9.0 and 7.4</li>
<li>GPU model and memory: Geforce 770 4gb</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong><br>
I'm trying to compile from source and I keep running into the same problem regardless of what release i try to build.</p>
<p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong><br>
I followed the guide <a href="https://www.tensorflow.org/install/source_windows" rel="nofollow">https://www.tensorflow.org/install/source_windows</a> promptly. Below is what i get when i try to make the package builder by running 'bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package'</p>
<p dir="auto"><strong>Any other info / logs</strong></p>
<p dir="auto">(venv) B:\tensorflow&gt;python ./configure.py<br>
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:<br>
b:\tensorflow/tools/bazel.rc<br>
nul<br>
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".<br>
You have bazel 0.19.1 installed.<br>
Please specify the location of python. [Default is B:\Program Files\Anaconda\envs\venv\python.exe]:</p>
<p dir="auto">Found possible Python library paths:<br>
B:\Program Files\Anaconda\envs\venv\lib\site-packages<br>
Please input the desired Python library path to use.  Default is [B:\Program Files\Anaconda\envs\venv\lib\site-packages]</p>
<p dir="auto">Do you wish to build TensorFlow with XLA JIT support? [y/N]:<br>
No XLA JIT support will be enabled for TensorFlow.</p>
<p dir="auto">Do you wish to build TensorFlow with ROCm support? [y/N]:<br>
No ROCm support will be enabled for TensorFlow.</p>
<p dir="auto">Do you wish to build TensorFlow with CUDA support? [y/N]: y<br>
CUDA support will be enabled for TensorFlow.</p>
<p dir="auto">Please specify the CUDA SDK version you want to use. [Leave empty to default to CUDA 9.0]:</p>
<p dir="auto">Please specify the location where CUDA 9.0 toolkit is installed. Refer to README.md for more details. [Default is C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.0]:</p>
<p dir="auto">Please specify the cuDNN version you want to use. [Leave empty to default to cuDNN 7]:</p>
<p dir="auto">Please specify the location where cuDNN 7 library is installed. Refer to README.md for more details. [Default is C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.0]:</p>
<p dir="auto">Please specify a list of comma-separated Cuda compute capabilities you want to build with.<br>
You can find the compute capability of your device at: <a href="https://developer.nvidia.com/cuda-gpus" rel="nofollow">https://developer.nvidia.com/cuda-gpus</a>.<br>
Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 3.5,7.0]: 3.0</p>
<p dir="auto">Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is /arch:AVX]:</p>
<p dir="auto">Would you like to override eigen strong inline for some C++ compilation to reduce the compilation time? [Y/n]:<br>
Eigen strong inline overridden.</p>
<p dir="auto">Preconfigured Bazel build configs. You can use any of the below by adding "--config=&lt;&gt;" to your build command. See .bazelrc for more details.<br>
--config=mkl            # Build with MKL support.<br>
--config=monolithic     # Config for mostly static monolithic build.<br>
--config=gdr            # Build with GDR support.<br>
--config=verbs          # Build with libverbs support.<br>
--config=ngraph         # Build with Intel nGraph support.<br>
--config=dynamic_kernels        # (Experimental) Build kernels into separate shared objects.<br>
Preconfigured Bazel build configs to DISABLE default on features:<br>
--config=noaws          # Disable AWS S3 filesystem support.<br>
--config=nogcp          # Disable GCP support.<br>
--config=nohdfs         # Disable HDFS support.<br>
--config=noignite       # Disable Apacha Ignite support.<br>
--config=nokafka        # Disable Apache Kafka support.</p>
<p dir="auto">(venv) B:\tensorflow&gt;bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package<br>
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:<br>
b:\tensorflow/.bazelrc<br>
b:\tensorflow/tools/bazel.rc<br>
Starting local Bazel server and connecting to it...<br>
WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.<br>
WARNING: Option 'experimental_shortened_obj_file_path' is deprecated<br>
DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:<br>
Auto-Configuration Warning: 'BAZEL_VC' is not set, start looking for the latest Visual C++ installed.<br>
DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:<br>
Auto-Configuration Warning: Looking for VS%VERSION%COMNTOOLS environment variables, eg. VS140COMNTOOLS<br>
DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:<br>
Auto-Configuration Warning: Visual C++ build tools found at C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC<br>
DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:<br>
Auto-Configuration Warning: 'BAZEL_VC' is not set, start looking for the latest Visual C++ installed.<br>
DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:<br>
Auto-Configuration Warning: Looking for VS%VERSION%COMNTOOLS environment variables, eg. VS140COMNTOOLS<br>
DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:<br>
Auto-Configuration Warning: Visual C++ build tools found at C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC<br>
DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:<br>
Auto-Configuration Warning: 'BAZEL_VC' is not set, start looking for the latest Visual C++ installed.<br>
DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:<br>
Auto-Configuration Warning: Looking for VS%VERSION%COMNTOOLS environment variables, eg. VS140COMNTOOLS<br>
DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:<br>
Auto-Configuration Warning: Visual C++ build tools found at C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC<br>
ERROR: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/local_config_cc/BUILD:106:1: in cc_toolchain rule @local_config_cc//:cc-compiler-x64_windows: Error while selecting cc_toolchain: Toolchain identifier 'msvc_x64' was not found, valid identifiers are [local_linux, local_darwin, local_windows]<br>
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: Analysis of target '@local_config_cc//:cc-compiler-x64_windows' failed; build aborted<br>
INFO: Elapsed time: 29.408s<br>
INFO: 0 processes.<br>
FAILED: Build did NOT complete successfully (24 packages loaded, 55 targets configured)<br>
currently loading: tensorflow/python</p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution : windows10</li>
<li>TensorFlow installed from : source</li>
<li>TensorFlow version: 1.11.0</li>
<li>Python version: Python 3.6.3 :: Anaconda custom (64-bit)</li>
<li>Installed using virtualenv? pip? conda?: conda</li>
<li>Bazel version (if compiling from source): 0.19.0 not from source</li>
</ul>
<p dir="auto">only cpu version.</p>
<p dir="auto">I followed the instruction from <a href="https://tensorflow.google.cn/install/source_windows#bazel_build" rel="nofollow">tensorflow official site.</a></p>
<p dir="auto">When I entered <code class="notranslate">bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package</code><br>
An error occurred</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
d:\tensorflow-1.11.0/.bazelrc
d:\tensorflow-1.11.0/tools/bazel.rc
ERROR: SymlinkDirectories(C:\Users\Administrator/_bazel_Administrator/install/46e308c2aba33f6ef6ad7b7f2c018098, c:\users\administrator\_bazel_administrator\buk4ctdf/install): CreateJunction:
FATAL: failed to create installation symlink 'c:\users\administrator\_bazel_administrator\buk4ctdf/install': success"><pre class="notranslate"><code class="notranslate">WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
d:\tensorflow-1.11.0/.bazelrc
d:\tensorflow-1.11.0/tools/bazel.rc
ERROR: SymlinkDirectories(C:\Users\Administrator/_bazel_Administrator/install/46e308c2aba33f6ef6ad7b7f2c018098, c:\users\administrator\_bazel_administrator\buk4ctdf/install): CreateJunction:
FATAL: failed to create installation symlink 'c:\users\administrator\_bazel_administrator\buk4ctdf/install': success
</code></pre></div>