Skip to content

CLIon Doesn't Recognize All headers From Sysroot (e.g. dlfcn.h) #7858

@auzhva

Description

@auzhva

Description of the bug:

In case of sys root used, non-c++ compiler headers are not supported. Such as "dlfcn.h". It shows red in CLion.

Image

The build itself works ok. So for compiler and Bazel there is no issue with this header.

Which category does this issue belong to?

No response

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

  1. Use toolchains_llvm
  2. Include libl in your sysroot
  3. Do #include <dlfcn.h> in your app

Which Intellij IDE are you using? Please provide the specific version.

2025.2.1

What programming languages and tools are you using? Please provide specific versions.

C++, toolchains_llvm 1.4.0, llvm 20.x

What Bazel plugin version are you using?

Bazel for CLion, 2025.08.04

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions