Skip to content

Please consider static builds for Linux prebuilt binaries. #25495

Closed as not planned

Description

@mceachen

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • 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. 🥇

Activity

  1. nornagon commented on Sep 16, 2020

    @nornagon
    Contributor

    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?

  2. mceachen commented on Sep 16, 2020

    @mceachen
    Author

    I'll try that, thanks.

  3. mceachen commented on Sep 16, 2020

    @mceachen
    Author

    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

    1. build out a sysroot using these ancient .debs, and

    2. tell node-gyp or electron-rebuild to use this sysroot path?

    Thanks!

  4. github-actions commented on Oct 7, 2022

    @github-actions
    Contributor

    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!

  5. github-actions commented on Nov 6, 2022

    @github-actions
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions