-
-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stripping Electron ARMv7 binary files fails in RPM maker. #3102
Comments
In case it helps you because I just spent nearly a day debugging this. |
Downgrade GitHub-hosted Linux runner to `ubuntu-20.04`.
@jbtobar I've also noticed it doesn't really happend for ARM64 at all – I'll try to update bug description accordingly to all of that information we gathered. I'd love deprecating ARM 32-bit someday, but in Linux ARM world 32-bit processors are still quite common and even Raspberries of version 4 are still considered to be stable only on 32-bit OS, in most cases due to the lack of 64-bit drivers for all SoC components. And really appreciate your time investment on this issue, I've been also able to reproduce it on Arch Linux as well. I haven't much digged into it myself once I reported it, I wanted to deeply take a look at it before new version of my software and once I actually have time for that. As stripping doesn't seem to be a really important process of packaging, maybe Electron Forge shouldn't really care much if it succeed or not (display a warning instead of causing a failure)? I guess it would be rather useful to progress further than cause a global failure of the |
@SpacingBat3 @jbtobar Thanks both for the detailed reports! We'll look into the issue on Ubuntu 22.04 with binutils. Just to clarify the range of the issue - does the issue seem to be dependent on having both Ubuntu 22.04 and Electron 22? Or does the issue also appear on Ubuntu 22.04 while using older versions of Electron? |
TL;DR: Electron doesn't matter, keeping
@VerteDinde not really, it seems to happen with older Electron versions as well, Ubuntu 22.04 is also not a requirement althrough it is the OS used in GitHub makers. See updated Steps to reproduce section:
Given Ubuntu 20.04 uses much older version of So requirement to constantly reproduce this issue is to run Electron Forge |
Thanks for reporting the issue and writing it up @SpacingBat3!
The error comes from within
Ubuntu 22.04 has version 4.17.0. I've dug into this and the root cause is not in The reason arm64 acted differently is due to another bug which caused it to be built slightly differently by Working on an upstream fix for this issue in electron-userland/electron-installer-redhat#325. I'd recommend @jbtobar's workaround for now. If you can't use that workaround, you should be able to disable stripping by creating a |
Looks like adding I'll work on releasing |
@SpacingBat3, this should be fixed with cc @jbtobar as well |
Pre-flight checklist
Electron Forge version
6.0.3
,6.0.4
Electron version
22.0.0
Operating system
ubuntu-latest
(GitHub Actions), probably any GNU/Linux distro with recent enough softwareLast known working Electron Forge version
6.0.3
(with Electron21.x.y
) onubuntu-20.04
Expected behavior
RPM distributables will
make
without any failures with newerbinutils
version found inubuntu-latest
.Actual behavior
/usr/bin/strip
seem to not be able to recognize format of ARMv7 libraries or executables, returning a non-zero exit code and causing failure of the maker.Steps to reproduce
Just try to generate RPM distributables for
armhf
on x64 hosts with Electron Forge and Ubuntu withbinutils
=2.38-4ubuntu2
or Arch Linux withbinutils
=2.39
(I guess it affectsbinutils
of at least version2.38
).Additional information
Full logs and build/make steps can be seen in the following GitHub workflow run:
https://github.com/SpacingBat3/WebCord/actions/runs/3587615855/jobs/6038174672
This seems to be regression caused on Electron side, workflow runs before Electron update seem to generate RPMs successfully (on Electron ForgeEDIT: Thanks @jbtobar, it indeed looks like this is a bug with more recent6.0.3
).binutils
version. I haven't myself get deep into this issue, I just blamed it could be caused by switch to new Electron major version, not software update.The text was updated successfully, but these errors were encountered: