Your message dated Fri, 13 Mar 2026 01:55:25 -0600
with message-id <[email protected]>
and subject line HIP fatbin symbol search warning is of no concern
has caused the Debian Bug report #1128896,
regarding clang-21: HIP fatbin symbol search could not find library: libdl.a
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1128896: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1128896
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: clang-21
Version: 1:21.1.8-3+b1
Severity: normal
X-Debbugs-Cc: [email protected], [email protected]

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

--- End Message ---
--- Begin Message --- Yaxun Liu, an upstream LLVM developer, has informed me that "the warning is just a false warning and should not cause any errors." He explained that when compiling with -fgpu-rdc, the clang driver checks archives to see if they contain device bitcode and links them if they do. The libdl.a archive doesn't contain GPU code, so it doesn't matter whether it's found or not.

The needless warning has already been eliminated upstream in LLVM trunk by a change to a new offload driver for HIP. I don't think there's anything that needs to be done in Debian for this issue.

Sincerely,
Cory Bloor

--- End Message ---

Reply via email to