Skip to content

HAVE_KMSAN_COMPILER [=n] with Debian’s *clang-23* #2157

@paulmenzel

Description

@paulmenzel

On Debian sid/unstable with clang-23 1:23~++20260204101751+dd02b404b020-1~exp1 from suite experimental, I am unable to select KMSAN:

$ git log --oneline --no-graph --no-decorate -1
f5459048c38a0 Merge tag 'i2c-for-7.0-final' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
$ clang-23 --version
clang-23: 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]
Debian clang version 23.0.0 (++20260204101751+dd02b404b020-1~exp1)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-23/bin
$ make menuconfig CC=clang-23
[Search by pressing `/` for `KMSAN`]
Symbol: KMSAN [=n]
Type  : bool
Defined at lib/Kconfig.kmsan:8
  Prompt: KMSAN: detector of uninitialized values use
  Depends on: HAVE_ARCH_KMSAN [=y] && HAVE_KMSAN_COMPILER [=n] && DEBUG_KERNEL [=y] && !KASAN [=n] && !KCSAN [=n] && !PREEMPT_RT [=n]

I do not get, why HAVE_KMSAN_COMPILER=n, because the option should be there:

$ clang-23 -fsanitize=kernel-memory -c -x c /dev/null
clang-23: 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]
$ echo $?
0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions