Issue 1:
Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A

TensorFlow installed from (source or binary): source, both nightly and 1.12 tried

TensorFlow version: 1.12 and nightly

Python version: 3.6

Installed using virtualenv? pip? conda?: conda environment

Bazel version (if compiling from source): 0.19.1

GCC/Compiler version (if compiling from source):

CUDA/cuDNN version: 9.0 and 7.4

GPU model and memory: Geforce 770 4gb

Describe the problem

I'm trying to compile from source and I keep running into the same problem regardless of what release i try to build.

Provide the exact sequence of commands / steps that you executed before running into the problem

I followed the guide https://www.tensorflow.org/install/source_windows 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'

Any other info / logs

(venv) B:\tensorflow>python ./configure.py

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:

b:\tensorflow/tools/bazel.rc

nul

WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".

You have bazel 0.19.1 installed.

Please specify the location of python. [Default is B:\Program Files\Anaconda\envs\venv\python.exe]:

Found possible Python library paths:

B:\Program Files\Anaconda\envs\venv\lib\site-packages

Please input the desired Python library path to use. Default is [B:\Program Files\Anaconda\envs\venv\lib\site-packages]

Do you wish to build TensorFlow with XLA JIT support? [y/N]:

No XLA JIT support will be enabled for TensorFlow.

Do you wish to build TensorFlow with ROCm support? [y/N]:

No ROCm support will be enabled for TensorFlow.

Do you wish to build TensorFlow with CUDA support? [y/N]: y

CUDA support will be enabled for TensorFlow.

Please specify the CUDA SDK version you want to use. [Leave empty to default to CUDA 9.0]:

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]:

Please specify the cuDNN version you want to use. [Leave empty to default to cuDNN 7]:

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]:

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,7.0]: 3.0

Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is /arch:AVX]:

Would you like to override eigen strong inline for some C++ compilation to reduce the compilation time? [Y/n]:

Eigen strong inline overridden.

Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See .bazelrc for more details.

--config=mkl # Build with MKL support.

--config=monolithic # Config for mostly static monolithic build.

--config=gdr # Build with GDR support.

--config=verbs # Build with libverbs support.

--config=ngraph # Build with Intel nGraph support.

--config=dynamic_kernels # (Experimental) Build kernels into separate shared objects.

Preconfigured Bazel build configs to DISABLE default on features:

--config=noaws # Disable AWS S3 filesystem support.

--config=nogcp # Disable GCP support.

--config=nohdfs # Disable HDFS support.

--config=noignite # Disable Apacha Ignite support.

--config=nokafka # Disable Apache Kafka support.

(venv) B:\tensorflow>bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package

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:

b:\tensorflow/.bazelrc

b:\tensorflow/tools/bazel.rc

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.

WARNING: Option 'experimental_shortened_obj_file_path' is deprecated

DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:

Auto-Configuration Warning: 'BAZEL_VC' is not set, start looking for the latest Visual C++ installed.

DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:

Auto-Configuration Warning: Looking for VS%VERSION%COMNTOOLS environment variables, eg. VS140COMNTOOLS

DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:

Auto-Configuration Warning: Visual C++ build tools found at C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC

DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:

Auto-Configuration Warning: 'BAZEL_VC' is not set, start looking for the latest Visual C++ installed.

DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:

Auto-Configuration Warning: Looking for VS%VERSION%COMNTOOLS environment variables, eg. VS140COMNTOOLS

DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:

Auto-Configuration Warning: Visual C++ build tools found at C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC

DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:

Auto-Configuration Warning: 'BAZEL_VC' is not set, start looking for the latest Visual C++ installed.

DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:

Auto-Configuration Warning: Looking for VS%VERSION%COMNTOOLS environment variables, eg. VS140COMNTOOLS

DEBUG: C:/users/nikolaj/_bazel_nikolaj/rm3fg6i6/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:

Auto-Configuration Warning: Visual C++ build tools found at C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC

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]

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

INFO: Elapsed time: 29.408s

INFO: 0 processes.

FAILED: Build did NOT complete successfully (24 packages loaded, 55 targets configured)

currently loading: tensorflow/python

Issue 2:
System information

OS Platform and Distribution : windows10

TensorFlow installed from : source

TensorFlow version: 1.11.0

Python version: Python 3.6.3 :: Anaconda custom (64-bit)

Installed using virtualenv? pip? conda?: conda

Bazel version (if compiling from source): 0.19.0 not from source

only cpu version.

I followed the instruction from tensorflow official site.

When I entered bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package

An error occurred

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