Continuing the discussion from Fail to include "code.h" again v6.26/{08,10} again:

The current fix
#if PY_VERSION_HEX >= 0x02050000
#include “code.h” // from Python
#include “compile.h” // from Python
still requests a non-existent code.h
Apparently Python 3.11.1 (main, Jan 6 2023, 00:00:00) [GCC 12.2.1 20221121
triggers the PY_Version_Hex test although compile.h is correct (tested)

successful-posting/28292) and posting code_

ROOT Version: N6.26.10
Platform: fedora37
_Compiler:g++ (GCC) 12.2.1

Hi! I guess that’s expected, because the backport will only make it to the next patch release, ROOT 6.26.12: 6.26.10 compilation fails with Python 3.11 · Issue #11728 · root-project/root · GitHub

So with 6.26.10 it will not work.

Have you tried using the new ROOT 6.28.00 that was released last week? I think it should work with that.

Or were you trying to build ROOT master or the 6.26.10 development branch? It’s not completely clear from your post (I’m confused by “N6.26.10”, I guess “N” is for nightly but why is there a specific release tag?).

1 Like

Sorry my post was not relevant - I was working with the current 6.26.10 source cloned from git. I had thought this might contain the fix, but apparently this is the unpatched version and the error was reported already and fixed.

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