-
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] error: no matching member function for call to 'min' #23413
Comments
I had the same issue. This error occurs at all instances of the template minEigen::PropagateNaN function call, such as:
|
You need to use the following eigen version: Other versions are not tested. Especially, I know the latest eigen release(which was made 3 years ago) would not work. New CPUs (for example, ARM CPUs with SVE2) come out quickly, the code needs to be released more often to offer better support for the new CPU instructions. |
Thank you @snnn for your support. Eigen works, but I ran into another issue with Protobuf. The build process fails with the following error:
So I have questions
|
The issue has been resolved in #23260 |
Otherwise, please check protobuf's version number from cmake/deps.txt.
No. |
Thanks @snnn Thank @snnn for your assistance! I have applied PR #23260 successfully. However, I encountered another issue during the build process, and I would appreciate your guidance to resolve it. The error message is as follows:
It seems like there is a mismatch between the version of protoc used to generate the .pb.h files and the Protocol Buffer headers available during the build. |
I guess you hit the code block at: https://github.com/microsoft/onnxruntime/blob/main/cmake/external/onnxruntime_external_deps.cmake#L117 So, please pass in -DONNX_CUSTOM_PROTOC_EXECUTABLE=/usr/bin/protoc The code block was added for convenience, but it is really a headache now. |
Thank @snnn for your guidance earlier! Passing -ONNX_CUSTOM_PROTOC_EXECUTABLE=/usr/bin/protoc resolved the build issue, and I was able to successfully build ONNX Runtime. However, during the unit tests, I encountered the following issues: Test Summary71% tests passed, but 2 tests failed out of 7:
Error LogsThe logs indicate multiple schema registration errors. Below are some examples:
Additionally, there are some shape inference errors during some tests:
Is there any specific configuration or known workaround for these errors? Any help or suggestions to address these issues would be greatly appreciated. Thank you for your continued support! |
We build ONNX with cmake option "ONNX_DISABLE_STATIC_REGISTRATION=ON". If you used a prebuilt ONNX library from somewhere else, unlikely it was built in such a way. Then it would cause a conflict when registering schemas. |
I have applied PR #21897 and successfully built ONNX Runtime with ONNX 1.17.0. It includes a patch, so I couldn't build ONNX independently and had to rely on the ONNX Runtime build process to handle it. I will now verify the inference results to check if there are any issues. I also hope this information can be helpful to someone else facing similar challenges. Thank you so much! |
Describe the issue
Build fails:
Version: 1.20.1
Urgency
No response
Target platform
FreeBSD 14.2
Build script
Regular cmake invocation.
Error / output
See above.
Visual Studio Version
No response
GCC / Compiler Version
clang-18
The text was updated successfully, but these errors were encountered: