Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tensorflow-cc] build failure #7995

Closed
trade-commander1 opened this issue Aug 30, 2019 · 19 comments
Closed

[tensorflow-cc] build failure #7995

trade-commander1 opened this issue Aug 30, 2019 · 19 comments
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support category:port-update The issue is with a library, which is requesting update new revision

Comments

@trade-commander1
Copy link

Host Environment
Windows 10 64 bit (1903) VM (VMWareWorkstation)

To Reproduce
.\vcpkg.exe install tensorflow-cc:x86-windows-static tensorflow-cc:x64-windows-static
Failure logs
Build fails. From log:
ERROR: C:/projekte/dev_apps/vcpkg/buildtrees/.bzl/_bazel_general/yvqyet6t/external/snappy/BUILD.bazel:7:1: C++ compilation of rule '@snappy//:snappy' failed (Exit 2): cl.exe failed: error executing command
logs.zip

@trade-commander1 trade-commander1 added the category:port-bug The issue is with a library, which is something the port should already support label Aug 30, 2019
@JackBoosY JackBoosY assigned JackBoosY and unassigned PhoebeHui Sep 2, 2019
@JackBoosY
Copy link
Contributor

JackBoosY commented Sep 3, 2019

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include\yvals_core.h(298): fatal error C1189: #error: STL1001: Unexpected compiler version, expected MSVC 19.15 or newer.

What's version of your Visual Studio?

I can reproduce the build failure but the error is different:

  1. The ::tensorflow::internal::LogMessage in logging.h :: could not be recognized.
  2. Generated x64 but expect x86.

And, tensorflow does not support 32 bit system. See documentation.

@trade-commander1
Copy link
Author

Hello, Visual Studio Version is 15.9.15, currently latest.
Just tried to build 64 bit only

.\vcpkg.exe install tensorflow-cc:x64-windows-static

and this failed as well.

@JackBoosY
Copy link
Contributor

JackBoosY commented Sep 4, 2019

@trade-commander1 Yes, so I'm fixing static build now.
As a temporary solution, you only need to build tensorflow again.

@trade-commander1
Copy link
Author

@JackBoosY
Made a fresh run (so deleted buildtree ..cc, download,etc.). Still fails.
Logs attached. Thank you for help.
log.zip

@JackBoosY
Copy link
Contributor

JackBoosY commented Sep 5, 2019

The error I encountered was in the macro LOG ::tensorflow is not recognized.
Error in your logs:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include\yvals_core.h(298): fatal error C1189: #error: STL1001: Unexpected compiler version, expected MSVC 19.15 or newer.

So I guess Visual Studio 2017 or newer is required to build tensorflow.

@trade-commander1
Copy link
Author

Thank you for picking this for me. I use latest VS 17 update. It seems you need VS 19.
Only the god of programmers knows what happens when migrate to VS 19.
Will all the other vcpkg libraries build with VS 19?

@trade-commander1
Copy link
Author

Hello,
with VS 2019 installed, build was successfull. Thank you.

@trade-commander1
Copy link
Author

Perhaps a comment for build issues i had: It seems to hang at "configure..." Then type y press Enter to proceed. Also, do not forget to run
vcpkg integrate install
before build

@JackBoosY
Copy link
Contributor

JackBoosY commented Sep 9, 2019

@trade-commander1 Thanks, I will check it with Visual Studio 2019. And I opened an issue in the github page of tensorflow-cc.

@JackBoosY
Copy link
Contributor

Failure on Visual Studio 2019 16.2.1.

@JackBoosY JackBoosY added the depends:upstream-changes Waiting on a change to the upstream project label Sep 9, 2019
@MVoz
Copy link
Contributor

MVoz commented Sep 17, 2019

for myself
I have made, understated version for errors

edit "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\include\yvals_core.h" str 297

to #if _MSC_VER < 1900 // Coarse-grained, not inspecting _MSC_FULL_VER

))

@JackBoosY
Copy link
Contributor

@voskrese I think this is not a Windows SDK bug, it is a source code error. So your solution is temporary.

@MVoz
Copy link
Contributor

MVoz commented Sep 17, 2019

So your solution is temporary.

that's right, temporary )

@jgehw
Copy link
Contributor

jgehw commented Jul 23, 2020

FYI: I had a more recent reincarnation of this problem:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.26.28801\include\yvals_core.h(298): fatal error C1189: #error: STL1001: Unexpected compiler version, expected MSVC 19.25 or newer.

Examining the log files, I found out that the most recent include files were used, but an older compiler (14.16.27023, although 14.26.28801 was also available).

I worked around this issue by uninstalling pre-2019 toolchains (MSVC v140 and v141).

@jgehw
Copy link
Contributor

jgehw commented May 25, 2021

Can you please comment if the issue is solved in your setup with my #13028 PR? In #13028 I upgraded bazel (the build system used for tensorflow, which caused your error) from v0.25.2 to v3.1 - so development made a huge leap there and chances are good that the error is gone.

@w4ffl35
Copy link

w4ffl35 commented May 28, 2021

I found this thread from a link here -- which closely resembles the error i'm getting Error: Building package tensorflow-cc:x86-windows failed with: BUILD_FAILED -- i'm not sure if it relates to #7995 though.

My full error:

Starting package 1/1: tensorflow-cc:x86-windows
Building package tensorflow-cc[core]:x86-windows...
CMake Error at scripts/cmake/vcpkg_fail_port_install.cmake:96 (message):
  Architecture 'x86' not supported by tensorflow-cc!

Call Stack (most recent call first):
  ports/tensorflow-cc/portfile.cmake:1 (vcpkg_fail_port_install)
  scripts/ports.cmake:139 (include)


Error: Building package tensorflow-cc:x86-windows failed with: BUILD_FAILED

I'm not sure why its targeting x86.

EDIT: .\vcpkg install tensorflow-cc:x64-windows solved the issue for me... dumb mistake. Leaving this comment here in case someone else runs into the same issue (vcpkg was defaulting to x86, had to add :x64-windows to the install string).

EDIT 2:

Getting this issue now -- I will be picking this up over the weekend.

CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:146 (message):
    Command failed: C:/Users/<USER>/Desktop/vcpkg/downloads/tools/msys2/b3b3d399e80e310e/usr/bin/bash.exe --noprofile --norc -c "'C:/Users/<USER>/Desktop/vcpkg/downloads/tools/bazel/3.7.0-windows/bazel.exe' build --verbose_failures --compilation_mode=dbg --features=fastbuild    --python_path='C:/Users/<USER>/Desktop/vcpkg/downloads/tools/msys2/b3b3d399e80e310e/mingw64/bin/python3.exe' --define=no_tensorflow_py_deps=true ///tensorflow:tensorflow_cc.dll ///tensorflow:install_headers"
    Working Directory: C:/Users/<USER>/Desktop/vcpkg/buildtrees/tensorflow-cc/x64-windows-dbg
    See logs for more information:
      C:\Users\<USER>\Desktop\vcpkg\buildtrees\tensorflow-cc\build-x64-windows-dbg-out.log
      C:\Users\<USER>\Desktop\vcpkg\buildtrees\tensorflow-cc\build-x64-windows-dbg-err.log

Call Stack (most recent call first):
  installed/x64-windows/share/tensorflow-common/tensorflow-common.cmake:222 (vcpkg_execute_build_process)
  ports/tensorflow-cc/portfile.cmake:7 (include)
  scripts/ports.cmake:139 (include)


Error: Building package tensorflow-cc:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: tensorflow-cc:x64-windows
  Vcpkg version: 2021-05-05-9f849c4c43e50d1b16186ae76681c27b0c1be9d9

Additionally, attach any relevant sections from the log files above.

EDIT 3:

The contents of C:\Users\<USER>\Desktop\vcpkg\buildtrees\tensorflow-cc\build-x64-windows-dbg-err.log:

$TEST_TMPDIR defined: output root default is 'c:\users\<USER>\desktop\vcpkg\buildtrees\tensorflow-cc\.bzl' and max_idle_secs default is '15'.
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'build' from c:\users\<USER>\desktop\vcpkg\buildtrees\tensorflow-cc\x64-windows-dbg\.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Options provided by the client:
  'build' options: --python_path=C:/Users/<USER>/Desktop/vcpkg/downloads/tools/msys2/b3b3d399e80e310e/mingw64/bin/python.exe
INFO: Reading rc options for 'build' from c:\users\<USER>\desktop\vcpkg\buildtrees\tensorflow-cc\x64-windows-dbg\.bazelrc:
  'build' options: --apple_platform_type=macos --define framework_shared_object=true --define open_source_build=true --java_toolchain=//third_party/toolchains/java:tf_java_toolchain --host_java_toolchain=//third_party/toolchains/java:tf_java_toolchain --define=tensorflow_enable_mlir_generated_gpu_kernels=0 --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --noincompatible_prohibit_aapt1 --enable_platform_specific_config --config=short_logs --config=v2
INFO: Reading rc options for 'build' from c:\users\<USER>\desktop\vcpkg\buildtrees\tensorflow-cc\x64-windows-dbg\.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=C:/Users/<USER>/Desktop/vcpkg/downloads/tools/msys2/b3b3d399e80e310e/mingw64/bin/python3.exe --action_env PYTHON_LIB_PATH=C:/Users/<USER>/Desktop/vcpkg/downloads/tools/msys2/b3b3d399e80e310e/mingw64/lib/python3.8/site-packages --python_path=C:/Users/<USER>/Desktop/vcpkg/downloads/tools/msys2/b3b3d399e80e310e/mingw64/bin/python3.exe --define=override_eigen_strong_inline=true --action_env TF_CONFIGURE_IOS=0
INFO: Found applicable config definition build:short_logs in file c:\users\<USER>\desktop\vcpkg\buildtrees\tensorflow-cc\x64-windows-dbg\.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file c:\users\<USER>\desktop\vcpkg\buildtrees\tensorflow-cc\x64-windows-dbg\.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:windows in file c:\users\<USER>\desktop\vcpkg\buildtrees\tensorflow-cc\x64-windows-dbg\.bazelrc: --copt=/W0 --copt=/D_USE_MATH_DEFINES --host_copt=/D_USE_MATH_DEFINES --cxxopt=/std:c++14 --host_cxxopt=/std:c++14 --config=monolithic --copt=-DWIN32_LEAN_AND_MEAN --host_copt=-DWIN32_LEAN_AND_MEAN --copt=-DNOGDI --host_copt=-DNOGDI --copt=/experimental:preprocessor --host_copt=/experimental:preprocessor --linkopt=/DEBUG --host_linkopt=/DEBUG --linkopt=/OPT:REF --host_linkopt=/OPT:REF --linkopt=/OPT:ICF --host_linkopt=/OPT:ICF --experimental_strict_action_env=true --verbose_failures --distinct_host_configuration=false
INFO: Found applicable config definition build:monolithic in file c:\users\<USER>\desktop\vcpkg\buildtrees\tensorflow-cc\x64-windows-dbg\.bazelrc: --define framework_shared_object=false
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
DEBUG: Rule 'io_bazel_rules_go' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1557349968 -0400"
DEBUG: Repository io_bazel_rules_go instantiated at:
  C:/users/<USER>/desktop/vcpkg/buildtrees/tensorflow-cc/x64-windows-dbg/WORKSPACE:37:30: in <toplevel>
  C:/users/<USER>/desktop/vcpkg/buildtrees/tensorflow-cc/.bzl/_bazel_<USER>/dmuswvog/external/bazel_toolchains/repositories/repositories.bzl:55:23: in repositories
Repository rule git_repository defined at:
  C:/users/<USER>/desktop/vcpkg/buildtrees/tensorflow-cc/.bzl/_bazel_<USER>/dmuswvog/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: 2 targets (1 packages loaded, 0 targets configured)
DEBUG: Rule 'io_bazel_rules_docker' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1556410077 -0400"
DEBUG: Repository io_bazel_rules_docker instantiated at:
  C:/users/<USER>/desktop/vcpkg/buildtrees/tensorflow-cc/x64-windows-dbg/WORKSPACE:37:30: in <toplevel>
  C:/users/<USER>/desktop/vcpkg/buildtrees/tensorflow-cc/.bzl/_bazel_<USER>/dmuswvog/external/bazel_toolchains/repositories/repositories.bzl:37:23: in repositories
Repository rule git_repository defined at:
  C:/users/<USER>/desktop/vcpkg/buildtrees/tensorflow-cc/.bzl/_bazel_<USER>/dmuswvog/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
Analyzing: 2 targets (24 packages loaded, 32 targets configured)
Analyzing: 2 targets (24 packages loaded, 32 targets configured)
Analyzing: 2 targets (24 packages loaded, 32 targets configured)
Analyzing: 2 targets (179 packages loaded, 7309 targets configured)
Analyzing: 2 targets (187 packages loaded, 9675 targets configured)
Analyzing: 2 targets (188 packages loaded, 10172 targets configured)
Analyzing: 2 targets (189 packages loaded, 10614 targets configured)
Analyzing: 2 targets (189 packages loaded, 10614 targets configured)
Analyzing: 2 targets (189 packages loaded, 10614 targets configured)
WARNING: Download from https://mirror.bazel.build/github.com/aws/aws-sdk-cpp/archive/1.7.336.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
Analyzing: 2 targets (193 packages loaded, 12009 targets configured)
Analyzing: 2 targets (193 packages loaded, 12009 targets configured)
Analyzing: 2 targets (193 packages loaded, 12009 targets configured)
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/f402e682d0ef5598eeffc9a21a691b03e602ff58.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
INFO: Analyzed 2 targets (205 packages loaded, 16587 targets configured).
INFO: Found 2 targets...
[0 / 506] [Prepa] Creating source manifest for //tensorflow:tensorflow_cc.dll
[260 / 2,147] Compiling llvm-project/llvm/utils/TableGen/CodeGenDAGPatterns.cpp; 5s local ... (16 actions, 15 running)
[541 / 2,546] Compiling boringssl/src/crypto/bio/socket.c; 0s local ... (15 actions, 14 running)
[1,213 / 3,387] Compiling tensorflow/core/lib/strings/proto_serialization.cc; 2s local ... (16 actions, 15 running)
[1,870 / 4,198] Compiling icu/icu4c/source/common/ustr_titlecase_brkiter.cpp; 1s local ... (15 actions, 14 running)
[2,515 / 5,029] Compiling aws/aws-cpp-sdk-s3/source/S3Client.cpp; 13s local ... (14 actions running)
[3,607 / 6,685] Executing genrule @libjpeg_turbo//:simd_win_x86_64_assemble; 7s local ... (16 actions, 15 running)
[4,692 / 7,860] Compiling llvm-project/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp; 5s local ... (15 actions, 14 running)
[5,302 / 7,860] Compiling tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc; 3s local ... (16 actions, 15 running)
[5,728 / 7,906] Compiling tensorflow/compiler/xla/service/memory_space_assignment.cc; 14s local ... (16 actions, 15 running)
[5,863 / 7,906] Compiling tensorflow/core/kernels/linalg/lu_op.cc; 22s local ... (16 actions, 15 running)
[6,221 / 7,906] Compiling tensorflow/core/kernels/training_ops.cc; 46s local ... (16 actions, 15 running)
ERROR: C:/users/<USER>/desktop/vcpkg/buildtrees/tensorflow-cc/x64-windows-dbg/tensorflow/core/common_runtime/BUILD:894:11: C++ compilation of rule '//tensorflow/core/common_runtime:isolate_placer_inspection_required_ops_pass' failed (Exit 1): cl.exe failed: error executing command 
  cd C:/users/<USER>/desktop/vcpkg/buildtrees/tensorflow-cc/.bzl/_bazel_<USER>/dmuswvog/execroot/org_tensorflow
  SET INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\ATLMFC\include;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt
    SET PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\\Extensions\Microsoft\IntelliCode\CLI;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Team Tools\Performance Tools\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\vs2019\\x64;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\vs2019\;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\FSharp\Tools;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\devinit;C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\\MSBuild\Current\Bin;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\;;C:\WINDOWS\system32;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\Linux\bin\ConnectionManagerExe
    SET PWD=/proc/self/cwd
    SET PYTHON_BIN_PATH=C:/Users/<USER>/Desktop/vcpkg/downloads/tools/msys2/b3b3d399e80e310e/mingw64/bin/python3.exe
    SET PYTHON_LIB_PATH=C:/Users/<USER>/Desktop/vcpkg/downloads/tools/msys2/b3b3d399e80e310e/mingw64/lib/python3.8/site-packages
    SET RUNFILES_MANIFEST_ONLY=1
    SET TEMP=C:\Users\<USER>\AppData\Local\Temp
    SET TF2_BEHAVIOR=1
    SET TF_CONFIGURE_IOS=0
    SET TMP=C:\Users\<USER>\AppData\Local\Temp
  C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30037/bin/HostX64/x64/cl.exe /nologo /DCOMPILER_MSVC /DNOMINMAX /D_WIN32_WINNT=0x0601 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /bigobj /Zm500 /EHsc /wd4351 /wd4291 /wd4250 /wd4996 /I. /Ibazel-out/x64_windows-dbg/bin /Iexternal/com_google_absl /Ibazel-out/x64_windows-dbg/bin/external/com_google_absl /Iexternal/nsync /Ibazel-out/x64_windows-dbg/bin/external/nsync /Iexternal/eigen_archive /Ibazel-out/x64_windows-dbg/bin/external/eigen_archive /Iexternal/gif /Ibazel-out/x64_windows-dbg/bin/external/gif /Iexternal/libjpeg_turbo /Ibazel-out/x64_windows-dbg/bin/external/libjpeg_turbo /Iexternal/com_google_protobuf /Ibazel-out/x64_windows-dbg/bin/external/com_google_protobuf /Iexternal/com_googlesource_code_re2 /Ibazel-out/x64_windows-dbg/bin/external/com_googlesource_code_re2 /Iexternal/farmhash_archive /Ibazel-out/x64_windows-dbg/bin/external/farmhash_archive /Iexternal/fft2d /Ibazel-out/x64_windows-dbg/bin/external/fft2d /Iexternal/highwayhash /Ibazel-out/x64_windows-dbg/bin/external/highwayhash /Iexternal/zlib /Ibazel-out/x64_windows-dbg/bin/external/zlib /Iexternal/double_conversion /Ibazel-out/x64_windows-dbg/bin/external/double_conversion /Iexternal/snappy /Ibazel-out/x64_windows-dbg/bin/external/snappy /Iexternal/nsync/public /Ibazel-out/x64_windows-dbg/bin/external/nsync/public /Iexternal/eigen_archive /Ibazel-out/x64_windows-dbg/bin/external/eigen_archive /Iexternal/gif /Ibazel-out/x64_windows-dbg/bin/external/gif /Iexternal/gif/windows /Ibazel-out/x64_windows-dbg/bin/external/gif/windows /Iexternal/com_google_protobuf/src /Ibazel-out/x64_windows-dbg/bin/external/com_google_protobuf/src /Iexternal/farmhash_archive/src /Ibazel-out/x64_windows-dbg/bin/external/farmhash_archive/src /Iexternal/zlib /Ibazel-out/x64_windows-dbg/bin/external/zlib /Iexternal/double_conversion /Ibazel-out/x64_windows-dbg/bin/external/double_conversion /DTF_USE_SNAPPY /DEIGEN_MPL2_ONLY /DEIGEN_MAX_ALIGN_BYTES=64 /DEIGEN_HAS_TYPE_TRAITS=0 /D__CLANG_SUPPORT_DYN_ANNOTATION__ /showIncludes /MDd /Od /Z7 /Od /Z7 /wd4117 -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" /W0 /D_USE_MATH_DEFINES -DWIN32_LEAN_AND_MEAN -DNOGDI /experimental:preprocessor /std:c++14 -DTENSORFLOW_MONOLITHIC_BUILD /DPLATFORM_WINDOWS /DEIGEN_HAS_C99_MATH /DTENSORFLOW_USE_EIGEN_THREADPOOL /DEIGEN_AVOID_STL_ARRAY /Iexternal/gemmlowp /wd4018 /wd4577 /DNOGDI /DTF_COMPILE_LIBRARY /Fobazel-out/x64_windows-dbg/bin/tensorflow/core/common_runtime/_objs/isolate_placer_inspection_required_ops_pass/isolate_placer_inspection_required_ops_pass.obj /c tensorflow/core/common_runtime/isolate_placer_inspection_required_ops_pass.cc
Execution platform: @local_execution_config_platform//:platform
cl : Command line warning D9035 : option 'experimental:preprocessor' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'Zc:preprocessor' instead of 'experimental:preprocessor'
INFO: Elapsed time: 1277.796s, Critical Path: 157.38s
INFO: 6477 processes: 1600 internal, 4877 local.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully

I'm not sure if these two warnings could be causing the issue:

WARNING: Download from https://mirror.bazel.build/github.com/aws/aws-sdk-cpp/archive/1.7.336.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found

WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/f402e682d0ef5598eeffc9a21a691b03e602ff58.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found

It is unclear to me why these are warnings rather than errors (does vcpkg just switch to a different mirror for 404s?)

Package info:

  Package: tensorflow-cc:x64-windows
  Vcpkg version: 2021-05-05-9f849c4c43e50d1b16186ae76681c27b0c1be9d9

My machine is fully updated and when i try to update vcpkg, there is nothing to update:

.\vcpkg update
Using local portfile versions. To update the local portfiles, use `git pull`.
No packages need updating.

git pull
Already up to date.

I am doing all of this in powershell with administrator level access

@jgehw
Copy link
Contributor

jgehw commented May 31, 2021

@a0174 can you please have a look at the end of file C:\Users\<USER>\Desktop\vcpkg\buildtrees\tensorflow-cc\build-x64-windows-dbg-out.log? There should be an error message, which is the cause. (For some strange reason I don't understand, the bazel build tool or the vcpkg wrapper exchanges stdout and stderr, so the error log you provided contains just the notification that something went wrong, but the output log will contain the error details...)

I assume the two warnings are unrelated. (Probably bazel re-tried the download and it worked the second time. Otherwise I would have expected execution to stop there.)

@JackBoosY
Copy link
Contributor

According to the official reply, I think this issue can be resolved by updating tf-cc.

@JackBoosY JackBoosY removed the depends:upstream-changes Waiting on a change to the upstream project label Jul 29, 2022
@JackBoosY JackBoosY added the category:port-update The issue is with a library, which is requesting update new revision label Jul 29, 2022
@Cheney-W Cheney-W assigned Cheney-W and unassigned JackBoosY Dec 6, 2022
@JonLiu1993
Copy link
Member

Fixed by PR #24861.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support category:port-update The issue is with a library, which is requesting update new revision
Projects
None yet
Development

No branches or pull requests

8 participants