Build error: No such file or directory

I am trying to build the master from source but the following error occurs.

Scanning dependencies of target RooFitHS3
[ 98%] Building CXX object roofit/hs3/CMakeFiles/RooFitHS3.dir/src/JSONParser.cxx.o
[ 98%] Building CXX object roofit/hs3/CMakeFiles/RooFitHS3.dir/src/RooJSONFactoryWSTool.cxx.o
[ 98%] Building CXX object roofit/hs3/CMakeFiles/RooFitHS3.dir/src/HistFactoryJSONTool.cxx.o
[ 98%] Building CXX object roofit/hs3/CMakeFiles/RooFitHS3.dir/src/JSONFactories_RooFitCore.cxx.o
[ 98%] Building CXX object roofit/hs3/CMakeFiles/RooFitHS3.dir/src/JSONFactories_HistFactory.cxx.o
[ 98%] Building CXX object roofit/hs3/CMakeFiles/RooFitHS3.dir/src/JSONInterface.cxx.o
/home/Downloads/root/roofit/hs3/src/HistFactoryJSONTool.cxx:16:10: fatal error: RooStats/HistFactory/Measurement.h: No such file or directory
   16 | #include "RooStats/HistFactory/Measurement.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [roofit/hs3/CMakeFiles/RooFitHS3.dir/src/HistFactoryJSONTool.cxx.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
/home/Downloads/root/roofit/hs3/src/JSONFactories_HistFactory.cxx:16:10: fatal error: RooStats/HistFactory/ParamHistFunc.h: No such file or directory
   16 | #include <RooStats/HistFactory/ParamHistFunc.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [roofit/hs3/CMakeFiles/RooFitHS3.dir/src/JSONFactories_HistFactory.cxx.o] Error 1
gmake[1]: *** [roofit/hs3/CMakeFiles/RooFitHS3.dir/all] Error 2
gmake: *** [all] Error 2

I have tried again on a machine with libxml2-devel and get a successful build. Thanks a lot!

ROOT Version: 6.27/01
Platform: CentOS7.9
Compiler: gcc9.3.0

As it is a roostats/roofit error, @moneta mays have an idea about it.

sorry for the trouble, this is a known, recent bug in the build system fixed by [RF] Build HistFactory also with xml=OFF, only excluding hist2workspace by guitargeek · Pull Request #10104 · root-project/root · GitHub .

In the meanwhile installing xlm development packages on your machine should work around the problem (e.g. libxml2-dev on some Linux flavors).

cc: @jonas


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