Cannot build Keytar for raspberry pi 4
felix-exon opened this issue · comments
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
Steps to Reproduce
- Setup Raspbian on Raspi 4
sudo apt-get install libsecret-1-dev
- Clone electron project referencing keytar
npm install
Expected behavior:
I expect keytar to build
Actual behavior:
build native dependency from sources name=keytar
version=7.7.0
platform=linux
arch=armv7l
napi=p
reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
error=prebuild-install info begin Prebuild-install version 6.1.3
prebuild-install WARN install prebuilt binaries enforced with --force!
prebuild-install WARN install prebuilt binaries may be out of date!
prebuild-install info looking for local prebuild @ prebuilds/keytar-v7.7.0-napi-v3-linux-armv7l.tar.gz
prebuild-install info looking for cached prebuild @ /home/pi/.npm/_prebuilds/c396fd-keytar-v7.7.0-napi-v3-linux-armv7l.tar.gz
prebuild-install http request GET https://github.com/atom/node-keytar/releases/download/v7.7.0/keytar-v7.7.0-napi-v3-linux-armv7l.tar.gz
prebuild-install http 404 https://github.com/atom/node-keytar/releases/download/v7.7.0/keytar-v7.7.0-napi-v3-linux-armv7l.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=3 runtime=napi arch=armv7l libc= platform=linux)
As seen there is no release found:
https://github.com/atom/node-keytar/releases/download/v7.7.0/keytar-v7.7.0-napi-v3-linux-armv7l.tar.gz
is not found.
Versions
OS: 5.10.17-v7l+
Node: v14.17.2
npm:6.14.13
Weird, according to
Line 33 in 1248408
any update on this ? can I provide anything that helps?
Does using yarn
instead help?
+1
I have the same issue as well. For some reason, npm rebuild
fails with the 404.
I am embedding keytar in an Electron app, and electron-builder shows this issue (with npmRebuild=true
). Using electron-rebuild seems to work, but not sure why.
There are a bunch of missing assets in the 7.7.0 release. Their build may have failed. Compare the Assets for 7.7.0 and 7.6.0 in: https://github.com/atom/node-keytar/releases/
Installing keytar@7.6.0 or not using prebuilds may work around the issue in the short term.
It sounds like a dupe of: #417. I would image they would need to run their build again & figure out why it's failing for these architectures.