WSL Build from source error: RInt.pcm is out of date \ cannot read module signature

Note the original problem is recorded in Missing Rint dependency for rootcling · Issue #11686 · root-project/root · GitHub
and solved by Add Rint as a dependency of rootcling by pcanal · Pull Request #11687 · root-project/root · GitHub.

The Python error will be fixed today by [PyROOT] Enclose tuple unpacking in return statement with parenthesis by vepadulano · Pull Request #11685 · root-project/root · GitHub

Sure thankyou @pcanal , @Axel and @moneta for helping me out.

Hello @Axel @pcanal
I am still getting a different error after resolving the python error

[ 96%] Building CXX object roofit/hs3/test/CMakeFiles/testRooFitHS3.dir/testRooFitHS3.cxx.o
In file included from /home/neel/Desktop/Root/root/roofit/hs3/test/testRooFitHS3.cxx:21:
/home/neel/Desktop/Root/root/roofit/roofitcore/inc/RooProdPdf.h:76:14: error: ‘RooArgSet* RooProdPdf::getConstraints(const RooArgSet&, RooArgSet&, bool, bool) const’ marked ‘override’, but does not override
   76 |   RooArgSet* getConstraints(const RooArgSet& observables, RooArgSet& constrainedParams,
      |              ^~~~~~~~~~~~~~
In file included from /home/neel/Desktop/Root/install/include/RooArgusBG.h:19,
                 from /home/neel/Desktop/Root/root/roofit/hs3/test/testRooFitHS3.cxx:14:
/home/neel/Desktop/Root/install/include/RooAbsPdf.h:215:22: warning: ‘virtual RooArgSet* RooAbsPdf::getConstraints(const RooArgSet&, RooArgSet&, bool) const’ was hidden [-Woverloaded-virtual]
  215 |   virtual RooArgSet* getConstraints(const RooArgSet& /*observables*/, RooArgSet& /*constrainedParams*/, bool /*stripDisconnected*/) const {
      |                      ^~~~~~~~~~~~~~
In file included from /home/neel/Desktop/Root/root/roofit/hs3/test/testRooFitHS3.cxx:21:
/home/neel/Desktop/Root/root/roofit/roofitcore/inc/RooProdPdf.h:76:14: warning:   by ‘RooArgSet* RooProdPdf::getConstraints(const RooArgSet&, RooArgSet&, bool, bool) const’ [-Woverloaded-virtual]
   76 |   RooArgSet* getConstraints(const RooArgSet& observables, RooArgSet& constrainedParams,
      |              ^~~~~~~~~~~~~~
make[2]: *** [roofit/hs3/test/CMakeFiles/testRooFitHS3.dir/build.make:63: roofit/hs3/test/CMakeFiles/testRooFitHS3.dir/testRooFitHS3.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:50771: roofit/hs3/test/CMakeFiles/testRooFitHS3.dir/all] Error 2
make: *** [Makefile:163: all] Error 2

Is there any solution to this to get the build done?

Hi,
It looks to me you are using an old version of the code.
The signature of the function is not the one in ROOT master, for RooAbsPdf that you have from
/home/neel/Desktop/Root/install/include/RooAbsPdf.h:215
while RooProdPdf is from /home/neel/Desktop/Root/root/roofit/roofitcore/inc/RooProdPdf.h

Please check your configuration, $ROOTSYS, etc…

Lorenzo

Hi @Neel_Shah ,

as a side note in general there is no need to build from source to get ROOT running on WSL. You should be able to use the pre-compiled binaries or the conda/snap packages, see Complete ROOT Installation Instructions for WSL (Ubuntu 18.04 on Windows 10) .

If you have to build from source: as Lorenzo said please make sure it’s the latest v6-26-00-patches or the latest master branch (you might have to git pull). We do not see those compilation errors with those branches, they built correctly in the nightly builds.

Cheers,
Enrico