Dimitri,

I don't know if this will suffice.  With glibc's decision to remove
libpthread, I believe we will need to explicitly copy libpthread.so, at
least temporarily until everything else doesn't explicitly link against
it.

Taking the stub binary your MP is generating as an example (running on
Jammy):

# gcc -Wl,--no-as-needed -shared -pthread -l:libgcc_s.so.1 -o bla
# ldd bla 
        linux-vdso.so.1 (0x00007ffdba94d000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 
(0x00007f581d651000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f581d429000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f581d678000)

We see that it's not linked against pthread.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958594

Title:
  Boot error: libgcc_s.so.1 must be installed for pthread_exit to work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1958594/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to