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

Add linx arm64 build #137

Merged
merged 2 commits into from
Jan 20, 2025
Merged

Add linx arm64 build #137

merged 2 commits into from
Jan 20, 2025

Conversation

dylan-mazurek-anz
Copy link
Contributor

I have built a docker container to host alpaca and am wanting it to run directly on my M1 mac without emulation.

It seems that the builds were missing an ARM64 linux build of the app, hoping to add this.

@samuong
Copy link
Owner

samuong commented Jan 20, 2025

Hi Dylan, this makes sense, thanks for adding it!

@samuong samuong merged commit 8bbd1ba into samuong:master Jan 20, 2025
@samuong
Copy link
Owner

samuong commented Jan 21, 2025

Hi Dylan, unfortunately it looks like this has failed with the following errors:

# runtime/cgo
gcc_arm64.S: Assembler messages:
gcc_arm64.S:30: Error: no such instruction: `stp x29,x30,[sp,'
gcc_arm64.S:34: Error: too many memory references for `mov'
gcc_arm64.S:36: Error: no such instruction: `stp x19,x20,[sp,'
gcc_arm64.S:39: Error: no such instruction: `stp x21,x22,[sp,'
gcc_arm64.S:42: Error: no such instruction: `stp x23,x24,[sp,'
gcc_arm64.S:45: Error: no such instruction: `stp x25,x26,[sp,'
gcc_arm64.S:48: Error: no such instruction: `stp x27,x28,[sp,'
gcc_arm64.S:52: Error: too many memory references for `mov'
gcc_arm64.S:53: Error: too many memory references for `mov'
gcc_arm64.S:54: Error: too many memory references for `mov'
gcc_arm64.S:56: Error: no such instruction: `blr x20'
gcc_arm64.S:57: Error: no such instruction: `blr x19'
gcc_arm64.S:59: Error: no such instruction: `ldp x27,x28,[sp,'
gcc_arm64.S:62: Error: no such instruction: `ldp x25,x26,[sp,'
gcc_arm64.S:65: Error: no such instruction: `ldp x23,x24,[sp,'
gcc_arm64.S:68: Error: no such instruction: `ldp x21,x22,[sp,'
gcc_arm64.S:71: Error: no such instruction: `ldp x19,x20,[sp,'
gcc_arm64.S:74: Error: no such instruction: `ldp x29,x30,[sp],'

https://github.com/samuong/alpaca/actions/runs/12876308712/job/35899106329

I believe this is because we're using an amd64 runner, and trying to cross-compile to arm64.

I found out that GitHub has made some Linux arm64 runners available just a few days ago. I tried this on my repo but I've been waiting 2 hours for an available runner, so I think there's probably a lot of contention for a limited number of runners at the moment.

We could wait for a while and hope that more arm64 runners become available, but if you know how to get cross compilation working instead, then we could do that. Either way, I'll probably revert this PR for now, and we can get the arm64 builds working in a future PR.

@samuong
Copy link
Owner

samuong commented Jan 24, 2025

Actually I was wrong about some of the above, see #138 (comment) for details.

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