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 Windows Release CI failure due to unresolved external symbol #5678

Merged
merged 33 commits into from
Oct 20, 2023

Conversation

jcwchen
Copy link
Member

@jcwchen jcwchen commented Oct 16, 2023

Description

Fix Windows Release CI failure : onnx.lib(checker.obj) : error LNK2001: unresolved external symbol "public: int __thiscall google::protobuf::RepeatedField<int>::size(void)const " (?size@?$RepeatedField@H@protobuf@google@@QBEHXZ) [D:\a\onnx\onnx\onnx\.setuptools-cmake-build\onnx_cpp2py_export.vcxproj] by setting PATH properly. We should use prepend instead of append.

Motivation and Context

Try to fix #5659. Currently Windows Release CI starts to fail after #5596.

Signed-off-by: jcwchen <jacky82226@gmail.com>
@jcwchen jcwchen added the run release CIs Use this label to trigger release tests in CI label Oct 16, 2023
@jcwchen jcwchen requested a review from a team as a code owner October 16, 2023 22:30
@jcwchen jcwchen marked this pull request as draft October 16, 2023 22:30
@codecov
Copy link

codecov bot commented Oct 16, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!.

Signed-off-by: jcwchen <jacky82226@gmail.com>
Copy link
Member Author

@jcwchen jcwchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Share more findings:
- It only happened on x86 Windows machine.

  • The failure might be not related to Cleanup shape inference implementation #5596, because in that commit some machines did pass CI (which uses Version: 20230924.1.0).
  • Something might be changed from the Windows machine -- from Version: 20230924.1.0 to Version: 20231002.1.0
  • windows-2019 works fine

Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
    set(BUILD_SHARED_LIBS ${ONNX_USE_PROTOBUF_SHARED_LIBS})

Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
@jcwchen jcwchen changed the title [WIP] Fix Windows Release CI failure due to unresolved external symbol Fix Windows Release CI failure due to unresolved external symbol Oct 19, 2023
@jcwchen jcwchen marked this pull request as ready for review October 19, 2023 23:21
@jcwchen jcwchen added this to the 1.15 milestone Oct 19, 2023
Copy link
Member Author

@jcwchen jcwchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @liqunfu for finding out there is a new introduced library: libprotobuf-lite from MySQL server. In practice we should "prepend" the manually installed Protobuf path instead of "append". It can reduce conflict if there are multiple installed Protobuf.

@jcwchen jcwchen added build Issues related to ONNX builds and packages CI pipelines Issues related to the CI pipeline labels Oct 19, 2023
@jcwchen jcwchen added this pull request to the merge queue Oct 20, 2023
Merged via the queue into onnx:main with commit 9bf7833 Oct 20, 2023
55 checks passed
@jcwchen jcwchen deleted the jcw/fix-win-protobuf branch October 20, 2023 01:34
jcwchen added a commit to jcwchen/onnx that referenced this pull request Oct 20, 2023
…x#5678)

### Description
<!-- - Describe your changes. -->
Fix Windows Release CI failure : `onnx.lib(checker.obj) : error LNK2001:
unresolved external symbol "public: int __thiscall
google::protobuf::RepeatedField<int>::size(void)const "
(?size@?$RepeatedField@H@protobuf@google@@QBEHXZ)
[D:\a\onnx\onnx\onnx\.setuptools-cmake-build\onnx_cpp2py_export.vcxproj]`
by setting PATH properly. We should use prepend instead of append.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve? -->
<!-- - If it fixes an open issue, please link to the issue here. -->
Try to fix onnx#5659. Currently Windows
Release CI starts to fail after onnx#5596.

---------

Signed-off-by: jcwchen <jacky82226@gmail.com>
jcwchen added a commit that referenced this pull request Oct 20, 2023
…al symbol (#5689)

### Description
Cherry-pick #5678.

### Motivation and Context
To fix Windows Release CI failure due to unresolved external symbol:
cherry-pick #5678.

Signed-off-by: jcwchen <jacky82226@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues related to ONNX builds and packages CI pipelines Issues related to the CI pipeline run release CIs Use this label to trigger release tests in CI
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Windows release build error
3 participants