dAppServer / wails-build-action

GitHub action to build Wails.io
European Union Public License 1.2
38 stars 34 forks source link

Build failing on `linux/arm64` #12

Open kkrypt0nn opened 1 year ago

kkrypt0nn commented 1 year ago

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 https://github.com/golang/go/issues/28966

Snider commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 11 months ago

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.