Skip to content

Do not use LFS64 on non-glibc linux (#5668) #5669

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

Merged
merged 1 commit into from
Oct 15, 2023

Conversation

leso-kn
Copy link
Contributor

@leso-kn leso-kn commented Oct 14, 2023

Description

This PR closes #5668 and fixes building onnx on non-glibc linux systems (e.g. Alpine Linux / musl).

Motivation and Context

The latest version of onnx (1.14.1) currently fails to compile on non-glibc systems (e.g. musl) due to an unsupported call to stat64() in checker.cc. See the latest pipeline log of aports!52138 for an example case.

@leso-kn leso-kn requested a review from a team as a code owner October 14, 2023 13:09
Signed-off-by: leso-kn <info@lesosoftware.com>
@leso-kn leso-kn force-pushed the fix-non-glibc-build branch from d05bd6a to f44275f Compare October 14, 2023 13:13
@codecov
Copy link

codecov bot commented Oct 14, 2023

Codecov Report

All modified lines are covered by tests ✅

📢 Thoughts on this report? Let us know!.

@leso-kn
Copy link
Contributor Author

leso-kn commented Oct 14, 2023

For reference: job log of a successful musl build with this PR applied.

@jcwchen jcwchen added topic: build Issues related to ONNX builds and packages module: checker onnx.checker run release CIs Use this label to trigger release tests in CI labels Oct 14, 2023
Copy link
Member

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

Thank you for catching this! This PR seems good to have for upcoming ONNX 1.15.0 (if onnxruntime prefers to consume ONNX release commit). cc @liqunfu

@jcwchen jcwchen linked an issue Oct 14, 2023 that may be closed by this pull request
@justinchuby justinchuby added this pull request to the merge queue Oct 15, 2023
Merged via the queue into onnx:main with commit f556cff Oct 15, 2023
@liqunfu liqunfu added this to the 1.15 milestone Oct 17, 2023
liqunfu pushed a commit that referenced this pull request Oct 17, 2023
### Description
This PR closes #5668 and fixes building onnx on non-glibc linux systems
(e.g. Alpine Linux / musl).

### Motivation and Context
The latest version of onnx (1.14.1) currently fails to compile on
non-glibc systems (e.g. musl) due to an unsupported call to `stat64()`
in checker.cc. See the latest [pipeline
log](https://gitlab.alpinelinux.org/leso-kn/aports/-/jobs/1143766#L1155)
of
[aports!52138](https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/52138)
for an example case.

Signed-off-by: leso-kn <info@lesosoftware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: checker onnx.checker run release CIs Use this label to trigger release tests in CI topic: build Issues related to ONNX builds and packages
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

musl build fails due to stat64 call
4 participants