You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Please consider static builds for Linux prebuilt binaries. #25495
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for an issue that matches the one I want to file, without success.
Issue Details
Electron Version:
v9.3.1, v10.1.1, (all versions, afaik)
Operating System:
All linux builds (Ubuntu 18.04 x64, 20.04, ...)
Last Known Working Electron version:
(Never? I believe electron has always linked to system libraries on Linux)
Expected Behavior
Compiling and running with native modules (especially modules with several external library dependencies, like sharp) should run, with reasonably self-contained dependencies, on different versions of Linux.
Actual Behavior
Non-compatible versions of system libraries cause run time errors due to missing symbols.
To Reproduce
Compile a fiddle that requires the current version of sharp, and try to run the binary on an older version of linux. You'll see an error from either glibc or libcairo (see lovell/sharp#371 and related errors).
Additional Information
Thanks, y'all, for all your work on Electron! Open source projects never get enough kudos. 🥇
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.
Activity
nornagon commentedon Sep 16, 2020
Electron compiles against a system image designed to be broadly compatible: see https://github.com/electron/debian-sysroot-image-creator. Can you compile your native modules against the same sysroot?
mceachen commentedon Sep 16, 2020
I'll try that, thanks.
mceachen commentedon Sep 16, 2020
I've cloned that repo, ran
./build/linux/sysroot_scripts/build_and_upload.py(I have a wonderful collection of ancient .debs now), but... now what? https://www.electronjs.org/?q=sysroot is empty, and https://github.com/electron/electron/issues?q=is%3Aissue+sysroot is similarly unfruitful.How do I
build out a sysroot using these ancient .debs, and
tell node-gyp or electron-rebuild to use this sysroot path?
Thanks!
github-actions commentedon Oct 7, 2022
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
github-actions commentedon Nov 6, 2022
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.