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

Package:
clang-22
Source:
clang-22
Description:
C, C++ and Objective-C compiler
Submitter:
Vincent Lefevre
Date:
2026-06-01 08:27:02 UTC
Severity:
normal
#1138615#5
Date:
2026-06-01 08:15:01 UTC
From:
To:
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]