microsoft / onnxruntime

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
https://onnxruntime.ai
MIT License
14.47k stars 2.9k forks source link

[Build] Unable to build with --use_dml #21568

Open tranlm opened 2 months ago

tranlm commented 2 months ago

Describe the issue

I need to build the runtime with the --use_dml option. However, each time I do I keep getting an error message saying

The C++ Standard Library forbids macroizing the keyword "bool".

Urgency

Not sure if it's a regression in functionality, or an environment issue. I haven't changed the code and am unable to build.

Target platform

AMD x64

Build script

I'm following the instructions here (Build from source). So I'm just running

build.bat --build_shared_lib --skip_tests --parallel --use_dml --config Release

Error / output

Microsoft Windows [Version 10.0.22631.3958] (c) Microsoft Corporation. All rights reserved.

C:\Users\Tranl>cd C:\GitHub\onnxruntime

C:\GitHub\onnxruntime>build.bat --build_shared_lib --skip_tests --parallel --use_dml --config Release 2024-07-30 16:04:10,923 build [DEBUG] - Command line arguments: --build_dir 'C:\GitHub\onnxruntime\build\Windows' --build_shared_lib --skip_tests --parallel --use_dml --config Release Namespace(build_dir='C:\GitHub\onnxruntime\\build\Windows', config=['Release'], update=False, build=False, clean=False, parallel=0, nvcc_threads=-1, test=False, skip_tests=True, compile_no_warning_as_error=False, enable_nvtx_profile=False, enable_memory_profile=False, enable_training=False, enable_training_apis=False, enable_training_ops=False, enable_nccl=False, mpi_home=None, nccl_home=None, use_mpi=False, enable_onnx_tests=False, path_to_protoc_exe=None, fuzz_testing=False, enable_symbolic_shape_infer_tests=False, gen_doc=None, gen_api_doc=False, use_cuda=False, cuda_version=None, cuda_home=None, cudnn_home=None, enable_cuda_line_info=False, enable_cuda_nhwc_ops=False, enable_pybind=False, build_wheel=False, wheel_name_suffix=None, skip_keras_test=False, build_csharp=False, build_nuget=False, msbuild_extra_options=None, build_java=False, build_nodejs=False, build_objc=False, build_shared_lib=True, build_apple_framework=False, cmake_extra_defines=None, target=None, x86=False, rv64=False, arm=False, arm64=False, arm64ec=False, buildasx=False, riscv_toolchain_root='', riscv_qemu_path='', msvc_toolset=None, windows_sdk_version=None, android=False, android_abi='arm64-v8a', android_api=27, android_sdk_path='', android_ndk_path='', android_cpp_shared=False, android_run_emulator=False, use_gdk=False, gdk_edition='.', gdk_platform='Scarlett', ios=False, visionos=False, macos=None, apple_sysroot='', ios_toolchain_file='', visionos_toolchain_file='', xcode_code_signing_team_id='', xcode_code_signing_identity='', cmake_generator='Visual Studio 17 2022', osx_arch='x86_64', apple_deploy_target=None, enable_address_sanitizer=False, use_binskim_compliant_compile_flags=False, disable_memleak_checker=False, build_wasm=False, build_wasm_static_lib=False, emsdk_version='3.1.59', enable_wasm_simd=False, enable_wasm_threads=False, disable_wasm_exception_catching=False, enable_wasm_api_exception_catching=False, enable_wasm_exception_throwing_override=True, wasm_run_tests_in_browser=False, enable_wasm_profiling=False, enable_wasm_debug_info=False, wasm_malloc=None, emscripten_settings=None, use_extensions=False, extensions_overridden_path=None, cmake_path='cmake', ctest_path='ctest', skip_submodule_sync=False, use_mimalloc=False, use_dnnl=False, dnnl_gpu_runtime='', dnnl_opencl_root='', use_openvino=None, dnnl_aarch64_runtime='', dnnl_acl_root='', use_coreml=False, use_webnn=False, use_snpe=False, snpe_root=None, use_nnapi=False, use_vsinpu=False, nnapi_min_api=None, use_jsep=False, use_qnn=False, qnn_home=None, use_rknpu=False, use_preinstalled_eigen=False, eigen_path=None, enable_msinternal=False, llvm_path=None, use_vitisai=False, use_tvm=False, tvm_cuda_runtime=False, use_tvm_hash=False, use_tensorrt=False, use_tensorrt_builtin_parser=True, use_tensorrt_oss_parser=False, tensorrt_home=None, test_all_timeout='10800', use_migraphx=False, migraphx_home=None, use_full_protobuf=False, llvm_config='', skip_onnx_tests=False, skip_winml_tests=False, skip_nodejs_tests=False, enable_msvc_static_runtime=False, use_dml=True, dml_path='', use_winml=False, winml_root_namespace_override=None, dml_external_project=False, use_telemetry=False, enable_wcos=False, enable_lto=False, enable_transformers_tool_test=False, use_acl=None, acl_home=None, acl_libs=None, use_armnn=False, armnn_relu=False, armnn_bn=False, armnn_home=None, armnn_libs=None, build_micro_benchmarks=False, minimal_build=None, include_ops_by_config=None, enable_reduced_operator_type_support=False, disable_contrib_ops=False, disable_ml_ops=False, disable_rtti=False, disable_types=[], disable_exceptions=False, rocm_version=None, use_rocm=False, rocm_home=None, code_coverage=False, enable_lazy_tensor=False, ms_experimental=False, enable_external_custom_op_schemas=False, external_graph_transformer_path=None, enable_cuda_profiling=False, use_cann=False, cann_home=None, enable_rocm_profiling=False, use_xnnpack=False, use_azure=False, use_cache=False, use_triton_kernel=False, use_lock_free_queue=False) 2024-07-30 16:04:10,938 build [DEBUG] - Defaulting to running update, build [and test for native builds]. 2024-07-30 16:04:10,953 build [INFO] - Build started 2024-07-30 16:04:10,953 build [INFO] - git submodule sync --recursive Synchronizing submodule url for 'cmake/external/emsdk' Synchronizing submodule url for 'cmake/external/libprotobuf-mutator' Synchronizing submodule url for 'cmake/external/onnx' Synchronizing submodule url for 'cmake/external/onnx/third_party/benchmark' Synchronizing submodule url for 'cmake/external/onnx/third_party/pybind11' 2024-07-30 16:04:11,767 build [INFO] - git submodule update --init --recursive 2024-07-30 16:04:12,428 build [INFO] - Generating CMake build tree 2024-07-30 16:04:12,428 build [INFO] - C:\Program Files\CMake\bin\cmake.EXE C:\GitHub\onnxruntime\cmake -Donnxruntime_RUN_ONNX_TESTS=OFF -Donnxruntime_GENERATE_TEST_REPORTS=ON -DPython_EXECUTABLE=C:\Users\Tranl\anaconda3\python.exe -DPYTHON_EXECUTABLE=C:\Users\Tranl\anaconda3\python.exe -Donnxruntime_USE_MIMALLOC=OFF -Donnxruntime_ENABLE_PYTHON=OFF -Donnxruntime_BUILD_CSHARP=OFF -Donnxruntime_BUILD_JAVA=OFF -Donnxruntime_BUILD_NODEJS=OFF -Donnxruntime_BUILD_OBJC=OFF -Donnxruntime_BUILD_SHARED_LIB=ON -Donnxruntime_BUILD_APPLE_FRAMEWORK=OFF -Donnxruntime_USE_DNNL=OFF -Donnxruntime_USE_NNAPI_BUILTIN=OFF -Donnxruntime_USE_VSINPU=OFF -Donnxruntime_USE_RKNPU=OFF -Donnxruntime_USE_LLVM=OFF -Donnxruntime_ENABLE_MICROSOFT_INTERNAL=OFF -Donnxruntime_USE_VITISAI=OFF -Donnxruntime_USE_TENSORRT=OFF -Donnxruntime_USE_TENSORRT_BUILTIN_PARSER=ON -Donnxruntime_USE_TVM=OFF -Donnxruntime_TVM_CUDA_RUNTIME=OFF -Donnxruntime_TVM_USE_HASH=OFF -Donnxruntime_USE_MIGRAPHX=OFF -Donnxruntime_DISABLE_CONTRIB_OPS=OFF -Donnxruntime_DISABLE_ML_OPS=OFF -Donnxruntime_DISABLE_RTTI=OFF -Donnxruntime_DISABLE_EXCEPTIONS=OFF -Donnxruntime_MINIMAL_BUILD=OFF -Donnxruntime_EXTENDED_MINIMAL_BUILD=OFF -Donnxruntime_MINIMAL_BUILD_CUSTOM_OPS=OFF -Donnxruntime_REDUCED_OPS_BUILD=OFF -Donnxruntime_USE_DML=ON -Donnxruntime_USE_WINML=OFF -Donnxruntime_BUILD_MS_EXPERIMENTAL_OPS=OFF -Donnxruntime_USE_TELEMETRY=OFF -Donnxruntime_ENABLE_LTO=OFF -Donnxruntime_USE_ACL=OFF -Donnxruntime_USE_ACL_1902=OFF -Donnxruntime_USE_ACL_1905=OFF -Donnxruntime_USE_ACL_1908=OFF -Donnxruntime_USE_ACL_2002=OFF -Donnxruntime_USE_ACL_2308=OFF -Donnxruntime_USE_ARMNN=OFF -Donnxruntime_ARMNN_RELU_USE_CPU=ON -Donnxruntime_ARMNN_BN_USE_CPU=ON -Donnxruntime_USE_JSEP=OFF -Donnxruntime_ENABLE_NVTX_PROFILE=OFF -Donnxruntime_ENABLE_TRAINING=OFF -Donnxruntime_ENABLE_TRAINING_OPS=OFF -Donnxruntime_ENABLE_TRAINING_APIS=OFF -Donnxruntime_ENABLE_CPU_FP16_OPS=OFF -Donnxruntime_USE_NCCL=OFF -Donnxruntime_BUILD_BENCHMARKS=OFF -Donnxruntime_USE_ROCM=OFF -Donnxruntime_GCOV_COVERAGE=OFF -Donnxruntime_USE_MPI=OFF -Donnxruntime_ENABLE_MEMORY_PROFILE=OFF -Donnxruntime_ENABLE_CUDA_LINE_NUMBER_INFO=OFF -Donnxruntime_USE_CUDA_NHWC_OPS=OFF -Donnxruntime_BUILD_WEBASSEMBLY_STATIC_LIB=OFF -Donnxruntime_ENABLE_WEBASSEMBLY_EXCEPTION_CATCHING=ON -Donnxruntime_ENABLE_WEBASSEMBLY_API_EXCEPTION_CATCHING=OFF -Donnxruntime_ENABLE_WEBASSEMBLY_EXCEPTION_THROWING=ON -Donnxruntime_WEBASSEMBLY_RUN_TESTS_IN_BROWSER=OFF -Donnxruntime_ENABLE_WEBASSEMBLY_THREADS=OFF -Donnxruntime_ENABLE_WEBASSEMBLY_DEBUG_INFO=OFF -Donnxruntime_ENABLE_WEBASSEMBLY_PROFILING=OFF -Donnxruntime_ENABLE_LAZY_TENSOR=OFF -Donnxruntime_ENABLE_EXTERNAL_CUSTOM_OP_SCHEMAS=OFF -Donnxruntime_ENABLE_CUDA_PROFILING=OFF -Donnxruntime_ENABLE_ROCM_PROFILING=OFF -Donnxruntime_USE_XNNPACK=OFF -Donnxruntime_USE_WEBNN=OFF -Donnxruntime_USE_CANN=OFF -Donnxruntime_USE_TRITON_KERNEL=OFF -Donnxruntime_DISABLE_FLOAT8_TYPES=OFF -Donnxruntime_DISABLE_SPARSE_TENSORS=OFF -Donnxruntime_DISABLE_OPTIONAL_TYPE=OFF -DCMAKE_VS_GLOBALS=UseMultiToolTask=true;EnforceProcessCountAcrossBuilds=true -DCMAKE_TLS_VERIFY=ON -DFETCHCONTENT_QUIET=OFF -DONNX_USE_MSVC_STATIC_RUNTIME=OFF -Dprotobuf_MSVC_STATIC_RUNTIME=OFF -Dgtest_force_shared_crt=ON -DCMAKE_MSVC_DEBUG_INFORMATION_FORMAT=ProgramDatabase -A x64 -T host=x64 -G Visual Studio 17 2022 -DCMAKE_C_FLAGS=/MP -DCMAKE_CXX_FLAGS=/MP -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=C:\GitHub\onnxruntime\build\Windows/Release/installed CMake Deprecation Warning at CMakeLists.txt:14 (cmake_policy): The OLD behavior for policy CMP0104 will be removed from a future version of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.

-- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631. CMake Warning (dev) at CMakeLists.txt:60 (include): Policy CMP0145 is not set: The Dart and FindDart modules are removed. Run "cmake --help-policy CMP0145" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/Dart.cmake:47 (message): Policy CMP0145 is not set: The Dart and FindDart modules are removed. Run "cmake --help-policy CMP0145" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): CMakeLists.txt:60 (include) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/Dart.cmake:57 (find_package): Policy CMP0144 is not set: find_package uses upper-case _ROOT variables. Run "cmake --help-policy CMP0144" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

CMake variable DART_ROOT is set to:

DART_ROOT-NOTFOUND

For compatibility, find_package is ignoring the variable, but code in a .cmake module might still use it. Call Stack (most recent call first): CMakeLists.txt:60 (include) This warning is for project developers. Use -Wno-dev to suppress it.

Patch found: C:/Program Files/Git/usr/bin/patch.exe Loading Dependencies URLs ... Loading Dependencies ... CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message): Calling FetchContent_Populate(abseil_cpp) is deprecated, call FetchContent_MakeAvailable(abseil_cpp) instead. Policy CMP0169 can be set to OLD to allow FetchContent_Populate(abseil_cpp) to be called directly for now, but the ability to call it with declared details will be removed completely in a future version. Call Stack (most recent call first): external/helper_functions.cmake:139 (FetchContent_Populate) external/abseil-cpp.cmake:33 (onnxruntime_fetchcontent_makeavailable) external/onnxruntime_external_deps.cmake:32 (include) CMakeLists.txt:598 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Populating abseil_cpp -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631. -- Configuring done (0.2s) -- Generating done (0.1s) -- Build files have been written to: C:/GitHub/onnxruntime/build/Windows/Release/_deps/abseil_cpp-subbuild MSBuild version 17.10.4+10fbfbf2e for .NET Framework

1>Checking Build System 1> Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/abseil_cpp-subbuild/CMakeLists.txt Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/abseil_cpp-subbuild/CMakeLists.txt -- Abseil source dir:C:/GitHub/onnxruntime/build/Windows/Release/_deps/abseil_cpp-src CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message): Calling FetchContent_Populate(date) is deprecated, call FetchContent_MakeAvailable(date) instead. Policy CMP0169 can be set to OLD to allow FetchContent_Populate(date) to be called directly for now, but the ability to call it with declared details will be removed completely in a future version. Call Stack (most recent call first): external/helper_functions.cmake:139 (FetchContent_Populate) external/onnxruntime_external_deps.cmake:251 (onnxruntime_fetchcontent_makeavailable) CMakeLists.txt:598 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Populating date -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631. -- Configuring done (0.1s) -- Generating done (0.1s) -- Build files have been written to: C:/GitHub/onnxruntime/build/Windows/Release/_deps/date-subbuild MSBuild version 17.10.4+10fbfbf2e for .NET Framework

1>Checking Build System 1> Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/date-subbuild/CMakeLists.txt Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/date-subbuild/CMakeLists.txt CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message): Calling FetchContent_Populate(safeint) is deprecated, call FetchContent_MakeAvailable(safeint) instead. Policy CMP0169 can be set to OLD to allow FetchContent_Populate(safeint) to be called directly for now, but the ability to call it with declared details will be removed completely in a future version. Call Stack (most recent call first): external/onnxruntime_external_deps.cmake:394 (FetchContent_Populate) CMakeLists.txt:598 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Populating safeint -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631. -- Configuring done (0.1s) -- Generating done (0.1s) -- Build files have been written to: C:/GitHub/onnxruntime/build/Windows/Release/_deps/safeint-subbuild MSBuild version 17.10.4+10fbfbf2e for .NET Framework

1>Checking Build System 1> Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/safeint-subbuild/CMakeLists.txt Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/safeint-subbuild/CMakeLists.txt CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message): Calling FetchContent_Populate(utf8_range) is deprecated, call FetchContent_MakeAvailable(utf8_range) instead. Policy CMP0169 can be set to OLD to allow FetchContent_Populate(utf8_range) to be called directly for now, but the ability to call it with declared details will be removed completely in a future version. Call Stack (most recent call first): external/helper_functions.cmake:139 (FetchContent_Populate) external/onnxruntime_external_deps.cmake:396 (onnxruntime_fetchcontent_makeavailable) CMakeLists.txt:598 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Populating utf8_range -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631. -- Configuring done (0.1s) -- Generating done (0.1s) -- Build files have been written to: C:/GitHub/onnxruntime/build/Windows/Release/_deps/utf8_range-subbuild MSBuild version 17.10.4+10fbfbf2e for .NET Framework

1>Checking Build System 1> Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/utf8_range-subbuild/CMakeLists.txt Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/utf8_range-subbuild/CMakeLists.txt CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message): Calling FetchContent_Populate(Protobuf) is deprecated, call FetchContent_MakeAvailable(Protobuf) instead. Policy CMP0169 can be set to OLD to allow FetchContent_Populate(Protobuf) to be called directly for now, but the ability to call it with declared details will be removed completely in a future version. Call Stack (most recent call first): external/helper_functions.cmake:139 (FetchContent_Populate) external/onnxruntime_external_deps.cmake:400 (onnxruntime_fetchcontent_makeavailable) CMakeLists.txt:598 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Populating protobuf -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631. -- Configuring done (0.1s) -- Generating done (0.1s) -- Build files have been written to: C:/GitHub/onnxruntime/build/Windows/Release/_deps/protobuf-subbuild MSBuild version 17.10.4+10fbfbf2e for .NET Framework

1>Checking Build System 1> Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/protobuf-subbuild/CMakeLists.txt Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/protobuf-subbuild/CMakeLists.txt

-- 3.21.12.0 -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message): Calling FetchContent_Populate(nlohmann_json) is deprecated, call FetchContent_MakeAvailable(nlohmann_json) instead. Policy CMP0169 can be set to OLD to allow FetchContent_Populate(nlohmann_json) to be called directly for now, but the ability to call it with declared details will be removed completely in a future version. Call Stack (most recent call first): external/helper_functions.cmake:139 (FetchContent_Populate) external/onnxruntime_external_deps.cmake:400 (onnxruntime_fetchcontent_makeavailable) CMakeLists.txt:598 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Populating nlohmann_json -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631. -- Configuring done (0.1s) -- Generating done (0.1s) -- Build files have been written to: C:/GitHub/onnxruntime/build/Windows/Release/_deps/nlohmann_json-subbuild MSBuild version 17.10.4+10fbfbf2e for .NET Framework

1>Checking Build System 1> Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/nlohmann_json-subbuild/CMakeLists.txt Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/nlohmann_json-subbuild/CMakeLists.txt CMake Deprecation Warning at C:/GitHub/onnxruntime/build/Windows/Release/_deps/nlohmann_json-src/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

-- Using the single-header code from C:/GitHub/onnxruntime/build/Windows/Release/_deps/nlohmann_json-src/single_include/ CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message): Calling FetchContent_Populate(mp11) is deprecated, call FetchContent_MakeAvailable(mp11) instead. Policy CMP0169 can be set to OLD to allow FetchContent_Populate(mp11) to be called directly for now, but the ability to call it with declared details will be removed completely in a future version. Call Stack (most recent call first): external/helper_functions.cmake:139 (FetchContent_Populate) external/onnxruntime_external_deps.cmake:400 (onnxruntime_fetchcontent_makeavailable) CMakeLists.txt:598 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Populating mp11 -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631. -- Configuring done (0.1s) -- Generating done (0.1s) -- Build files have been written to: C:/GitHub/onnxruntime/build/Windows/Release/_deps/mp11-subbuild MSBuild version 17.10.4+10fbfbf2e for .NET Framework

1>Checking Build System 1> Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/mp11-subbuild/CMakeLists.txt Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/mp11-subbuild/CMakeLists.txt CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message): Calling FetchContent_Populate(GSL) is deprecated, call FetchContent_MakeAvailable(GSL) instead. Policy CMP0169 can be set to OLD to allow FetchContent_Populate(GSL) to be called directly for now, but the ability to call it with declared details will be removed completely in a future version. Call Stack (most recent call first): external/helper_functions.cmake:139 (FetchContent_Populate) external/onnxruntime_external_deps.cmake:400 (onnxruntime_fetchcontent_makeavailable) CMakeLists.txt:598 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Populating gsl -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631. -- Configuring done (0.1s) -- Generating done (0.1s) -- Build files have been written to: C:/GitHub/onnxruntime/build/Windows/Release/_deps/gsl-subbuild MSBuild version 17.10.4+10fbfbf2e for .NET Framework

1>Checking Build System 1> Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/gsl-subbuild/CMakeLists.txt Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/gsl-subbuild/CMakeLists.txt CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message): Calling FetchContent_Populate(flatbuffers) is deprecated, call FetchContent_MakeAvailable(flatbuffers) instead. Policy CMP0169 can be set to OLD to allow FetchContent_Populate(flatbuffers) to be called directly for now, but the ability to call it with declared details will be removed completely in a future version. Call Stack (most recent call first): external/helper_functions.cmake:139 (FetchContent_Populate) external/onnxruntime_external_deps.cmake:400 (onnxruntime_fetchcontent_makeavailable) CMakeLists.txt:598 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Populating flatbuffers -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631. -- Configuring done (0.1s) -- Generating done (0.1s) -- Build files have been written to: C:/GitHub/onnxruntime/build/Windows/Release/_deps/flatbuffers-subbuild MSBuild version 17.10.4+10fbfbf2e for .NET Framework

1>Checking Build System 1> Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/flatbuffers-subbuild/CMakeLists.txt Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/flatbuffers-subbuild/CMakeLists.txt -- Proceeding with version: 23.5.26.0 -- CMAKE_CXX_FLAGS: /MP /Zc:__cplusplus /EHsc /wd26812 -DEIGEN_HAS_C99_MATH -DCPUINFO_SUPPORTED CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message): Calling FetchContent_Populate(pytorch_cpuinfo) is deprecated, call FetchContent_MakeAvailable(pytorch_cpuinfo) instead. Policy CMP0169 can be set to OLD to allow FetchContent_Populate(pytorch_cpuinfo) to be called directly for now, but the ability to call it with declared details will be removed completely in a future version. Call Stack (most recent call first): external/helper_functions.cmake:139 (FetchContent_Populate) external/onnxruntime_external_deps.cmake:400 (onnxruntime_fetchcontent_makeavailable) CMakeLists.txt:598 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Populating pytorch_cpuinfo -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631. -- Configuring done (0.1s) -- Generating done (0.1s) -- Build files have been written to: C:/GitHub/onnxruntime/build/Windows/Release/_deps/pytorch_cpuinfo-subbuild MSBuild version 17.10.4+10fbfbf2e for .NET Framework

1>Checking Build System 1> Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/pytorch_cpuinfo-subbuild/CMakeLists.txt Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/pytorch_cpuinfo-subbuild/CMakeLists.txt CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message): Calling FetchContent_Populate(pytorch_clog) is deprecated, call FetchContent_MakeAvailable(pytorch_clog) instead. Policy CMP0169 can be set to OLD to allow FetchContent_Populate(pytorch_clog) to be called directly for now, but the ability to call it with declared details will be removed completely in a future version. Call Stack (most recent call first): external/helper_functions.cmake:139 (FetchContent_Populate) external/onnxruntime_external_deps.cmake:400 (onnxruntime_fetchcontent_makeavailable) CMakeLists.txt:598 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Populating pytorch_clog -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631. -- Configuring done (0.1s) -- Generating done (0.1s) -- Build files have been written to: C:/GitHub/onnxruntime/build/Windows/Release/_deps/pytorch_clog-subbuild MSBuild version 17.10.4+10fbfbf2e for .NET Framework

1>Checking Build System 1> Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/pytorch_clog-subbuild/CMakeLists.txt Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/pytorch_clog-subbuild/CMakeLists.txt CMake Deprecation Warning at C:/GitHub/onnxruntime/build/Windows/Release/_deps/pytorch_clog-src/deps/clog/CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message): Calling FetchContent_Populate(googletest) is deprecated, call FetchContent_MakeAvailable(googletest) instead. Policy CMP0169 can be set to OLD to allow FetchContent_Populate(googletest) to be called directly for now, but the ability to call it with declared details will be removed completely in a future version. Call Stack (most recent call first): external/helper_functions.cmake:139 (FetchContent_Populate) external/onnxruntime_external_deps.cmake:428 (onnxruntime_fetchcontent_makeavailable) CMakeLists.txt:598 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Populating googletest -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631. -- Configuring done (0.1s) -- Generating done (0.1s) -- Build files have been written to: C:/GitHub/onnxruntime/build/Windows/Release/_deps/googletest-subbuild MSBuild version 17.10.4+10fbfbf2e for .NET Framework

1>Checking Build System 1> Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/googletest-subbuild/CMakeLists.txt Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/googletest-subbuild/CMakeLists.txt CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message): Calling FetchContent_Populate(eigen) is deprecated, call FetchContent_MakeAvailable(eigen) instead. Policy CMP0169 can be set to OLD to allow FetchContent_Populate(eigen) to be called directly for now, but the ability to call it with declared details will be removed completely in a future version. Call Stack (most recent call first): external/eigen.cmake:12 (FetchContent_Populate) external/onnxruntime_external_deps.cmake:500 (include) CMakeLists.txt:598 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Populating eigen -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631. -- Configuring done (0.1s) -- Generating done (0.1s) -- Build files have been written to: C:/GitHub/onnxruntime/build/Windows/Release/_deps/eigen-subbuild MSBuild version 17.10.4+10fbfbf2e for .NET Framework

1>Checking Build System 1> Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/eigen-subbuild/CMakeLists.txt Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/eigen-subbuild/CMakeLists.txt CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message): Calling FetchContent_Populate(microsoft_wil) is deprecated, call FetchContent_MakeAvailable(microsoft_wil) instead. Policy CMP0169 can be set to OLD to allow FetchContent_Populate(microsoft_wil) to be called directly for now, but the ability to call it with declared details will be removed completely in a future version. Call Stack (most recent call first): external/helper_functions.cmake:139 (FetchContent_Populate) external/wil.cmake:14 (onnxruntime_fetchcontent_makeavailable) external/onnxruntime_external_deps.cmake:501 (include) CMakeLists.txt:598 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Populating microsoft_wil -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631. -- Configuring done (0.1s) -- Generating done (0.1s) -- Build files have been written to: C:/GitHub/onnxruntime/build/Windows/Release/_deps/microsoft_wil-subbuild MSBuild version 17.10.4+10fbfbf2e for .NET Framework

1>Checking Build System 1> Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/microsoft_wil-subbuild/CMakeLists.txt Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/microsoft_wil-subbuild/CMakeLists.txt CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message): Calling FetchContent_Populate(onnx) is deprecated, call FetchContent_MakeAvailable(onnx) instead. Policy CMP0169 can be set to OLD to allow FetchContent_Populate(onnx) to be called directly for now, but the ability to call it with declared details will be removed completely in a future version. Call Stack (most recent call first): external/helper_functions.cmake:139 (FetchContent_Populate) external/onnxruntime_external_deps.cmake:504 (onnxruntime_fetchcontent_makeavailable) CMakeLists.txt:598 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Populating onnx -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631. -- Configuring done (0.1s) -- Generating done (0.1s) -- Build files have been written to: C:/GitHub/onnxruntime/build/Windows/Release/_deps/onnx-subbuild MSBuild version 17.10.4+10fbfbf2e for .NET Framework

1>Checking Build System 1> Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/onnx-subbuild/CMakeLists.txt Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/onnx-subbuild/CMakeLists.txt CMake Warning (dev) at C:/GitHub/onnxruntime/build/Windows/Release/_deps/onnx-src/CMakeLists.txt:107 (find_package): Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules are removed. Run "cmake --help-policy CMP0148" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers. Use -Wno-dev to suppress it.

Generated: C:/GitHub/onnxruntime/build/Windows/Release/_deps/onnx-build/onnx/onnx-ml.proto Generated: C:/GitHub/onnxruntime/build/Windows/Release/_deps/onnx-build/onnx/onnx-operators-ml.proto Generated: C:/GitHub/onnxruntime/build/Windows/Release/_deps/onnx-build/onnx/onnx-data.proto

-- **** Summary **** -- CMake version : 3.30.1 -- CMake command : C:/Program Files/CMake/bin/cmake.exe -- System : Windows -- C++ compiler : C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe -- C++ compiler version : 19.40.33813.0 -- CXX flags : /MP /Zc:__cplusplus /EHsc /wd26812 -DEIGEN_HAS_C99_MATH -DCPUINFO_SUPPORTED /EHsc /wd26812 -- Build type : Release -- Compile definitions : ORT_ENABLE_STREAM;EIGEN_MPL2_ONLY;EIGEN_HAS_CONSTEXPR;EIGEN_HAS_VARIADIC_TEMPLATES;EIGEN_HAS_CXX11_MATH;EIGEN_HAS_CXX11_ATOMIC;EIGEN_STRONG_INLINE=inline;__STDC_FORMAT_MACROS -- CMAKE_PREFIX_PATH : C:\GitHub\onnxruntime\build\Windows/Release/installed -- CMAKE_INSTALL_PREFIX : C:/Program Files/onnxruntime -- CMAKE_MODULE_PATH : C:/GitHub/onnxruntime/cmake/external

-- ONNX version : 1.16.1 -- ONNX NAMESPACE : onnx -- ONNX_USE_LITE_PROTO : ON -- USE_PROTOBUF_SHARED_LIBS : OFF -- Protobuf_USE_STATIC_LIBS : ON -- ONNX_DISABLE_EXCEPTIONS : OFF -- ONNX_DISABLE_STATIC_REGISTRATION : OFF -- ONNX_WERROR : OFF -- ONNX_BUILD_TESTS : OFF -- ONNX_BUILD_BENCHMARKS : OFF -- ONNX_BUILD_SHARED_LIBS : -- BUILD_SHARED_LIBS : OFF

-- Protobuf compiler : -- Protobuf includes : -- Protobuf libraries : -- BUILD_ONNX_PYTHON : OFF Finished fetching external dependencies CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message): Calling FetchContent_Populate(directx_headers) is deprecated, call FetchContent_MakeAvailable(directx_headers) instead. Policy CMP0169 can be set to OLD to allow FetchContent_Populate(directx_headers) to be called directly for now, but the ability to call it with declared details will be removed completely in a future version. Call Stack (most recent call first): external/dml.cmake:109 (FetchContent_Populate) CMakeLists.txt:1517 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Populating directx_headers -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631. -- Configuring done (0.1s) -- Generating done (0.1s) -- Build files have been written to: C:/GitHub/onnxruntime/build/Windows/Release/_deps/directx_headers-subbuild MSBuild version 17.10.4+10fbfbf2e for .NET Framework

1>Checking Build System 1> Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/directx_headers-subbuild/CMakeLists.txt Building Custom Rule C:/GitHub/onnxruntime/build/Windows/Release/_deps/directx_headers-subbuild/CMakeLists.txt CMake Warning at CMakeLists.txt:1640 (message): MPI and NCCL are disabled because build is on Windows or USE_NCCL is set to OFF.

-- Configuring done (20.1s) -- Generating done (12.0s) -- Build files have been written to: C:/GitHub/onnxruntime/build/Windows/Release 2024-07-30 16:04:44,891 build [INFO] - C:\Program Files\CMake\bin\cmake.EXE --build C:\GitHub\onnxruntime\build\Windows\Release --config Release --target RESTORE_PACKAGES MSBuild version 17.10.4+10fbfbf2e for .NET Framework

Checking File Globs 1>Checking Build System Building Custom Rule C:/GitHub/onnxruntime/cmake/CMakeLists.txt Generating C:/GitHub/onnxruntime/build/Windows/packages/Microsoft.AI.DirectML.1.15.0/bin/x64-win/DirectML. lib, C:/GitHub/onnxruntime/build/Windows/packages/Microsoft.AI.DirectML.1.15.0/bin/x86-win/DirectML.lib, C :/GitHub/onnxruntime/build/Windows/packages/Microsoft.AI.DirectML.1.15.0/bin/arm-win/DirectML.lib, C:/GitH ub/onnxruntime/build/Windows/packages/Microsoft.AI.DirectML.1.15.0/bin/arm64-win/DirectML.lib All packages listed in packages.config are already installed. Building Custom Rule C:/GitHub/onnxruntime/cmake/CMakeLists.txt 2024-07-30 16:04:46,512 build [INFO] - Building targets for Release configuration 2024-07-30 16:04:46,512 build [INFO] - C:\Program Files\CMake\bin\cmake.EXE --build C:\GitHub\onnxruntime\build\Windows\Release --config Release -- /maxcpucount:16 /p:CL_MPCount=15 /nodeReuse:False MSBuild version 17.10.4+10fbfbf2e for .NET Framework

Checking File Globs Building Custom Rule C:/GitHub/onnxruntime/cmake/CMakeLists.txt Building Custom Rule C:/GitHub/onnxruntime/cmake/CMakeLists.txt Building Custom Rule C:/GitHub/onnxruntime/cmake/CMakeLists.txt Building Custom Rule C:/GitHub/onnxruntime/cmake/CMakeLists.txt absl_log_severity.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\base\ Release\absl_log_severity.lib custom_op_invalid_library.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release\Release\custom_op_invalid _library.dll absl_spinlock_wait.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\base \Release\absl_spinlock_wait.lib absl_int128.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\numeric\Rel ease\absl_int128.lib custom_op_local_function.cc absl_flags_commandlineflag_internal.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cp p-build\absl\flags\Release\absl_flags_commandlineflag_internal.lib absl_exponential_biased.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl \profiling\Release\absl_exponential_biased.lib custom_op.cc absl_utf8_for_code_point.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\abs l\debugging\Release\absl_utf8_for_code_point.lib absl_decode_rust_punycode.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\ab sl\debugging\Release\absl_decode_rust_punycode.lib absl_strerror.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\base\Rele ase\absl_strerror.lib Generating C:/GitHub/onnxruntime/build/Windows/packages/Microsoft.AI.DirectML.1.15.0/bin/x64-win/DirectML. lib, C:/GitHub/onnxruntime/build/Windows/packages/Microsoft.AI.DirectML.1.15.0/bin/x86-win/DirectML.lib, C :/GitHub/onnxruntime/build/Windows/packages/Microsoft.AI.DirectML.1.15.0/bin/arm-win/DirectML.lib, C:/GitH ub/onnxruntime/build/Windows/packages/Microsoft.AI.DirectML.1.15.0/bin/arm64-win/DirectML.lib absl_civil_time.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\time\Re lease\absl_civil_time.lib absl_raw_logging_internal.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\ab sl\base\Release\absl_raw_logging_internal.lib absl_demangle_rust.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\debu gging\Release\absl_demangle_rust.lib absl_time_zone.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\time\Rel ease\absl_time_zone.lib Building Custom Rule C:/GitHub/onnxruntime/cmake/CMakeLists.txt absl_throw_delegate.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\bas e\Release\absl_throw_delegate.lib absl_bad_variant_access.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl \types\Release\absl_bad_variant_access.lib absl_log_internal_nullguard.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\ absl\log\Release\absl_log_internal_nullguard.lib absl_debugging_internal.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl \debugging\Release\absl_debugging_internal.lib C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include\xkeycheck.h(52,9): error C2220: the following warning is treated as an error [C:\GitHub\onnxruntime\build\Windows\Release\cust om_op_get_const_input_test_library.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include\xkeycheck.h(52,9): error C2220: the following warning is treated as an error [C:\GitHub\onnxruntime\build\Windows\Release\cust om_op_local_function.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include\xkeycheck.h(52,9): warning C4005: 'bool': macro redefinition [C:\GitHub\onnxruntime\build\Windows\Release\custom_op_getconst input_test_library.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include\xkeycheck.h(52,9): warning C4005: 'bool': macro redefinition [C:\GitHub\onnxruntime\build\Windows\Release\custom_op_local_func tion.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include\xkeycheck.h(54,1): error C1189: #error: The C++ Standard Library forbids macroizing the keyword "bool". Enable warning C4005 to find the forbidden define. [C:\GitHub\onnxruntime\build\Windows\Release\custom_op_local_function.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include\xkeycheck.h(54,1): error C1189: #error: The C++ Standard Library forbids macroizing the keyword "bool". Enable warning C4005 to find the forbidden define. [C:\GitHub\onnxruntime\build\Windows\Release\custom_op_get_const_input_test_li brary.vcxproj] onnxruntime_providers_shared.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release\Release\onnxruntime_pr oviders_shared.dll absl_stacktrace.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\debuggi ng\Release\absl_stacktrace.lib absl_demangle_internal.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\ debugging\Release\absl_demangle_internal.lib absl_cordz_functions.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\st rings\Release\absl_cordz_functions.lib libprotobuf-lite.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\protobuf-build\Release\libpr otobuf-lite.lib absl_base.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\base\Release\ absl_base.lib absl_malloc_internal.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\ba se\Release\absl_malloc_internal.lib absl_strings_internal.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\s trings\Release\absl_strings_internal.lib absl_crc_cpu_detect.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\crc \Release\absl_crc_cpu_detect.lib libprotobuf.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\protobuf-build\Release\libprotobu f.lib absl_string_view.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\string s\Release\absl_string_view.lib absl_graphcycles_internal.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\ab sl\synchronization\Release\absl_graphcycles_internal.lib absl_crc_internal.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\crc\R elease\absl_crc_internal.lib absl_log_internal_conditions.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build \absl\log\Release\absl_log_internal_conditions.lib absl_city.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\hash\Release\ absl_city.lib All packages listed in packages.config are already installed. libprotoc.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\protobuf-build\Release\libprotoc.li b absl_bad_optional_access.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\abs l\types\Release\absl_bad_optional_access.lib absl_low_level_hash.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\has h\Release\absl_low_level_hash.lib absl_strings.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\strings\Re lease\absl_strings.lib protoc.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\protobuf-build\Release\protoc.exe absl_log_internal_fnmatch.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\ab sl\log\Release\absl_log_internal_fnmatch.lib absl_flags_commandlineflag.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\a bsl\flags\Release\absl_flags_commandlineflag.lib absl_log_internal_proto.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl \log\Release\absl_log_internal_proto.lib absl_hash.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\hash\Release\ absl_hash.lib absl_str_format_internal.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\abs l\strings\Release\absl_str_format_internal.lib absl_symbolize.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\debuggin g\Release\absl_symbolize.lib absl_flags_private_handle_accessor.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp -build\absl\flags\Release\absl_flags_private_handle_accessor.lib absl_flags_marshalling.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\ flags\Release\absl_flags_marshalling.lib absl_examine_stack.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\debu gging\Release\absl_examine_stack.lib absl_crc32c.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\crc\Release \absl_crc32c.lib absl_crc_cord_state.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\crc \Release\absl_crc_cord_state.lib absl_time.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\time\Release\ absl_time.lib absl_cord_internal.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\stri ngs\Release\absl_cord_internal.lib absl_log_entry.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\log\Rele ase\absl_log_entry.lib absl_kernel_timeout_internal.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build \absl\synchronization\Release\absl_kernel_timeout_internal.lib absl_log_internal_globals.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\ab sl\log\Release\absl_log_internal_globals.lib absl_log_sink.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\log\Relea se\absl_log_sink.lib absl_log_internal_format.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\abs l\log\Release\absl_log_internal_format.lib absl_synchronization.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\sy nchronization\Release\absl_synchronization.lib onnx_proto.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\onnx-build\Release\onnx_proto.lib absl_flags_program_name.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl \flags\Release\absl_flags_program_name.lib absl_cordz_handle.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\strin gs\Release\absl_cordz_handle.lib absl_hashtablez_sampler.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl \container\Release\absl_hashtablez_sampler.lib absl_vlog_config_internal.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\ab sl\log\Release\absl_vlog_config_internal.lib absl_flags_config.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\flags \Release\absl_flags_config.lib absl_raw_hash_set.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\conta iner\Release\absl_raw_hash_set.lib absl_flags_internal.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\fla gs\Release\absl_flags_internal.lib onnx.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\onnx-build\Release\onnx.lib absl_log_globals.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\log\Re lease\absl_log_globals.lib absl_cordz_info.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\strings \Release\absl_cordz_info.lib absl_log_internal_log_sink_set.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-bui ld\absl\log\Release\absl_log_internal_log_sink_set.lib absl_cord.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\strings\Relea se\absl_cord.lib absl_log_internal_message.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\ab sl\log\Release\absl_log_internal_message.lib absl_flags_reflection.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\absl\f lags\Release\absl_flags_reflection.lib absl_log_internal_check_op.vcxproj -> C:\GitHub\onnxruntime\build\Windows\Release_deps\abseil_cpp-build\a bsl\log\Release\absl_log_internal_check_op.lib Building Custom Rule C:/GitHub/onnxruntime/cmake/CMakeLists.txt my_ep_factory.cc C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include\xkeycheck.h(54,1): error C1189: #error: The C++ Standard Library forbids macroizing the keyword "bool". Enable warning C4005 to find the forbidden define. [C:\GitHub\onnxruntime\build\Windows\Release\test_execution_provider.vcxproj] Traceback (most recent call last): File "C:\GitHub\onnxruntime\tools\ci_build\build.py", line 2971, in sys.exit(main()) ^^^^^^ File "C:\GitHub\onnxruntime\tools\ci_build\build.py", line 2861, in main build_targets(args, cmake_path, build_dir, configs, num_parallel_jobs, args.target) File "C:\GitHub\onnxruntime\tools\ci_build\build.py", line 1729, in build_targets run_subprocess(cmd_args, env=env) File "C:\GitHub\onnxruntime\tools\ci_build\build.py", line 860, in run_subprocess return run(*args, cwd=cwd, capture_stdout=capture_stdout, shell=shell, env=my_env) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\GitHub\onnxruntime\tools\python\util\run.py", line 49, in run completed_process = subprocess.run( ^^^^^^^^^^^^^^^ File "C:\Users\Tranl\anaconda3\Lib\subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['C:\Program Files\CMake\bin\cmake.EXE', '--build', 'C:\GitHub\onnxruntime\\build\Windows\Release', '--config', 'Release', '--', '/maxcpucount:16', '/p:CL_MPCount=15', '/nodeReuse:False']' returned non-zero exit status 1.

Visual Studio Version

Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.10.5

GCC / Compiler Version

cmake version 3.30.1

gu76h commented 2 months ago

Hello, may I ask if you are currently successfully compiling onnxruntime? I have also encountered these issues with you on Windows and have not yet found a solution.My environment is almost the same as yours.

tranlm commented 2 months ago

Sorry. I wasn't able to resolve it. Ended up trying again on another laptop and it worked.

imaben commented 6 days ago

+1