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.

unable to build on raspberry pi 4: Unsupported arch arm

See original GitHub issue

electron-builder version 21.2.0

target: linux on raspberry pi 4 arm board

When building the process halt with this error:

⨯ Unsupported arch arm stackTrace= Error: Unsupported arch arm at archFromString (/home/pi/electron/node_modules/builder-util/src/arch.ts:43:13) at computeArchToTargetNamesMap (/home/pi/electron/node_modules/app-builder-lib/src/targets/targetFactory.ts:43:20) at Packager.doBuild (/home/pi/electron/node_modules/app-builder-lib/src/packager.ts:422:41) at Packager._build (/home/pi/electron/node_modules/app-builder-lib/src/packager.ts:366:57) at Packager.build (/home/pi/electron/node_modules/app-builder-lib/src/packager.ts:330:12) at executeFinally (/home/pi/electron/node_modules/builder-util/src/promise.ts:12:14) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! video_player@1.0.0 dist: electron-builder npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the video_player@1.0.0 dist script.

But, I have edited the function archFromString on node_modules/builder-util/out/arch.js (compiled version of arch.ts) so it’s return armv7l also for arch name arm and the app is builded correctly.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:5

github_iconTop GitHub Comments

29reactions
ptkdevcommented, Mar 27, 2020

Work for me: electron-builder --dir --armv7l --linux deb

6reactions
sbarexcommented, Nov 29, 2019

for me it is still relevant but obviously not for others

Read more comments on GitHub >

github_iconTop Results From Across the Web

Raspberry Pi 4 Model B 8 GB (2/3 Fail with SD Card error)
As far as I understood, the problem is that the device tree for the Rpi4 must be modified according to the chip revision....
Read more >
"Unsupported architecture" exception on Raspberry Pi
[RUN] Failed to run impulse Error: Unsupported architecture "aarch64", only armv7l or aarch64 supported for now at RunnerDownloader.
Read more >
Arch - Raspberry Pi Forums
How to create a local mirror of an archive server? ... Diagnosing Pi 4 "Unsupported Board Type" LED flashes ... ArchLinux ARM End-Of-Life...
Read more >
Trying to build Etcher on Raspberry Pi 4 - balenaEtcher
I'm trying to build Etcher on a Raspberry Pi 4, ... Error: Unsupported arch arm at archFromString (/home/pi/Documents/etcher/node_modules/ ...
Read more >
ARM/RaspberryPi - Ubuntu Wiki
Download · Usage. Root resize; Swap; Wifi firmware; SSH server; Serial console · Kernel · Building · Cross-upgrading 14.04 to 16.04 · Links ......
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