question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

build arm64 snap on x64 machine

See original GitHub issue
  • Version: 22.10.4
  • Electron Version: 11.2.3
  • Electron Type: current
  • Target: snap arm64

when I try to build an arm64 snap on my laptop (ubuntu 20.04 x64) and github actions (ubuntu 18.04 x64) I get the below error

⨯ snapcraft does not currently support building arm64 on amd64  
  ⨯ /home/labhansh/hyper/node_modules/app-builder-bin/linux/x64/app-builder exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE  stackTrace=
Error: /home/labhansh/hyper/node_modules/app-builder-bin/linux/x64/app-builder exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
at ChildProcess.<anonymous> (/home/labhansh/hyper/node_modules/builder-util/src/util.ts:243:14)
at Object.onceWrapper (node:events:483:26)
at ChildProcess.emit (node:events:376:20)
at maybeClose (node:internal/child_process:1063:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:295:5)
error Command failed with exit code 1.

Is there any way I can build arm64 snap on x64 machine?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:29 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
LabhanshAgrawalcommented, Apr 17, 2022

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Yes

4reactions
LabhanshAgrawalcommented, Jun 3, 2021

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Yes

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cross compile snap on amd64 to arm - Snapcraft forum
Hello, I've a snap for arm and building it with snapcraft (classic ubuntu) on a rpi (arm) is working absolutely fine.
Read more >
Building a gadget snap - Ubuntu Core docs
Building a gadget snap enables specific device and customisation options to be set and integrated into an Ubuntu Core image.
Read more >
Building your snap on-device? There's a better way
Snapcraft solves a lot of problems when building snaps, but one issue it doesn't solve is cross-building (i.e. building on one architecture ...
Read more >
snapd-2.55.3-1.el8 | Build Info - Fedora Koji
snap -confine-debuginfo-2.55.3-1.el8.aarch64.rpm (info) (download) ... SNAPD_DEBUG=1 is set - gadget/install/partition.go: use device rescan ...
Read more >
Armhf snap builds for raspberry pi - Rocket Chat forums
Basically seems like its shipping 64 bit arm binaries. We use a build service from Canonical on launchpad. They use arm64 workers and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found