Bug#1128896: clang-21: HIP fatbin symbol search could not find library: libdl.a
Cordell Bloor
cgmb at debian.org
Tue Feb 24 07:30:54 GMT 2026
Package: clang-21
Version: 1:21.1.8-3+b1
Severity: normal
X-Debbugs-Cc: cgmb at debian.org, rocm.compiler.support at amd.com
Dear Maintainer,
While preparing the rccl 6.4.4.1 package, I noticed that clang is searching for
libdl.a, but is not finding this library. On Debian, the libdl.a archive resides
within /usr/lib/$multiarch, but clang is merely searching /usr/lib.
I'm unsure of the consequences of this failure to find libdl.a. I found
that while building on x86_64, I could ensure that the search succeeded
by adding -L/usr/lib/x86_64-linux-gnu to the LDFLAGS when building rccl.
The compilation command and the error message were:
# /usr/bin/hipcc -fPIC -gz -g -O2 -ffile-prefix-map=/root/rccl/rccl=. -Xarch_host -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Xarch_host -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -shared -v -Wl,-z,relro -Wl,-z,now -Xoffload-linker -mllvm=-amdgpu-kernarg-preload-count=16 -Xlinker --dependency-file=CMakeFiles/rccl.dir/link.d -Wl,-soname,librccl.so.1 -o librccl.so.1.0 CMakeFiles/rccl.dir/hipify/src/bootstrap.cc.o CMakeFiles/rccl.dir/hipify/src/channel.cc.o <...>
Debian clang version 21.1.8 (3+b1)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-21/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/15
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/15
Candidate multilib: .;@m64
Selected multilib: .;@m64
Found HIP installation: /usr, version 6.4.43484
HIP fatbin symbol search could not find library: libdl.a
Found undefined HIP fatbin symbol: __hip_fatbin_1d4e411bebf5072c
Found undefined HIP fatbin symbol: __hip_fatbin_232f9491010201eb
<...>
Found undefined HIP gpubin handle symbol: __hip_gpubin_handle_1d4e411bebf5072c
Found undefined HIP gpubin handle symbol: __hip_gpubin_handle_232f9491010201eb
<...>
Sincerely,
Cory Bloor
-- System Information:
Debian Release: forky/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.17.13+deb13-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Versions of packages clang-21 depends on:
ii binutils 2.46-2
ii libc6 2.42-13
ii libc6-dev 2.42-13
ii libclang-common-21-dev 1:21.1.8-3+b1
ii libclang-cpp21 1:21.1.8-3+b1
ii libclang1-21 1:21.1.8-3+b1
ii libgcc-15-dev 15.2.0-14
ii libgcc-s1 15.2.0-14
ii libllvm21 1:21.1.8-3+b1
ii libobjc-15-dev 15.2.0-14
ii libstdc++-15-dev 15.2.0-14
ii libstdc++6 15.2.0-14
ii llvm-21-linker-tools 1:21.1.8-3+b1
Versions of packages clang-21 recommends:
ii clang-tools-21 1:21.1.8-3+b1
pn llvm-21-dev <none>
ii python3 3.13.9-3
Versions of packages clang-21 suggests:
pn clang-21-doc <none>
pn wasi-libc <none>
-- no debconf information
More information about the Pkg-llvm-team
mailing list