-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Build] protocol buffer compiler error MSB8066 #23529
Comments
Could you try my branch "snnn/vcpkg2" and build the code with "--use_vcpkg" ? Then I believe the problem will be gone. |
The original error gone, however, build fails still with following error: CMake Error at external/onnxruntime_external_deps.cmake:541 (find_package):
Add the installation prefix of "wil" to CMAKE_PREFIX_PATH or set "wil_DIR" Terminal output: 2025-01-29 21:59:05,349 build [DEBUG] - Command line arguments: CMake Deprecation Warning at CMakeLists.txt:9 (cmake_policy): The cmake-policies(7) manual explains that the OLD behaviors of all -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631. 1> 1> 1> 1> Update the VERSION argument value. Or, use the ... syntax -- Populating protobuf 1> Update the VERSION argument value. Or, use the ... syntax -- 1> Update the VERSION argument value. Or, use the ... syntax -- Populating mp11 1> 1> Update the VERSION argument value. Or, use the ... syntax -- Using the single-header code from C:/GitHub/onnxruntime/build/Windows/RelWithDebInfo/_deps/nlohmann_json-src/single_include/ 1> Update the VERSION argument value. Or, use the ... syntax -- Populating gsl 1> -- Populating safeint 1> 1> 1> This warning is for project developers. Use -Wno-dev to suppress it. Generated: C:/GitHub/onnxruntime/build/Windows/RelWithDebInfo/_deps/onnx-build/onnx/onnx-ml.proto
|
WIL headers are available at There are no cmake files available in the WIL cloned repository
also tried setup WIL via vcpkg same result as in the previous comment |
I am still trying to reproduce the issue. |
This is where the WIL comes from: C:\GitHub\onnxruntime\cmake\external\onnxruntime_external_deps.cmake if(onnxruntime_USE_VCPKG AND WIN32) Wil is installed by vcpkg in the folder wilConfig.cmake is in the folder I've added the path into env:PATH list Why cannot it find it? Also tried renaming to wil-config.cmake |
It has found WIL after I explicitly set CMAKE_PREFIX_PATH to my WIL location: if(onnxruntime_USE_VCPKG AND WIN32) the build process moved forward but failed later: .\build.bat --config RelWithDebInfo --use_openvino AUTO:CPU,GPU,NPU --build_shared_lib --cmake_generator "Visual Studio 17 2022" --use_vcpkg --skip_tests CustomBuild: Done Building Project "C:\GitHub\onnxruntime\build\Windows\RelWithDebInfo_deps\onnx-build\gen_onnx_data_proto.vcxproj" (default targets) -- FAILED. Done Building Project "C:\GitHub\onnxruntime\build\Windows\RelWithDebInfo_deps\onnx-build\onnx_proto.vcxproj" (default targets) -- FAILED. Project "C:\GitHub\onnxruntime\build\Windows\RelWithDebInfo\onnxruntime_providers_openvino.vcxproj" (8) is building "C:\GitHub\onnxruntime\build\Windows\RelWithDebInfo\onnxruntim Done Building Project "C:\GitHub\onnxruntime\build\Windows\RelWithDebInfo\onnxruntime_providers_openvino.vcxproj" (default targets) -- FAILED. Done Building Project "C:\GitHub\onnxruntime\build\Windows\RelWithDebInfo\ALL_BUILD.vcxproj" (default targets) -- FAILED. Build FAILED. "C:\GitHub\onnxruntime\build\Windows\RelWithDebInfo\ALL_BUILD.vcxproj" (default target) (1) ->
Time Elapsed 00:00:03.29 |
Describe the issue
I am following instructions https://onnxruntime.ai/docs/execution-providers/OpenVINO-ExecutionProvider.html
and I cannot compile the runtime
Urgency
Not urgent, learning
Target platform
Windows
Build script
build.bat --config RelWithDebInfo --use_openvino AUTO:CPU,GPU,NPU --build_shared_lib --cmake_generator "Visual Studio 17 2022"
Error / output
CustomBuild:
"The build of 'C:\GitHub\onnxruntime\build\Windows\RelWithDebInfo\CMakeFiles\3f3cda2113739aa063b7e68a17ce2d7f\gen_onnx_proto.rule' depends on 'C:\GITHUB\ONNXRUNTIME\BUILD\WINDOWS\RELWITHDEBINF
O_DEPS\ONNX-BUILD\ONNX\ONNX-ML.PB.CC' which is produced by the build of 'C:\GitHub\onnxruntime\build\Windows\RelWithDebInfo\CMakeFiles\2d5faef842602e45854e17cc4e5d2793\onnx-ml.pb.cc.rule'. Th
e items cannot be built in parallel."
Running C++ protocol buffer compiler on C:/GitHub/onnxruntime/build/Windows/RelWithDebInfo/_deps/onnx-build/onnx/onnx-ml.proto
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'C:\GitHub\onnxruntime\build\Windows\RelWith
DebInfo\CMakeFiles\2d5faef842602e45854e17cc4e5d2793\onnx-ml.pb.cc.rule;C:\GitHub\onnxruntime\build\Windows\RelWithDebInfo\CMakeFiles\3f3cda2113739aa063b7e68a17ce2d7f\gen_onnx_proto.rule;C:\GitHu
b\onnxruntime\build\Windows\RelWithDebInfo\_deps\onnx-src\CMakeLists.txt' exited with code -1073741819. [C:\GitHub\onnxruntime\build\Windows\RelWithDebInfo\_deps\onnx-build\gen_onnx_proto.vcxpro
j]
Done Building Project "C:\GitHub\onnxruntime\build\Windows\RelWithDebInfo\_deps\onnx-build\gen_onnx_proto.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\GitHub\onnxruntime\build\Windows\RelWithDebInfo\_deps\onnx-build\gen_onnx_data_proto.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\GitHub\onnxruntime\build\Windows\RelWithDebInfo\_deps\onnx-build\onnx_proto.vcxproj" (default targets) -- FAILED.
Visual Studio Version
2022 Version 17.12.4
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered: