Root 6.30.08 on Ubuntu 24?

Hi,

I am trying to compile root on Ubuntu 24.
I first tried with root 6.26.10 and I get errors of the type:

In file included from /export/CHLOE/VIP/MY_GAMOS6_Ubuntu24/external/root/6.26.06/root/rootbuild/builtins/xrootd/
XROOTD-prefix/src/XROOTD/src/XrdOssCsi/XrdOssCsiRanges.cc:33:
/export/CHLOE/VIP/MY_GAMOS6_Ubuntu24/external/root/6.26.06/root/rootbuild/builtins/xrootd/XROOTD-prefix/src/XROO
TD/src/XrdOssCsi/XrdOssCsiPages.hh:95:22:
error: field ‘fn_’ has incomplete type ‘const std::string’ {aka ‘const std::__cxx11::basic_string<char>’}
   95 |    const std::string fn_;
/usr/include/c++/13/bits/stringfwd.h:72:11: note: declaration of ‘std::string’ {aka ‘class std::__cxx11::basic_s
tring<char>’}
   72 |     class basic_string;
      |           ^~~~~~~~~~~~

Then I moved to root version 6.30.08.
For this version, I had to change a cmake flag from Dcxx17 to Dcxx20: -Dimt=OFF -Dpythia6=OFF -Dcxx20=ON
But even so, something goes wrong during compilation, after doing 79%:

[ 79%] Built target RooFitJSONInterface
gmake[2]: *** No rule to make target 'builtins/openssl/OPENSSL-prefix/lib/libssl.a', needed by 'lib/libNet.so'.  Stop.
gmake[1]: *** [CMakeFiles/Makefile2:36333: net/net/CMakeFiles/Net.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[ 79%] Linking CXX shared library ../../lib/libXMLIO.so
[ 79%] Built target MathCore
[ 79%] Built target XMLIO
gmake: *** [Makefile:156: all] Error 2
CHECKING /export/CHLOE/VIP/MY_GAMOS6_Ubuntu24/external/root/6.30.08/root/lib/libImt.so
!!! ROOT HAS NOT BEEN PROPERLY INSTALLED !!!

So, is there a root version that can compile on Ubuntu 24? Or is there a way to fix the above error?

Machiel


_ROOT Version: 6.30.08 (or 6.26.10)
_Platform: Ubuntu 24
_Compiler: g++


Both of those version are now pretty ‘old’. Try with v6.32.12.

1 Like

Thanks for your help. Indeed, with 6.32.12, it was easier to compile.