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

Error during build: Compressor "xz" is not supported #4837

Closed
AstroGD opened this issue Apr 2, 2020 · 12 comments
Closed

Error during build: Compressor "xz" is not supported #4837

AstroGD opened this issue Apr 2, 2020 · 12 comments
Labels

Comments

@AstroGD
Copy link

AstroGD commented Apr 2, 2020

  • Version: 22.4.1
  • Electron Version: 8.2.0
  • Electron Type (current, beta, nightly): Current
  • Electron Updater: Not used
  • Target: Linux armv7l snap/appImage/deb (Error on all three package types)

When trying to build my application I run into the following error:

⨯ cannot execute  cause=exit status 1
                    errorOut=/home/astrogd/.cache/electron-builder/appimage/appimage-12.0.1/linux-arm32/mksquashfs: Compressor "xz" is not supported!
    /home/astrogd/.cache/electron-builder/appimage/appimage-12.0.1/linux-arm32/mksquashfs: Compressors available:
        gzip (default)

                    command=/home/astrogd/.cache/electron-builder/appimage/appimage-12.0.1/linux-arm32/mksquashfs /home/astrogd/.cache/electron-builder/snap/snap-template-electron-4.0-1-armhf/gnome-platform /home/astrogd/.cache/electron-builder/snap/snap-template-electron-4.0-1-armhf/.DS_Store /home/astrogd/.cache/electron-builder/snap/snap-template-electron-4.0-1-armhf/desktop-gnome-specific.sh /home/astrogd/.cache/electron-builder/snap/snap-template-electron-4.0-1-armhf/usr /home/astrogd/.cache/electron-builder/snap/snap-template-electron-4.0-1-armhf/data-dir /home/astrogd/.cache/electron-builder/snap/snap-template-electron-4.0-1-armhf/lib /home/astrogd/.cache/electron-builder/snap/snap-template-electron-4.0-1-armhf/desktop-common.sh /home/astrogd/.cache/electron-builder/snap/snap-template-electron-4.0-1-armhf/desktop-init.sh /home/astrogd/Dev/dist/__snap-armhf/command.sh /home/astrogd/Dev/dist/__snap-armhf/scripts /home/astrogd/Dev/dist/__snap-armhf/meta /home/astrogd/Dev/dist/linux-armv7l-unpacked/libGLESv2.so /home/astrogd/Dev/dist/linux-armv7l-unpacked/crashpad_handler /home/astrogd/Dev/dist/linux-armv7l-unpacked/libvk_swiftshader.so /home/astrogd/Dev/dist/linux-armv7l-unpacked/swiftshader /home/astrogd/Dev/dist/linux-armv7l-unpacked/v8_context_snapshot.bin /home/astrogd/Dev/dist/linux-armv7l-unpacked/resources.pak /home/astrogd/Dev/dist/linux-armv7l-unpacked/libffmpeg.so /home/astrogd/Dev/dist/linux-armv7l-unpacked/resources /home/astrogd/Dev/dist/linux-armv7l-unpacked/raspi-foyer-anzeige /home/astrogd/Dev/dist/linux-armv7l-unpacked/snapshot_blob.bin /home/astrogd/Dev/dist/linux-armv7l-unpacked/locales /home/astrogd/Dev/dist/linux-armv7l-unpacked/chrome_200_percent.pak /home/astrogd/Dev/dist/linux-armv7l-unpacked/libEGL.so /home/astrogd/Dev/dist/linux-armv7l-unpacked/icudtl.dat /home/astrogd/Dev/dist/linux-armv7l-unpacked/chrome_100_percent.pak /home/astrogd/Dev/dist/linux-armv7l-unpacked/vk_swiftshader_icd.json /home/astrogd/Dev/dist/raspi-foyer-anzeige_1.0.0_armhf.snap -no-progress -quiet -noappend -comp xz -no-xattrs -no-fragments -all-root
                    workingDir=
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! raspi-foyer-anzeige@1.0.0 dist: `electron-builder --linux --armv7l deb`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the raspi-foyer-anzeige@1.0.0 dist script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/astrogd/.npm/_logs/2020-04-02T09_15_13_371Z-debug.log

Npm Debug log is attached.

I'm running Ubuntu Core in Classic mode on a Raspberry Pi 3B+

Is there a package that needs to be installed to enable xz compression?
If so it is propably not installed, can you tell me which package this is?

If you need further information I'm happy to provide it.

Attachments

@centerorbit
Copy link

centerorbit commented Apr 28, 2020

I too experienced this issue, but passing a --dir fixed it for me. Give that a try?

Related: #4279

@stale
Copy link

stale bot commented Jun 27, 2020

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the backlog label Jun 27, 2020
@stale stale bot closed this as completed Jul 5, 2020
@6XGate
Copy link

6XGate commented Jul 18, 2020

This issue appears to be with the appimage mksquashfs not support liblzma (xz). Not sure why that is. Even installing squashfs-tools does not fix it.

@miyanoshiyo
Copy link

same problem

@miyanoshiyo
Copy link

This issue appears to be with the appimage mksquashfs not support liblzma (xz). Not sure why that is. Even installing squashfs-tools does not fix it.

How did you solve this problem?

@6XGate
Copy link

6XGate commented Jul 29, 2020

I didn't , it's still not working.

@airfield20
Copy link

Also having this issue when running CI on ARM server, can this be reopened?

@6XGate
Copy link

6XGate commented Sep 17, 2020

Not sure what there process is for this, but it definitely blocked me from releasing a new version of my BridgeCmdr project. No obvious workaround.

@Alesvetina
Copy link

Any news on this? I also cannot build my app in Raspberry PI, same error: Compressor "xz" is not supported!

@6XGate
Copy link

6XGate commented Dec 14, 2020

I had to open another ticket for this, it is #5153 for the AppImage build. I've been trying to keep on top of the bot.

@Alesvetina
Copy link

Just for info, I was able to build it by setting:
"compression": "normal",
in my electron settings.
The documentation says that there is not much size difference anyway.
Hope this helps anyone.

@Tony642
Copy link

Tony642 commented Jun 2, 2022

Hi, I have the same problem, and no matter what value I set on "compression", the electron-builder keep giving me the same error message:

⨯ cannot execute  cause=exit status 1
                    errorOut=/home/tony/.cache/electron-builder/appimage/appimage-12.0.1/linux-arm32/mksquashfs: Compressor "xz" is not supported!
    /home/tony/.cache/electron-builder/appimage/appimage-12.0.1/linux-arm32/mksquashfs: Compressors available:
        gzip (default)

My node.js version: 14.15.0
My electron version: 13.6.9
My electron-builder version: 22.14.13
Target: Linux armv7l
Device: Raspberry Pi 4 Model B Rev 1.2

And this is my configuration under vue.config.js:

            builderOptions: {
                "productName":"sys-ofl",
                "appId": "com.123",
                "copyright":"xxxx",
                "compression": "normal", 
                "directories": {
                    "output": "build"
                }, 
                "asar": true
            }

Please help me out! Thx

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

No branches or pull requests

7 participants