tensorflow: Compiler Errors Installing Tensorflow from Source
System information
-
Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
-
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 7 SP1
-
TensorFlow installed from (source or binary): Source
-
TensorFlow version (use command below): r1.5
-
Python version: 3.6.4
-
Bazel version (if compiling from source): 0.9.0
-
GCC/Compiler version (if compiling from source): 6.4.0
-
CUDA/cuDNN version: 7.0
-
GPU model and memory: NVIDIA Quadro K4000
-
Exact command to reproduce:
bazel build -c opt %BUILD_OPTS% //tensorflow/tools/pip_package:build_pip_package
Describe the problem
I have tried compiling with MSYS2 and VS2015. I am trying to get VS2015 to work.
###Using VS2015 and --cpu=x64_windows_msvc --host_cpu=x64_windows_msvc
(among other options), I get the following error:
c:\Users\adam.hendry\Downloads\tensorflow>bazel build -c opt %BUILD_OPTS% //tens
orflow/tools/pip_package:build_pip_package
.......................
Loading:
Loading: 0 packages loaded
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (1 packages l
oaded)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (6 packages l
oaded)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (48 packages
loaded)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (81 packages
loaded)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (93 packages
loaded)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (94 packages
loaded)
WARNING: C:/users/adam.hendry/downloads/tensorflow/tensorflow/core/BUILD:1807:1:
in includes attribute of cc_library rule //tensorflow/core:framework_headers_li
b: '../../external/nsync/public' resolves to 'external/nsync/public' not below t
he relative path of its package 'tensorflow/core'. This will be an error in the
future. Since this rule was created by the macro 'cc_header_only_library', the e
rror might have been caused by the macro implementation in C:/users/adam.hendry/
downloads/tensorflow/tensorflow/tensorflow.bzl:1138:30
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (116 packages
loaded)
INFO: Analysed target //tensorflow/tools/pip_package:build_pip_package (127 pack
ages loaded).
INFO: Found 1 target...
Building: no action
[0 / 7] [-----] BazelWorkspaceStatusAction stable-status.txt
INFO: From Compiling external/zlib_archive/uncompr.c [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/gzlib.c [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/adler32.c [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/gzclose.c [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/compress.c [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
[134 / 1,014] Compiling external/zlib_archive/deflate.c [for host]; 1s local ...
(16 actions, 14 running)
INFO: From Compiling external/zlib_archive/infback.c [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling tensorflow/core/lib/hash/crc32c_accelerate.cc [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/highwayhash/highwayhash/arch_specific.cc [for host
]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/crc32.c [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/inflate.c [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/inftrees.c [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/gzread.c [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/gzwrite.c [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/zutil.c [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/inffast.c [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/trees.c [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/deflate.c [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/fft2d/fft/fftsg.c [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/farmhash_archive/src/farmhash.cc [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling tensorflow/compiler/xla/executable_run_options.cc:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
[349 / 1,966] Compiling external/protobuf_archive/src/google/protobuf/compiler/j
s/embed.cc [for host]; 1s local ... (5 actions, 3 running)
INFO: From Compiling external/farmhash_archive/src/farmhash.cc:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/protobuf_archive/src/google/protobuf/compiler/js/e
mbed.cc [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling tensorflow/core/grappler/costs/robust_stats.cc:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/lmdb/midl.c:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
[643 / 3,343] Compiling external/lmdb/mdb.c; 0s local ... (23 actions, 22 runnin
g)
INFO: From Compiling external/zlib_archive/gzread.c:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/trees.c:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/gzclose.c:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/gzwrite.c:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/crc32.c:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/inffast.c:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/inftrees.c:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/compress.c:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/uncompr.c:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/zutil.c:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/gzlib.c:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/infback.c:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/deflate.c:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/inflate.c:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/zlib_archive/adler32.c:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/png_archive/pngtrans.c [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/highwayhash/highwayhash/sip_hash.cc [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/png_archive/pngget.c [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
INFO: From Compiling external/png_archive/pngread.c [for host]:
cl : Command line warning D9002 : ignoring unknown option '-march=native'
ERROR: C:/users/adam.hendry/downloads/tensorflow/tensorflow/compiler/xla/service
/cpu/BUILD:772:1: C++ compilation of rule '//tensorflow/compiler/xla/service/cpu
:custom_call_target_registry' failed (Exit 1): cl.exe failed: error executing co
mmand
cd C:/users/adam.hendry/appdata/local/temp/_bazel_adam.hendry/qoyar4dt/execroo
t/org_tensorflow
SET CUDA_COMPUTE_CAPABILITIE=None
SET CUDA_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1
SET CUDA_TOOLKIT_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.
1
SET CUDNN_INSTALL_PATH=C:/cuda
SET INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE;C
:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE;C:\Program
Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt;C:\Program Files (x86)\Win
dows Kits\NETFXSDK\4.6.1\include\um;C:\Program Files (x86)\Windows Kits\10\inclu
de\10.0.16299.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299
.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt;
SET LIB=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64;C:\
Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64;C:\Program
Files (x86)\Windows Kits\10\lib\10.0.16299.0\ucrt\x64;C:\Program Files (x86)\Win
dows Kits\NETFXSDK\4.6.1\lib\um\x64;C:\Program Files (x86)\Windows Kits\10\lib\1
0.0.16299.0\um\x64;
SET NO_WHOLE_ARCHIVE_OPTION=1
SET PATH=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Com
monExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studi
o 14.0\VC\BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program F
iles (x86)\Microsoft Visual Studio 14.0\VC\VCPackages;C:\Program Files (x86)\Mic
rosoft Visual Studio 14.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual St
udio 14.0\Common7\Tools;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team
Tools\Performance Tools\x64;C:\Program Files (x86)\Microsoft Visual Studio 14.0
\Team Tools\Performance Tools;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\
Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft SDK
s\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\;;C:\Windows\system32
SET PWD=/proc/self/cwd
SET PYTHON_BIN_PATH=C:/Python/Python36/python.exe
SET PYTHON_LIB_PATH=C:/Python/Python36/lib/site-packages
SET TEMP=C:\Users\ADAM~1.HEN\AppData\Local\Temp
SET TF_CUDA_CLANG=0
SET TF_CUDA_COMPUTE_CAPABILITIES=3.0
SET TF_CUDA_VERSION=9.1
SET TF_CUDNN_VERSION=7
SET TF_NEED_CUDA=1
SET TF_NEED_OPENCL_SYCL=0
SET TMP=C:\Users\ADAM~1.HEN\AppData\Local\Temp
C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe /c ten
sorflow/compiler/xla/service/cpu/custom_call_target_registry.cc /Fobazel-out/x64
_windows_msvc-py3-opt/bin/tensorflow/compiler/xla/service/cpu/_objs/custom_call_
target_registry/tensorflow/compiler/xla/service/cpu/custom_call_target_registry.
o /nologo /DCOMPILER_MSVC /DNOMINMAX /D_WIN32_WINNT=0x0600 /D_CRT_SECURE_NO_DEPR
ECATE /D_CRT_SECURE_NO_WARNINGS /D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS /big
obj /Zm500 /J /Gy /GF /EHsc /wd4351 /wd4291 /wd4250 /wd4996 -DGEMMLOWP_ALLOW_SLO
W_SCALAR_FALLBACK -w -march=native -D_GLIBCXX_USE_CXX11_ABI=0 /I. /Ibazel-out/x6
4_windows_msvc-py3-opt/genfiles /Iexternal/bazel_tools /Ibazel-out/x64_windows_m
svc-py3-opt/genfiles/external/bazel_tools /Iexternal/bazel_tools/tools/cpp/gcc3
/showIncludes /MD /O2 /DNDEBUG
C:\users\adam.hendry\appdata\local\temp\_bazel_adam.hendry\qoyar4dt\execroot\org
_tensorflow\tensorflow\compiler\xla\service\cpu\custom_call_target_registry.cc :
fatal error C1083: Cannot open compiler generated file: '': Invalid argument
cl : Command line warning D9002 : ignoring unknown option '-march=native'
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 25.271s, Critical Path: 3.48s
FAILED: Build did NOT complete successfully
###Using VS2015 and --cpu=x64_windows_msys --host_cpu=x64_windows_msys
(among other options), I get this error:
c:\Users\adam.hendry\Downloads\tensorflow>bazel build -c opt %BUILD_OPTS% //tens
orflow/tools/pip_package:build_pip_package
.......................
Loading:
Loading: 0 packages loaded
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (1 packages l
oaded)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (6 packages l
oaded)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (73 packages
loaded)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (131 packages
loaded)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (141 packages
loaded)
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (142 packages
loaded)
WARNING: C:/users/adam.hendry/downloads/tensorflow/tensorflow/core/BUILD:1807:1:
in includes attribute of cc_library rule //tensorflow/core:framework_headers_li
b: '../../external/nsync/public' resolves to 'external/nsync/public' not below t
he relative path of its package 'tensorflow/core'. This will be an error in the
future. Since this rule was created by the macro 'cc_header_only_library', the e
rror might have been caused by the macro implementation in C:/users/adam.hendry/
downloads/tensorflow/tensorflow/tensorflow.bzl:1138:30
Analyzing: target //tensorflow/tools/pip_package:build_pip_package (157 packages
loaded)
WARNING: C:/users/adam.hendry/downloads/tensorflow/tensorflow/contrib/learn/BUIL
D:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflo
w/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/sessio
n_bundle:exporter': No longer supported. Switch to SavedModel immediately.
WARNING: C:/users/adam.hendry/downloads/tensorflow/tensorflow/contrib/learn/BUIL
D:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflo
w/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/sessio
n_bundle:gc': No longer supported. Switch to SavedModel immediately.
INFO: Analysed target //tensorflow/tools/pip_package:build_pip_package (254 pack
ages loaded).
INFO: Found 1 target...
Building: no action
[0 / 17] [-----] BazelWorkspaceStatusAction stable-status.txt
[105 / 747] Executing genrule @local_config_cuda//cuda:cuda-lib; 2s local ... (2
4 actions running)
[106 / 747] Executing genrule @local_config_cuda//cuda:cuda-lib; 5s local ... (2
3 actions running)
[111 / 747] Executing genrule @local_config_cuda//cuda:cuda-lib; 10s local ... (
24 actions running)
[113 / 747] Executing genrule //tensorflow/core:version_info_gen [for host]; 13s
local ... (23 actions running)
[129 / 968] Executing genrule //tensorflow/core:version_info_gen [for host]; 20s
local ... (24 actions running)
[148 / 1,274] Executing genrule //tensorflow/core:version_info_gen [for host]; 3
1s local ... (24 actions running)
[149 / 1,275] Executing genrule //tensorflow/core:version_info_gen [for host]; 3
7s local ... (24 actions running)
[149 / 1,275] Executing genrule //tensorflow/core:version_info_gen [for host]; 4
6s local ... (24 actions running)
[155 / 1,279] Executing genrule @local_config_cuda//cuda:cuda-include [for host]
; 57s local ... (23 actions running)
[228 / 1,543] Executing genrule @local_config_cuda//cuda:cuda-include [for host]
; 68s local ... (24 actions, 23 running)
[417 / 2,009] Executing genrule @local_config_cuda//cuda:cuda-include [for host]
; 83s local ... (24 actions, 23 running)
[437 / 2,009] Executing genrule @local_config_cuda//cuda:cuda-include [for host]
; 98s local ... (23 actions running)
[458 / 2,009] Executing genrule @local_config_cuda//cuda:cuda-include [for host]
; 115s local ... (24 actions, 23 running)
[523 / 2,096] Executing genrule @local_config_cuda//cuda:cuda-include [for host]
; 135s local ... (24 actions, 23 running)
ERROR: C:/users/adam.hendry/appdata/local/temp/_bazel_adam.hendry/qoyar4dt/exter
nal/com_google_absl/absl/base/BUILD.bazel:30:1: C++ compilation of rule '@com_go
ogle_absl//absl/base:spinlock_wait' failed (Exit 1): gcc failed: error executing
command
cd C:/users/adam.hendry/appdata/local/temp/_bazel_adam.hendry/qoyar4dt/execroo
t/org_tensorflow
SET CUDA_COMPUTE_CAPABILITIE=None
SET CUDA_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1
SET CUDA_TOOLKIT_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.
1
SET CUDNN_INSTALL_PATH=C:/cuda
SET NO_WHOLE_ARCHIVE_OPTION=1
SET PATH=C:\msys64\usr\bin;C:\msys64\bin;C:\Program Files (x86)\Microsoft Vi
sual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Fi
les (x86)\MSBuild\14.0\bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\C
ommon7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN;C:\Progra
m Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools;C:\Windows\Microsoft.NE
T\Framework\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\VC
Packages;C:\Program Files (x86)\HTML Help Workshop;C:\Program Files (x86)\Micros
oft Visual Studio 14.0\Team Tools\Performance Tools;C:\Program Files (x86)\Windo
ws Kits\10\bin\x86;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETF
X 4.6.1 Tools\;C:\Program Files (x86)\Microsoft Visual Studio 14.0\;C:\Program F
iles (x86)\Microsoft Visual Studio 14.0\VC\;C:\Program Files (x86)\Microsoft Vis
ual Studio 14.0\VC\bin\;C:\Program Files (x86)\Windows Kits\10\;C:\Python\Python
36\;C:\Python\Python36\Scripts\;C:\ProgramData\chocolatey\bin;C:\Program Files\G
it LFS;C:\Program Files\CMake\bin;C:\Program Files\Java\jdk1.8.0_152\;C:\Program
Data\Oracle\Java\javapath;C:\Windows;C:\Windows\System32;C:\Windows\System32Wbem
;C:\Windows\System32WindowsPowerShell\v1.0\;C:\bazel\output;C:\apache-maven-3.3.
9\;C:\apache-maven-3.3.9\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\
v9.1\;%CUDNN_PATH%;C:\Program Files\ImageMagick-7.0.5-Q16\;C:\Program Files (x86
)\QuickTime\QTSystem\;C:\Program Files (x86)\gs\gs9.21\bin\;C:\cppan\cppan.exe;C
:\Program Files (x86)\Tesseract-OCR\;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\
;C:\ffmpeg\bin;C:\Users\adam.hendry\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm
\;C:\Program Files\HDF_Group\HDF5\1.10.1\bin\;C:\Program Files (x86)\GtkSharp\2.
12\bin;C:\Program Files (x86)\gettext-iconv\lib\gettext;C:\Program Files (x86)\C
ommon Files\Intel\Shared Libraries\redist\ia32\mpirt;C:\Program Files (x86)\Comm
on Files\Intel\Shared Libraries\redist\ia32\compiler;C:\Program Files\Common Fil
es\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft S
hared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Pro
gram Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Progr
am Files (x86)\Windows Live\Shared;C:\Program Files\Microsoft SQL Server\130\Too
ls\Binn\;C:\Intel\OpenCL\sdk\bin\x64;C:\Intel\OpenCL\sdk\bin\x86\;C:\Intel\OpenC
L\sdk\bin\Pin;C:\Intel\OpenCL\sdk\bin\GTPin;C:\Program Files\Git\cmd;
SET PWD=/proc/self/cwd
SET PYTHON_BIN_PATH=C:/Python/Python36/python.exe
SET PYTHON_LIB_PATH=C:/Python/Python36/lib/site-packages
SET TF_CUDA_CLANG=0
SET TF_CUDA_COMPUTE_CAPABILITIES=3.0
SET TF_CUDA_VERSION=9.1
SET TF_CUDNN_VERSION=7
SET TF_NEED_CUDA=1
SET TF_NEED_OPENCL_SYCL=0
C:/msys64/usr/bin/gcc -DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK -w -march=native -
std=gnu++0x -D_GLIBCXX_USE_CXX11_ABI=0 -MD -MF bazel-out/x64_windows_msys-py3-op
t/bin/external/com_google_absl/absl/base/_objs/spinlock_wait/external/com_google
_absl/absl/base/internal/spinlock_wait.d -frandom-seed=bazel-out/x64_windows_msy
s-py3-opt/bin/external/com_google_absl/absl/base/_objs/spinlock_wait/external/co
m_google_absl/absl/base/internal/spinlock_wait.o -D__CLANG_SUPPORT_DYN_ANNOTATIO
N__ -iquote external/com_google_absl -iquote bazel-out/x64_windows_msys-py3-opt/
genfiles/external/com_google_absl -iquote external/bazel_tools -iquote bazel-out
/x64_windows_msys-py3-opt/genfiles/external/bazel_tools -isystem external/bazel_
tools/tools/cpp/gcc3 -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-decla
rations -Woverlength-strings -Wpointer-arith -Wunused-local-typedefs -Wunused-re
sult -Wvarargs -Wvla -Wwrite-strings -c external/com_google_absl/absl/base/inter
nal/spinlock_wait.cc -o bazel-out/x64_windows_msys-py3-opt/bin/external/com_goog
le_absl/absl/base/_objs/spinlock_wait/external/com_google_absl/absl/base/interna
l/spinlock_wait.o
In file included from external/com_google_absl/absl/base/config.h:66:0,
from external/com_google_absl/absl/base/port.h:23,
from external/com_google_absl/absl/base/internal/spinlock_posix
.inc:23,
from external/com_google_absl/absl/base/internal/spinlock_wait.
cc:27:
external/com_google_absl/absl/base/policy_checks.h:40:2: error: #error "Cygwin i
s not supported."
#error "Cygwin is not supported."
^~~~~
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 172.251s, Critical Path: 153.84s
FAILED: Build did NOT complete successfully
###Any help would be appreciated. I can give you more details as well.
Source code / logs
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.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 24 (9 by maintainers)
You are hitting this error because
cl.exe
cannot open a file with path length exceeding the max path length in Windows. This is a known issue if you building with Bazel on Windows. Workaround is to setTMP
,TEMP
andTMPDIR
to short path name likeC:\tmp
and rebuild again.