I am trying to cross compile from x86_64 to aarch64. I can build a x86_64 package, but when I attempt an aarch64 the build crashes. I am using electron and the crash is around the time that the ‘zypak-wrapper’ script is being used.
Some time ago, maybe months, I could succsesfully compile my app for aarch64.
I have checked and I have the aarch64 flatpak packages installed for my app.
My biggest concern is that flatpak does not support aarch64 cross compiling any more.
Below is some terminal output.
$ flatpak --supported-arches
x86_64
i386
$ flatpak install org.freedesktop.Sdk.Extension.node14/aarch64/21.08
Looking for matches…
Skipping: org.freedesktop.Sdk.Extension.node14/aarch64/21.08 is already installed
$ flatpak install org.electronjs.Electron2.BaseApp/aarch64/21.08
Looking for matches…
Skipping: org.electronjs.Electron2.BaseApp/aarch64/21.08 is already installed
Note: I can go through all the required flatpak packages and the flatpak program will tell me they are there.
Here is some crash output.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@18.1.0 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@18.1.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm timing npm Completed in 483509ms
npm ERR! A complete log of this run can be found in:
npm ERR! /run/build/gpt-etc/flatpak-node/npm-cache/_logs/2022-09-15T15_39_46_810Z-debug.log
Error: module gpt-etc: Child process exited with code 1
and btw, I cannot find the /run/build/ dir for the log on my system.
This is my yaml file. Breifly I could not even build the x86_64 arch. Then I realized that I had edited the node16 to read node14. This really baffled me. Now x86_64 works again. Now when I try to build for aarch64 I get an error, again somewhere around the zypak wrapper. It has something to do with electron-builder in the packaging stage. I then added zypak sources to the yaml file. Still I get the same error. I updated electron-builder to 23.5.1, but the error remains the same.