-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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] MacOS Build Script Fails With Compile Error #20137
Labels
build
build issues; typically submitted using template
Comments
Ok I think I found the issue. The dependency Will start looking into solutions. |
tianleiwu
pushed a commit
that referenced
this issue
Apr 3, 2024
### Description For C++ standards >= 20, use `std::chrono::operator<<` in place of `date::operator<<` to fix ambiguous operator compile error. ### Motivation and Context The external dependency HowardHinnant/date has a conflict with std::chrono for >=C++20. Solves #20137
rvinluan-sidefx
pushed a commit
to sideeffects/onnxruntime
that referenced
this issue
Apr 26, 2024
### Description For C++ standards >= 20, use `std::chrono::operator<<` in place of `date::operator<<` to fix ambiguous operator compile error. ### Motivation and Context The external dependency HowardHinnant/date has a conflict with std::chrono for >=C++20. Solves microsoft#20137
TedThemistokleous
pushed a commit
to TedThemistokleous/onnxruntime
that referenced
this issue
May 7, 2024
### Description For C++ standards >= 20, use `std::chrono::operator<<` in place of `date::operator<<` to fix ambiguous operator compile error. ### Motivation and Context The external dependency HowardHinnant/date has a conflict with std::chrono for >=C++20. Solves microsoft#20137
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue
I am attempting to build according to the build documentation, but receive the below compile errors with the build script. I tried on both the
main
branch and the v1.17.1 release with the same output.When I comment out the responsible lines according this patch file: commented.patch, it builds correctly. (But obviously fails the test suite).
Here is my clang version output.
This is my first issue. If I am missing anything, please let me know. Thank you for your time.
Urgency
Not too urgent, but appreciate the help.
Target platform
MacOS M2 arm64
Build script
./build.sh --config RelWithDebInfo --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync
and
./build.sh --config RelWithDebInfo --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync --cmake_extra_defines CMAKE_OSX_ARCHITECTURES=arm64
Error / output
The build continues until linking
libonnxruntime_providers.a
, thent the python script output is:Visual Studio Version
N/A (xcode-select version 2406.)
GCC / Compiler Version
Apple clang version 15.0.0 (clang-1500.3.9.4)
The text was updated successfully, but these errors were encountered: