Bug#1138615: clang-22 outputs a warning about future releases of the clang compiler

Vincent Lefevre vincent at vinc17.net
Mon Jun 1 09:15:01 BST 2026


Package: clang-22
Version: 1:22.1.6-1
Severity: important

Any invocation of clang-22 outputs a warning:

clang-22: warning: future releases of the clang compiler will prefer GCC installations containing libstdc++ include directories; '/usr/lib/gcc/x86_64-linux-gnu/15' would be chosen over '/usr/lib/gcc/x86_64-linux-gnu/16' [-Wgcc-install-dir-libstdcxx]

and with -Werror, this makes clang-22 always fail:

clang-22: error: future releases of the clang compiler will prefer GCC installations containing libstdc++ include directories; '/usr/lib/gcc/x86_64-linux-gnu/15' would be chosen over '/usr/lib/gcc/x86_64-linux-gnu/16' [-Werror,-Wgcc-install-dir-libstdcxx]

-- System Information:
Debian Release: forky/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 7.0.4+deb14-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages clang-22 depends on:
ii  binutils                2.46-3
ii  libc6                   2.42-16
ii  libc6-dev               2.42-16
ii  libclang-common-22-dev  1:22.1.6-1
ii  libclang-cpp22          1:22.1.6-1
ii  libclang1-22            1:22.1.6-1
ii  libgcc-15-dev           15.2.0-17
ii  libgcc-s1               16.1.0-1
ii  libllvm22               1:22.1.6-1
ii  libobjc-15-dev          15.2.0-17
ii  libstdc++-15-dev        15.2.0-17
ii  libstdc++6              16.1.0-1
ii  llvm-22-linker-tools    1:22.1.6-1

Versions of packages clang-22 recommends:
ii  clang-tools-22  1:22.1.6-1
ii  llvm-22-dev     1:22.1.6-1
ii  python3         3.13.9-3

Versions of packages clang-22 suggests:
ii  clang-22-doc  1:22.1.6-1
pn  wasi-libc     <none>

-- no debconf information

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)



More information about the Pkg-llvm-team mailing list