169 INFO: UPX is available but is disabled on non-Windows due to known compatibility problems. #8922
Replies: 3 comments 2 replies
-
|
Easiest way to explain is just to try running UPX on Linux. E.g. on latest Ubuntu: $ cat > test.c
#include <stdio.h>
void main() {
printf("hello\n");
}
$ gcc test.c
$ upx a.out
$ ./a.out
Segmentation faultTry running UPX on your own project. |
Beta Was this translation helpful? Give feedback.
-
|
Work for me. |
Beta Was this translation helpful? Give feedback.
-
|
if anyone is intrested that's an update on may 18 2025 UPX 5.0.1 brings improvements but still faces important limitations when used with PyInstaller on Linux, especially related to ELF internals. Works on most glibc-based distributions (e.g., Ubuntu, Debian, Fedora). Can reduce binary size significantly for PyInstaller one-folder mode, if .so files are excluded from compression. Where UPX 5.0.1 fails or breaks: ELF binaries with more than 2 PT_LOAD segments: PyInstaller --onefile mode: My recommendation: Use UPX only on standalone executables, not .so files. Avoid using UPX with PyInstaller |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a question regarding UPX on Linux. I understand the meaning of this warning, but I’ve seen how it optimizes the output folder size on Windows. For instance, in my case, it reduced the size from 109 MB to 70 MB.
Now, I want to know if I can safely run UPX on some Linux binaries without breaking compatibility. Is it possible that all binaries could become incompatible after compression? I’m unsure.
Currently, my output folder size is 144 MB on Linux, and I’m looking to use UPX to reduce the update time for my users.
System Information:
OS: Linux Mint 22 (Wilma)
PyInstaller Version: 6.11.1
Python Version: 3.11.4
Modules Used: PySide6, SQLAlchemy, sqlite3, Alembic, threading, unittest
Research So Far:
I have searched all open and closed issues, as well as discussions, but I couldn’t find any mention of UPX. Perhaps I missed something, but I did my best to avoid creating duplicate issues or discussions.
If you know of any existing UPX-related issues or discussions that address my concern, please share them here. I will close this discussion if it is redundant
Beta Was this translation helpful? Give feedback.
All reactions