-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
api:Javaissues related to the Java APIissues related to the Java APIbuildbuild issues; typically submitted using templatebuild issues; typically submitted using templateplatform:windowsissues related to the Windows platformissues related to the Windows platformstaleissues that have not been addressed in a while; categorized by a botissues that have not been addressed in a while; categorized by a bot
Description
Describe the issue
Failed to build onnxruntime java api 1.20.0 on windows
cmake --version
cmake version 3.30.5-msvc23
CMake suite maintained and supported by Kitware (kitware.com/cmake).
Urgency
No response
Target platform
Windows
Build script
.\build.bat --build_java --config MinSizeRel --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync
Error / output
C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\include\onnxruntime\core\platform\ort_mutex.h(74,61): error C2039: 'system_clock': is not a member of 'std::chrono' [C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\build\Windows\RelWithDebInfo\onnxruntime_framework.vcxproj]
C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\include\onnxruntime\core\platform\ort_mutex.h(74,61): error C2039: 'system_clock': is not a member of 'std::chrono' [C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\build\Windows\RelWithDebInfo\onnxruntime_framework.vcxproj]
(compiling source file '../../../onnxruntime/core/framework/random_seed.cc')
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\include\__msvc_chrono.hpp(286,11):
see declaration of 'std::chrono'
C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\include\onnxruntime\core\platform\ort_mutex.h(74,61): error C2065: 'system_clock': undeclared identifier [C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\build\Windows\RelWithDebInfo\onnxruntime_framework.vcxproj]
(compiling source file '../../../onnxruntime/core/framework/random_seed.cc')
(compiling source file '../../../onnxruntime/core/framework/random_generator.cc')
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\include\__msvc_chrono.hpp(286,11):
see declaration of 'std::chrono'
C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\include\onnxruntime\core\platform\ort_mutex.h(74,37): error C2923: 'std::chrono::time_point': 'system_clock' is not a valid template type argument for parameter '_Clock' [C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\build\Windows\RelWithDebInfo\onnxrunti
me_framework.vcxproj]
(compiling source file '../../../onnxruntime/core/framework/random_seed.cc')
C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\include\onnxruntime\core\platform\ort_mutex.h(74,61):
see declaration of 'system_clock'
C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\include\onnxruntime\core\platform\ort_mutex.h(74,61): error C2065: 'system_clock': undeclared identifier [C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\build\Windows\RelWithDebInfo\onnxruntime_framework.vcxproj]
(compiling source file '../../../onnxruntime/core/framework/random_generator.cc')
C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\include\onnxruntime\core\platform\ort_mutex.h(74,37): error C2955: 'std::chrono::time_point': use of class template requires template argument list [C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\build\Windows\RelWithDebInfo\onnxruntime_framework.vcxproj]
C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\include\onnxruntime\core\platform\ort_mutex.h(74,37): error C2923: 'std::chrono::time_point': 'system_clock' is not a valid template type argument for parameter '_Clock' [C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\build\Windows\RelWithDebInfo\onnxrunti
me_framework.vcxproj]
(compiling source file '../../../onnxruntime/core/framework/random_seed.cc')
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\include\__msvc_chrono.hpp(200,11):
see declaration of 'std::chrono::time_point'
(compiling source file '../../../onnxruntime/core/framework/random_generator.cc')
C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\include\onnxruntime\core\platform\ort_mutex.h(74,61):
see declaration of 'system_clock'
C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\include\onnxruntime\core\platform\ort_mutex.h(74,37): error C2955: 'std::chrono::time_point': use of class template requires template argument list [C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\build\Windows\RelWithDebInfo\onnxruntime_framework.vcxproj]
(compiling source file '../../../onnxruntime/core/framework/random_generator.cc')
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\include\__msvc_chrono.hpp(200,11):
see declaration of 'std::chrono::time_point'
C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\include\onnxruntime\core\platform\ort_mutex.h(74,61): error C2039: 'system_clock': is not a member of 'std::chrono' [C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\build\Windows\RelWithDebInfo\onnxruntime_framework.vcxproj]
(compiling source file '../../../onnxruntime/core/framework/model_metadef_id_generator.cc')
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\include\__msvc_chrono.hpp(286,11):
see declaration of 'std::chrono'
C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\include\onnxruntime\core\platform\ort_mutex.h(74,61): error C2065: 'system_clock': undeclared identifier [C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\build\Windows\RelWithDebInfo\onnxruntime_framework.vcxproj]
(compiling source file '../../../onnxruntime/core/framework/model_metadef_id_generator.cc')
C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\include\onnxruntime\core\platform\ort_mutex.h(74,37): error C2923: 'std::chrono::time_point': 'system_clock' is not a valid template type argument for parameter '_Clock' [C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\build\Windows\RelWithDebInfo\onnxrunti
me_framework.vcxproj]
(compiling source file '../../../onnxruntime/core/framework/model_metadef_id_generator.cc')
C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\include\onnxruntime\core\platform\ort_mutex.h(74,61):
see declaration of 'system_clock'
C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\include\onnxruntime\core\platform\ort_mutex.h(74,37): error C2955: 'std::chrono::time_point': use of class template requires template argument list [C:\Users\brahimhaddou\Documents\com.microsoft.onnxruntime-onnxruntime\build\Windows\RelWithDebInfo\onnxruntime_framework.vcxproj]
(compiling source file '../../../onnxruntime/core/framework/model_metadef_id_generator.cc')
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\include\__msvc_chrono.hpp(200,11):
see declaration of 'std::chrono::time_point'
Visual Studio Version
Visual Studio 2022
GCC / Compiler Version
19.43.34810.0
sinall, cugurm and DamianRice
Metadata
Metadata
Assignees
Labels
api:Javaissues related to the Java APIissues related to the Java APIbuildbuild issues; typically submitted using templatebuild issues; typically submitted using templateplatform:windowsissues related to the Windows platformissues related to the Windows platformstaleissues that have not been addressed in a while; categorized by a botissues that have not been addressed in a while; categorized by a bot