-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix: Added mingw patch #25469
base: master
Are you sure you want to change the base?
fix: Added mingw patch #25469
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Conan v1 pipeline ✔️Warning Conan Center will stop receiving updates for Conan 1.x packages soon - please see announcement. All green in build 3 (
Conan v2 pipeline ✔️
All green in build 2 (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @joda01 thanks a lot for your contribution. I'd like to understand if this issue has been reported to onnx, I'm sure they'd appreciate having this info - Do you have any insight into the status of this issue there? Thanks!
Hi @AbrilRBS I reported the issue to onnx/onnx. Relates to onnx/onnx#6506 |
Hi @joda01: I have tested the different versions, and at least from version 1.15.0, the same error still happens. If we are going to add this patch, it should be applied there as well. Regarding the patch, I think this is the less intrusive approach and the easiest to understand, although I hope it gets resolved upstream at some point. |
Hi @danimtb ! Thanks for your review. What do you think is the best way to add the patch for all versions? Should I add a separate entry in the yaml for each affected version? |
@joda01 having a look again I realized the patches are very much specific for MinGW (we try to keep the patches as much generic as possible) In that case, I am a bit hesitant now as the patch may cause any unknown side-effect on other Windows compilations. I believe this exceeds our responsibility here and will require advice from someone on the onnx project on how to handle MinGW builds, maybe we can follow-up up onnx/onnx#6506 when they get back to you. I'm sorry about the confusion. |
Note that you might be able to solve this on your end by adding
to your profile, which will ensure that the optional macro is not defined by Windows, and will allow the Onnx build to proceed |
Summary
Changes to recipe: onnx/1.16.2
Motivation
See #25468
Details
I added
#undef OPTIONAL
to the lib header which undefs the predefined macro fromwindows.h
.