Skip to content

Fix some build issues on MacOS with Xcode 14.3. - #15878

Merged
edgchen1 merged 36 commits into
mainfrom
edgchen1/fix_mac_build_issues
Jun 7, 2023
Merged

Fix some build issues on MacOS with Xcode 14.3.#15878
edgchen1 merged 36 commits into
mainfrom
edgchen1/fix_mac_build_issues

Conversation

@edgchen1

@edgchen1 edgchen1 commented May 9, 2023

Copy link
Copy Markdown
Contributor

Description

  • Fix flatbuffers flatc warning, unused-but-set-variable.
  • Address -Wshorten-64-to-32 warnings (fix in our code, allow in dependencies' code).
  • Update CI builds to use Xcode 14.3.
  • Update minimum iOS version to 12.0.
  • Update Mac hosted agents to MacOS 13 where possible.

Motivation and Context

Fix local build.
Fix #16221.

Comment thread onnxruntime/core/providers/cpu/nn/string_normalizer.cc Outdated
@snnn

snnn commented May 15, 2023

Copy link
Copy Markdown
Contributor

Related #15599

snnn
snnn previously approved these changes May 18, 2023
@snnn
snnn dismissed their stale review May 18, 2023 02:34

Need to figure out how to resolve the iconv issue.

@edgchen1
edgchen1 marked this pull request as draft May 18, 2023 03:32
Comment thread cmake/CMakeLists.txt
@edgchen1
edgchen1 marked this pull request as ready for review May 18, 2023 23:50
@edgchen1
edgchen1 requested review from a team, YUNQIUGUO, skottmckay and vraspar May 18, 2023 23:50

@snnn snnn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Based on an internal discussion, we have a better choice than this library. We can use the system's builtin APIs.

Comment thread onnxruntime/core/providers/cpu/nn/string_normalizer.cc
@snnn

snnn commented Jun 2, 2023

Copy link
Copy Markdown
Contributor

/azp run orttraining-linux-ci-pipeline

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

skottmckay
skottmckay previously approved these changes Jun 5, 2023

@skottmckay skottmckay left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

:shipit:

@snnn snnn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you!

@edgchen1
edgchen1 merged commit 1261d0b into main Jun 7, 2023
@edgchen1
edgchen1 deleted the edgchen1/fix_mac_build_issues branch June 7, 2023 19:07
Honry pushed a commit to Honry/onnxruntime that referenced this pull request Jun 8, 2023
- Fix flatbuffers flatc warning, unused-but-set-variable.
- Address `-Wshorten-64-to-32` warnings (fix in our code, allow in dependencies' code).
- Update CI builds to use Xcode 14.3.
- Update minimum iOS version to 12.0.
- Update Mac hosted agents to MacOS 13 where possible.
titaiwangms added a commit that referenced this pull request Jun 28, 2025
Delete the legacy patches related to protobuf, which was added from
#14279 and
#15878 to simplify the ONNX
patches.
ankus-qti pushed a commit to CodeLinaro/onnxruntime that referenced this pull request Nov 25, 2025
Delete the legacy patches related to protobuf, which was added from
microsoft#14279 and
microsoft#15878 to simplify the ONNX
patches.
qti-jkilpatrick pushed a commit to onnxruntime/onnxruntime-qnn that referenced this pull request Jan 26, 2026
Delete the legacy patches related to protobuf, which was added from
microsoft/onnxruntime#14279 and
microsoft/onnxruntime#15878 to simplify the ONNX
patches.
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.

[Build] onnxruntime fails to build on x86 Intel Mac

4 participants