Compiling with ROOT (issue specific to lxplus default root installation)

Hi all,

Quick question on some issues with compiling ROOT programs.
Consider the simple test.cxx.

#include <ROOT/RDataFrame.hxx>
#include <iostream>
int main()
{
	auto rdf = ROOT::RDataFrame(10);
	auto df = rdf.Define("x", "rdfentry_");

	auto n = rdf.Count();
	std::cout << "Entries :" << n.GetValue() << std::endl;
}

I previously used to be able to compile this as

g++ -g -Wall -Wextra -Wpedantic -o "test" "test.cxx" $(root-config --cflags --libs)

Currently on lxplus (using default installation of root) trying to do the same gives me an error.

g++ -g -Wall -Wextra -Wpedantic -o "test" "test.cxx" $(root-config --cflags --libs)
In file included from /usr/include/root/ROOT/RDF/RInterface.hxx:15,
                 from /usr/include/root/ROOT/RDataFrame.hxx:20,
                 from test.cxx:1:
/usr/include/root/ROOT/RDF/ActionHelpers.hxx:37:10: fatal error: ROOT/RHist.hxx: No such file or directory
   37 | #include <ROOT/RHist.hxx>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.

My local installation seems to have the same root version and works without any issues there?
And sourcing from /cvmfs/sft.cern.ch/lcg/app/releases/ROOT/6.40.02/x86_64-almalinux9.8-gcc115-opt/bin/thisroot.sh seems to fix it as well?

Just wanted to check default installation of root on lxplus is now broken? Or am I just missing some flags during my compilation? Or something else?
Thank you.


ROOT Version: 6.40.02
Platform: linuxx8664gcc
Compiler: g++ (GCC) 11.5.0 20240719 (Red Hat 11.5.0-14) std201703


Hi, thanks for reporting, we are looking into it.

A ticket has just been open in the LXPLUS Service portal. We’ll keep you informed.