Skip to content

ephemeral run: Fix missing libgcc.so errors in entrypoint#298

Merged
gursewak1997 merged 1 commit into
bootc-dev:mainfrom
petracvv:missing_libgcc
Jul 16, 2026
Merged

ephemeral run: Fix missing libgcc.so errors in entrypoint#298
gursewak1997 merged 1 commit into
bootc-dev:mainfrom
petracvv:missing_libgcc

Conversation

@petracvv

Copy link
Copy Markdown
Contributor

In some host distributions not all system libraries are in the top-level /usr/lib and /usr/lib64 directories. Since we are mounting /usr from the host into the container, we need to account for that by also mounting the local ld.so.cache

Fixes #296

I don't think we need to worry about libraries in /opt as the bcvk binary has very minimal linking requirements:

❯ ldd ~/.local/bin/bcvk
        linux-vdso.so.1 (0x00007f499d3de000)
        libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/15/libgcc_s.so.1 (0x00007f499d382000)
        libm.so.6 => /usr/lib64/libm.so.6 (0x00007f499d26d000)
        libc.so.6 => /usr/lib64/libc.so.6 (0x00007f499ca14000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f499d3e0000)

Comment thread crates/kit/scripts/entrypoint.sh Outdated
In some host distributions not all system libraries are in
the top-level /usr/lib and /usr/lib64 directories. Since
we are mounting /usr from the host into the container, we
need to account for that by also mounting the local ld.so.cache

Signed-off-by: Mihai Petracovici <petracvv@users.noreply.github.com>
@gursewak1997

Copy link
Copy Markdown
Collaborator

Thanks for working on this.

@gursewak1997
gursewak1997 enabled auto-merge (squash) July 16, 2026 03:42
@gursewak1997
gursewak1997 merged commit 4c059db into bootc-dev:main Jul 16, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Entrypoint fails with libgcc_s.so.1: cannot open shared object file

2 participants