Closed cebtenzzre closed 1 month ago
That's interesting you got strip to work on archlinux, here on artix I couldn't get it to work on aynthing and that is normal I think, it is meant to be used on debian stable, there my same scripts have no issue when doing the strip.
What I do is that I set NO_STRIP=true
environment variable when testing on artix.
Please provide details about your build environment (distribution, version, compiler, libc, etc.). Thanks! Does https://github.com/probonopd/go-appimage/tree/master/src/appimagetool work better for you?
I have the same issue using linuxdeployqt (commit 8cb9438), build 67 on Ubuntu 24.04
NO_STRIP=true
environment variable didn't work, but the command line has a -no-strip
argument that works great
strip does not crash when LD_LIBRARY_PATH is not set.
So the solution would be to unset LD_LIBRARY_PATH
when strip
is run?
Please see whether the latest build fixes the issue. Thanks!
Works great, thanks for the new build
Here is the end of the output from a failing run of linuxdeployqt:
Information
OS: Arch Linux
This is the LD_LIBRARY_PATH set when calling strip, found by replacing /usr/bin/strip with a shell wrapper that dumps the environment:
Analysis
strip
can normally strip libzstd.so just fine, but because it links to libzstd.so and linuxdeploy sets LD_LIBRARY_PATH to include the localdata/lib
dir,strip
tries to strip one of its own loaded shared libs and segfaults:Suggestion
strip
does not crash when LD_LIBRARY_PATH is not set. Maybe LD_LIBRARY_PATH should only be set when callingldd
.