too long lines were shrinked: /usr/bin/x86_64-gentoo-linux-musl-g++ -DL0_LOADER_VERSION=\"1\" -DL0_VALIDATION_LAYER_SUPPORTED_VERSION=\"1\" -DLOADER_VERSION_MAJOR=1 -DLOADER_VERSION_MINOR=6 -DLOADER_VERSION_PATCH=2 -Dze_loader_EXPORTS -I/var/tmp/portage/dev-libs/level-zero-1.6.2/work/level-zero-1.6.2/include -I/var/tmp/portage/d In file included from /var/tmp/portage/dev-libs/level-zero-1.6.2/work/level-zero-1.6.2/source/loader/ze_loader.h:15, from /var/tmp/portage/dev-libs/level-zero-1.6.2/work/level-zero-1.6.2/source/loader/ze_loader.cpp:8: /var/tmp/portage/dev-libs/level-zero-1.6.2/work/level-zero-1.6.2/source/loader/ze_loader.cpp: In member function 'ze_result_t loader::context_t::init()': /var/tmp/portage/dev-libs/level-zero-1.6.2/work/level-zero-1.6.2/source/inc/ze_util.h:28:71: error: 'RTLD_DEEPBIND' was not declared in this scope 28 | # define LOAD_DRIVER_LIBRARY(NAME) dlopen(NAME, RTLD_LAZY|RTLD_LOCAL|RTLD_DEEPBIND) | ^~~~~~~~~~~~~ /var/tmp/portage/dev-libs/level-zero-1.6.2/work/level-zero-1.6.2/source/loader/ze_loader.cpp:99:27: note: in expansion of macro 'LOAD_DRIVER_LIBRARY' 99 | auto handle = LOAD_DRIVER_LIBRARY( MAKE_LIBRARY_NAME( "ze_null", L0_LOADER_VERSION ) ); ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_musl-j4-20211209-163207 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-gentoo-linux-musl-11.2.1 * clang version 13.0.0 Target: x86_64-gentoo-linux-musl Thread model: posix InstalledDir: /usr/lib/llvm/13/bin /usr/lib/llvm/13 13.0.0 Python 3.9.9 Available Ruby profiles: [1] ruby26 (with Rubygems) [2] ruby27 (with Rubygems) [3] ruby30 (with Rubygems) * Available Rust versions: [1] rust-bin-1.57.0 * php cli: HEAD of ::gentoo commit 30a6680e46f970f64c96d1f26503f2dbbf7e4954 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Fri Dec 10 02:36:41 2021 +0000 2021-12-10 02:36:40 UTC emerge -qpvO dev-libs/level-zero [ebuild N ] dev-libs/level-zero-1.6.2
Created attachment 758064 [details] emerge-info.txt
Created attachment 758065 [details] dev-libs:level-zero-1.6.2:20211210-033741.log
Created attachment 758066 [details] emerge-history.txt
Created attachment 758067 [details] environment
Created attachment 758068 [details] etc.portage.tar.bz2
Created attachment 758069 [details] logs.tar.bz2
Created attachment 758070 [details] temp.tar.bz2
Strange RTLD_DEEPBIND is defined in /usr/include/bits/dlgcn.h on my system. That header file should come with glibc.
(In reply to Jan Henke from comment #8) > Strange RTLD_DEEPBIND is defined in /usr/include/bits/dlgcn.h on my system. > That header file should come with glibc. this is not glibc it is musl.
Yes, I did not notice this is on a musl system. But that indeeds explains the problem, as musl does not support the RTLD_DEEPBIND flag for dlopen. So this is indeed a glibc vs musl issue.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19d020e6d79ea7ff9e5d53190d1cfd3b592a1bcc commit 19d020e6d79ea7ff9e5d53190d1cfd3b592a1bcc Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2021-12-15 17:54:51 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2021-12-15 18:03:23 +0000 package.{mask,use.mask}: mask dev-libs/level-zero on musl Closes: https://bugs.gentoo.org/828775 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> profiles/features/musl/package.mask | 4 ++++ profiles/features/musl/package.use.mask | 4 ++++ 2 files changed, 8 insertions(+)