Skip to content

Add arm64 binary support for Linux and macOS#112

Merged
becheran merged 4 commits intomasterfrom
copilot/add-support-arm64-binaries
Dec 8, 2025
Merged

Add arm64 binary support for Linux and macOS#112
becheran merged 4 commits intomasterfrom
copilot/add-support-arm64-binaries

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 6, 2025

Plan: Fix failing linux arm64 build

  • Investigate the CI failure
  • Identify the issue: glibc linker being used for musl target
  • Replace manual cross-compilation setup with cross-rs tool
  • Update workflow to use cross for reliable ARM64 musl builds

Issue Summary

The linux arm64 build was failing because we were using aarch64-linux-gnu-gcc (glibc toolchain) as the linker for aarch64-unknown-linux-musl (musl target), causing undefined reference errors for glibc-specific fortified functions like __memcpy_chk.

Fix

Switched to using cross (cross-rs) which properly handles cross-compilation for ARM64 musl targets using Docker containers with the correct toolchain.

Original prompt

This section details on the original issue you should resolve

<issue_title>Support for arm64 binaries</issue_title>
<issue_description>There are plenty of darwin/arm64 and linux/arm64 that would love to try out mlc</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: becheran <22472855+becheran@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for arm64 binaries in mlc Add arm64 binary support for Linux and macOS Dec 6, 2025
Copilot AI requested a review from becheran December 6, 2025 21:13
@becheran becheran marked this pull request as ready for review December 8, 2025 21:07
@becheran
Copy link
Copy Markdown
Owner

becheran commented Dec 8, 2025

@copilot fix the failing linux arm64 build

Co-authored-by: becheran <22472855+becheran@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Dec 8, 2025

@copilot fix the failing linux arm64 build

Fixed the linux arm64 build in commit 50df981. The issue was that we were using aarch64-linux-gnu-gcc (glibc linker) for the aarch64-unknown-linux-musl (musl) target, causing undefined reference errors. Switched to using cross which properly handles ARM64 musl cross-compilation.

Copilot AI requested a review from becheran December 8, 2025 21:15
@becheran becheran merged commit d0101cd into master Dec 8, 2025
18 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.

Support for arm64 binaries

2 participants