Skip to content
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

arm64: qemu-i386-static: Could not open '/lib/ld-linux.so.2': No such file or directory #8775

Open
DaanVervacke opened this issue Jan 17, 2025 · 2 comments

Comments

@DaanVervacke
Copy link

DaanVervacke commented Jan 17, 2025

  • Electron-Builder Version: 26.0.0-alpha.9
  • Node Version: 20.18.1
  • Electron Version: 31.7.6
  • Target: arm64
  • System: Fedora Linux Asahi Remix 41 (KDE Plasma) aarch64

When building a .deb/.rpm package on Fedora Linux, I'm encountering the following issues:

  • building        target=deb arch=arm64 file=dist/HttpToolkit-1.19.4.deb
  • spawning        command=/home/redacted/httptoolkit-desktop/node_modules/app-builder-bin/linux/arm64/app-builder fpm --configuration {"args":["--architecture","arm64","--after-install","/tmp/t-Edu5A9/0-after-install","--after-remove","/tmp/t-Edu5A9/2-after-remove","--description","\n HTTP(S) debugging, development & testing tool","--version","1.19.4","--package","/home/redacted/httptoolkit-desktop/dist/HttpToolkit-1.19.4.deb","--name","httptoolkit","--maintainer","[email protected]","--url","https://httptoolkit.tech","--vendor","[email protected]","--deb-priority","optional","--license","AGPL-3.0-or-later","/home/redacted/httptoolkit-desktop/dist/linux-arm64-unpacked/=/opt/HTTP Toolkit","/home/redacted/httptoolkit-desktop/src/icons/icon.svg=/usr/share/icons/hicolor/scalable/apps/httptoolkit.svg","/tmp/t-Edu5A9/8-httptoolkit.desktop=/usr/share/applications/httptoolkit.desktop"],"target":"deb","customDepends":["libgtk-3-0","libnotify4","libnss3","libxss1","libxtst6","xdg-utils","libatspi2.0-0","libuuid1","libsecret-1-0"],"customRecommends":["libappindicator3-1"]}
  • found existing  path=/root/.cache/electron-builder/fpm/fpm-1.9.3-2.3.1-linux-x86
  • execute command  command=/root/.cache/electron-builder/fpm/fpm-1.9.3-2.3.1-linux-x86/fpm -s dir --force -t deb --log debug -d libgtk-3-0 -d libnotify4 -d libnss3 -d libxss1 -d libxtst6 -d xdg-utils -d libatspi2.0-0 -d libuuid1 -d libsecret-1-0 --deb-recommends libappindicator3-1 --deb-compression xz --architecture arm64 --after-install /tmp/t-Edu5A9/0-after-install --after-remove /tmp/t-Edu5A9/2-after-remove --description '
     HTTP(S) debugging, development & testing tool' --version 1.19.4 --package /home/redacted/httptoolkit-desktop/dist/HttpToolkit-1.19.4.deb --name httptoolkit --maintainer [email protected] --url https://httptoolkit.tech --vendor [email protected] --deb-priority optional --license AGPL-3.0-or-later '/home/redacted/httptoolkit-desktop/dist/linux-arm64-unpacked/=/opt/HTTP Toolkit' /home/redacted/httptoolkit-desktop/src/icons/icon.svg=/usr/share/icons/hicolor/scalable/apps/httptoolkit.svg /tmp/t-Edu5A9/8-httptoolkit.desktop=/usr/share/applications/httptoolkit.desktop
                     workingDirectory=
  ⨯ cannot execute  cause=exit status 255
                    errorOut=qemu-i386-static: Could not open '/lib/ld-linux.so.2': No such file or directory

                    command=/root/.cache/electron-builder/fpm/fpm-1.9.3-2.3.1-linux-x86/fpm -s dir --force -t deb --log debug -d libgtk-3-0 -d libnotify4 -d libnss3 -d libxss1 -d libxtst6 -d xdg-utils -d libatspi2.0-0 -d libuuid1 -d libsecret-1-0 --deb-recommends libappindicator3-1 --deb-compression xz --architecture arm64 --after-install /tmp/t-Edu5A9/0-after-install --after-remove /tmp/t-Edu5A9/2-after-remove --description '
     HTTP(S) debugging, development & testing tool' --version 1.19.4 --package /home/redacted/httptoolkit-desktop/dist/HttpToolkit-1.19.4.deb --name httptoolkit --maintainer [email protected] --url https://httptoolkit.tech --vendor [email protected] --deb-priority optional --license AGPL-3.0-or-later '/home/redacted/httptoolkit-desktop/dist/linux-arm64-unpacked/=/opt/HTTP Toolkit' /home/redacted/httptoolkit-desktop/src/icons/icon.svg=/usr/share/icons/hicolor/scalable/apps/httptoolkit.svg /tmp/t-Edu5A9/8-httptoolkit.desktop=/usr/share/applications/httptoolkit.desktop
                    workingDir=
  • exited          command=app-builder code=2 pid=58739
  • async task error  error=/home/redacted/httptoolkit-desktop/node_modules/app-builder-bin/linux/arm64/app-builder process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code:
2

As far as I know, there is no realy way to install glibc with 32-bit packages on Linux arm64. Not really sure how to tackle this issue.
Thanks!

@DaanVervacke DaanVervacke changed the title qemu-i386-static: Could not open '/lib/ld-linux.so.2': No such file or directory arm64: qemu-i386-static: Could not open '/lib/ld-linux.so.2': No such file or directory Jan 17, 2025
@miurahr
Copy link

miurahr commented Jan 21, 2025

It may be a duplicate issue with #6116 and the workaround was suggested at #5154 (comment)
There is also a suggestion of tasks to resolve at signalapp/Signal-Desktop#6063 (comment)

@miurahr
Copy link

miurahr commented Jan 22, 2025

@DaanVervacke you can modify your project such as

-    "build:electron": "npm run server:setup && electron-builder build",
+    "build:electron": "npm run server:setup && USE_SYSTEM_FPM=1 electron-builder build",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants