-
Notifications
You must be signed in to change notification settings - Fork 7.5k
[tensorflow-cc] build failure(BAZEL_VC/BAZEL_VS does not work when vs2019 and vs2022 exist on windows 11.) #21246
Copy link
Copy link
Closed
Labels
category:tool-updateThe issue is with build tool or build script, which requires update or should be executed correctlyThe issue is with build tool or build script, which requires update or should be executed correctly
Description
Host Environment
- OS: [e.g. Windows 11.]
- Compiler: msvc 2019
To Reproduce
Steps to reproduce the behavior:
install vs2019 and then install vs2022 rc,
add tensorflow to vcpkg.json
build
error log:
Auto-Configuration Error: Couldn't find undname.exe under C:\Program Files\Microsoft Visual Studio\2022\Community\VC, please check your VC installation and set BAZEL_VC environment variable correctly.
ERROR: Analysis of target '//tensorflow:tensorflow_cc.dll' failed; build aborted: Analysis failed
when i build tensorflow,
BAZEL awaly use Visual Studio 2022, even if i set BAZEL_VC BAZEL_VC_FULL_VERSION to vs 2019。
Auto-Configuration Error: Couldn't find undname.exe under C:\Program Files\Microsoft Visual Studio\2022\Community\VC, please check your VC installation and set BAZEL_VC environment variable correctly.
ERROR: Analysis of target '//tensorflow:tensorflow_cc.dll' failed; build aborted: Analysis failed
INFO: Elapsed time: 6.906s
when i uninstall vs2022, and rebuild, everything is ok.
Reactions are currently unavailable
Metadata
Metadata
Labels
category:tool-updateThe issue is with build tool or build script, which requires update or should be executed correctlyThe issue is with build tool or build script, which requires update or should be executed correctly
