Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

fix: Added mingw patch #25469

wants to merge 6 commits into from

Conversation

joda01
Copy link

@joda01 joda01 commented Sep 30, 2024

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 from windows.h.


@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@danimtb danimtb self-assigned this Oct 23, 2024
@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

Warning

Conan Center will stop receiving updates for Conan 1.x packages soon - please see announcement.

All green in build 3 (9bdb85e4d65b0006432886ab78dc1537dab69277):

  • onnx/1.14.1:
    Built 20 packages out of 22 (All logs)

  • onnx/1.16.0:
    Built 16 packages out of 22 (All logs)

  • onnx/1.15.0:
    Built 18 packages out of 22 (All logs)

  • onnx/1.14.0:
    Built 20 packages out of 22 (All logs)

  • onnx/1.16.2:
    Built 16 packages out of 22 (All logs)

  • onnx/1.17.0:
    Built 16 packages out of 22 (All logs)

  • onnx/1.13.1:
    Built 20 packages out of 22 (All logs)

  • onnx/1.16.1:
    Built 16 packages out of 22 (All logs)


Conan v2 pipeline ✔️

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 2 (9bdb85e4d65b0006432886ab78dc1537dab69277):

  • onnx/1.16.1:
    All packages built successfully! (All logs)

  • onnx/1.14.0:
    All packages built successfully! (All logs)

  • onnx/1.15.0:
    All packages built successfully! (All logs)

  • onnx/1.16.0:
    All packages built successfully! (All logs)

  • onnx/1.16.2:
    All packages built successfully! (All logs)

  • onnx/1.14.1:
    All packages built successfully! (All logs)

  • onnx/1.13.1:
    All packages built successfully! (All logs)

danimtb
danimtb previously approved these changes Oct 24, 2024
Copy link
Member

@AbrilRBS AbrilRBS left a 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!

@joda01
Copy link
Author

joda01 commented Oct 31, 2024

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
and there was a similar issue from 2018 see onnx/onnx#1065

@danimtb
Copy link
Member

danimtb commented Nov 5, 2024

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.

@joda01
Copy link
Author

joda01 commented Nov 5, 2024

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?

@danimtb
Copy link
Member

danimtb commented Nov 5, 2024

@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.

@AbrilRBS
Copy link
Member

AbrilRBS commented Nov 5, 2024

Note that you might be able to solve this on your end by adding

[conf]
onnx/*:tools.build:defines=["OPTIONAL=OPTIONAL"]

to your profile, which will ensure that the optional macro is not defined by Windows, and will allow the Onnx build to proceed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants