Skip to content

Conversation

@jimis
Copy link

@jimis jimis commented Dec 6, 2023

There the binaries depend on libraries of different minor version than the installed library, which is found at runtime via symlinks.

For example, ldd /usr/bin/clang-17 reports among other lines:

libz.so.1 => /lib64/glibc-hwcaps/x86-64-v3/libz.so.1.3 (0x00007f3fdc8ff000)

Before the patch, icecc-create-env /usr/bin/clang-17 would report:

adding file /lib64/libz.so.1.3=/usr/lib64/libz.so.1.3

The executable wouldn't run because it can't find libz.so.1. After the patch:

adding file /lib64/libz.so.1=/usr/lib64/libz.so.1.3

And the executable runs fine.

There the binaries depend on libraries of different minor version than
the installed library, which is found at runtime via symlinks.

For example, ldd /usr/bin/clang-17 reports among other lines:

  libz.so.1 => /lib64/glibc-hwcaps/x86-64-v3/libz.so.1.3 (0x00007f3fdc8ff000)

Before the patch, icecc-create-env /usr/bin/clang-17 would report:

  adding file /lib64/libz.so.1.3=/usr/lib64/libz.so.1.3

The executable wouldn't run because it can't find libz.so.1.
After the patch:

  adding file /lib64/libz.so.1=/usr/lib64/libz.so.1.3

And the executable runs fine.
@jimis jimis force-pushed the create_env_opensuse_fix branch from 2ae6b16 to 4f42810 Compare December 6, 2023 17:46
@kdave
Copy link

kdave commented Jun 25, 2025

Thank you so much, so glad I found this. Figuring out why the worker hosts don't compile anything is painful, on openSUSE it's indeed due to the libz.1 and symbol mismatches. Your fixed script works for me, hopefully it can be merged.

@kdave
Copy link

kdave commented Jun 25, 2025

There's probably missing case to handle zlib-ng-compat package, the file in the environment tar.gz is usr/lib64/zlib-ng-compat/libz.so.1 and also fails to resolve on the worker host.

@kdave
Copy link

kdave commented Jun 25, 2025

So, removing zlib-ng and its compat packages works, libz1-x86-64-v3 is handled by the fixed script.

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.

2 participants