Error when trying to embed libc

hi,
I can create images using linuxdeploy and they run just fine.

Now, I develop on debian testing my applications because I need some newer runtime that Debian stable doesn’t have yet.

To overcome this, I want to bundle the libraries from my system in the appimage.

I wonder if I am not at the point where appimage is not my friend anymore.

ERROR: Strip call failed: /tmp/.mount_linuxdH3i3fv/usr/bin/strip: ./AppDir/usr/lib/libc.so.6: unknown type [0x13] section .relr.dyn’`

and before:

Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libstdc++.so.6 
Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libc.so.6 
Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libm.so.6 
Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libgcc_s.so.1

The issue arise when I try to force them in with the “-l” flag.
Are we at the breakeven point in which an image like docker or buildah/podman is more suitable?

Thanks

Actually, it wasn’t an issue.

But pushing libstdc++.so.6, libm.so.6, libgcc_s.so.1 and libm.so.6 is.

After putting them in Appdir/usr/lib/x_86_64, I only have a segfault when running the app:

--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x27020} ---
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)

part of my CmakeList:

set(CMAKE_BUILD_RPATH_USE_ORIGIN true)
set(CMAKE_INSTALL_RPATH "lib")
set(CMAKE_INSTALL_PREFIX "usr")

Shoul I compile gcc12 on debian stable and put the whole library file in the appimage, pointing to it via rpath?

Ok I leave appimage alone,
I statically compiled my app and it works perfectly.

Bye