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

Build failing on linux/arm64 #12

Open
kkrypt0nn opened this issue Apr 17, 2023 · 4 comments
Open

Build failing on linux/arm64 #12

kkrypt0nn opened this issue Apr 17, 2023 · 4 comments

Comments

@kkrypt0nn
Copy link

When building for the platform linux/arm64 I am getting an error like the following:

  • Installing frontend dependencies: Done.
  • Compiling frontend: Done.
# 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],'
  • Compiling application:   ERROR   exit status 1

  ERROR   exit status 1

Potential useful information at golang/go#28966

@Snider
Copy link
Contributor

Snider commented Apr 17, 2023

Thanks, AFAIK I did not prep the runner with cross-compile libs. However, since the action is starting to get bloated, I might move it into a Docker image as my project has open-source sponsorship from docker, so download limits are not an issue for people who use our images.

I'll think about it. Are you in a rush?

@kkrypt0nn
Copy link
Author

Thanks for your response and the time you take for this :D

I have definitely no rush, so you can take the time you need

@Snider
Copy link
Contributor

Snider commented Apr 17, 2023

Thanks, no worries; Wails is a cool framework!

It won't be long; if you need it soon, id patch the significantly large action file, but I'm thinking of bringing my docker builder for C++ out of hiding to handle all my build needs, (including Wails/GoLang).

@marcus-crane
Copy link

As a follow up, I had similar issues cross-compiling for Linux arm64 (not using this action) but I recently had success using a BuildJet drop-in runner.

I'm not affiliated with them at all but it helped me build my Wails for arm64. It's not free but it's extremely cheap if you're not doing releases super often.

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

No branches or pull requests

3 participants