# Rootcling warnings when compiling ROOT 6.36.08 with C++23

**URL:** <https://root-forum.cern.ch/t/rootcling-warnings-when-compiling-root-6-36-08-with-c-23/64762>\
**Category:** ROOT\
**Tags:** root\
**Created:** [March 19, 2026, 12:57pm UTC](https://root-forum.cern.ch/t/rootcling-warnings-when-compiling-root-6-36-08-with-c-23/64762 "2026-03-19T12:57:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![uhlig](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/uhlig/32/23800_2.png) [@uhlig](https://root-forum.cern.ch/u/uhlig)\
**Post date:** [March 19, 2026, 12:57pm UTC](https://root-forum.cern.ch/t/rootcling-warnings-when-compiling-root-6-36-08-with-c-23/64762/1 "2026-03-19T12:57:13Z")

</div>

Hi,

when compiling ROOT 6.36.08 on Debian12 with C++ standard 23 I get warnings from rootcling which I would not expect. The warning is attached below. The installation works and I couldn’t see any problem on first glance. I can also build my project unfortunately getting the same warnings.

The configuration correctly encounters for the C++ standard and passes it correctly to the compiler. For me it looks like rootcling does not know that a different C++ standard is used and somehow uses the \_\_cplusplus default value instead the one defined when using -std=c++23.

```auto
[52%] Generating G__Thread.cxx, ../../lib/libThread.rootmap

In file included from input_line_3:2:

In file included from /tmp/uhlig/fairsoft/build_debian13/Build/root/include/Rtypes.h:23:

In file included from /tmp/uhlig/fairsoft/build_debian13/Build/root/include/RtypesCore.h:23:

In file included from /tmp/uhlig/fairsoft/build_debian13/Build/root/include/ROOT/RConfig.hxx:23:

/tmp/uhlig/fairsoft/build_debian13/Build/root/include/RConfigure.h:30:4: warning: "The C++ standard in this build does not match ROOT configuration (202100L); this might cause unexpected issues" [-W#warnings]

# warning "The C++ standard in this build does not match ROOT configuration (202100L); this might cause unexpected issues"

   ^

```

* * *

_ROOT Version:_ 6.36.08  
_Platform:_ linuxx8664gcc  
_Compiler:_ GCC 12.2

* * *

System: Linux-4.18.0-513.24.1.el8\_9.x86\_64

ROOT Platform: linux

ROOT Architecture: linuxx8664gcc

Processor: 128 core AMD EPYC 7713 64-Core Processor (x86\_64)

Build type: RelWithDebInfo

Install path: /tmp/uhlig/fairsoft/install

Compiler: GNU 12.2.0

C++ standard: 23

Ciao

Florian

---

<div class="post-metadata">

**Author:** ![vpadulan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vpadulan/32/25315_2.png) [@vpadulan](https://root-forum.cern.ch/u/vpadulan)\
**Post date:** [March 19, 2026, 3:33pm UTC](https://root-forum.cern.ch/t/rootcling-warnings-when-compiling-root-6-36-08-with-c-23/64762/2 "2026-03-19T15:33:12Z")

</div>

Dear @uhlig ,

Thanks for reaching out to the forum!

I’ve seen such errors in the past where on the same environment/machine there were some leftover ROOT builds or installations. Or sometimes when a pre-existing ROOT build is rebuilt incrementally. Can you make sure that you are rebuilding ROOT from scratch, in a clean environment, and no other ROOT installations are present on the machine (or they are properly isolated)?

Cheers,  
Vincenzo

---

<div class="post-metadata">

**Author:** ![uhlig](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/uhlig/32/23800_2.png) [@uhlig](https://root-forum.cern.ch/u/uhlig)\
**Post date:** [March 20, 2026, 7:31am UTC](https://root-forum.cern.ch/t/rootcling-warnings-when-compiling-root-6-36-08-with-c-23/64762/3 "2026-03-20T07:31:48Z")

</div>

Dear @vpadulan,

I did the build in a container which does not contain root. To be 100% sure that I didn’t do a mistake I redid the compilation today from scratch after checking the environment for any hints of root. I am sure that I have no root in the environment and I started with a fresh checkout of the code.

Also the configuration was minimal

```auto
cmake -S . -B build -DCMAKE_CXX_STANDARD=23 -DCMAKE_INSTALL_PREFIX=/tmp/uhlig/root_install

cmake --build build -j60

```

When generating the dictionaries I get exactely the same warnings as reported before.

Ciao

Florian

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [April 3, 2026, 7:32am UTC](https://root-forum.cern.ch/t/rootcling-warnings-when-compiling-root-6-36-08-with-c-23/64762/4 "2026-04-03T07:32:26Z")

</div>

Closed on April 3, 2026, 7:32am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
