Skip to content

Fix protoc error when cross compiling on a linux aarch64 host#28567

Merged
edgchen1 merged 1 commit into
microsoft:mainfrom
jocelyn-stericker:jstericker/wasm-on-linux-aarch64
May 19, 2026
Merged

Fix protoc error when cross compiling on a linux aarch64 host#28567
edgchen1 merged 1 commit into
microsoft:mainfrom
jocelyn-stericker:jstericker/wasm-on-linux-aarch64

Conversation

@jocelyn-stericker
Copy link
Copy Markdown
Contributor

Description

Without this change, ./build.sh --config MinSizeRel --build_wasm --skip_tests --target onnxruntime_webassembly --compile_no_warning_as_error --parallel fails on Asahi Linux:

-- Fetch protoc_binary from https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_32.zip

<snip>

/bin/sh: line 1: ../protoc_binary-src/bin/protoc: cannot execute binary file: Exec format error

The command succeeds with this change.

Without this change, `./build.sh --config MinSizeRel --build_wasm --skip_tests --target onnxruntime_webassembly --compile_no_warning_as_error --parallel` fails on Asahi:

```
-- Fetch protoc_binary from https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_32.zip
...
/bin/sh: line 1: ../protoc_binary-src/bin/protoc: cannot execute binary file: Exec format error
```

The command succeeds with this change.
Copy link
Copy Markdown
Contributor

@edgchen1 edgchen1 left a comment

Choose a reason for hiding this comment

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

thanks for the fix

@edgchen1 edgchen1 enabled auto-merge (squash) May 19, 2026 22:54
@edgchen1 edgchen1 merged commit 192ef6b into microsoft:main May 19, 2026
98 of 99 checks passed
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.

2 participants