Build ROOT from source on MacOS Monterey. ERROR: RInt.pcm is out of date

Hi, everyone!

I am trying to install ROOT (version 6.26.02) from source on MacOS Monterey 12.4. I got the following error:

"[ 86%] Built target Rint

[ 86%] Generating G__MathMore.cxx, …/…/lib/MathMore.pcm

<<< cling interactive line includer >>>: fatal error: module file ‘/Users/ela/root_build/lib/Rint.pcm’ is out of date

and needs to be rebuilt: could not read module signature

<<< cling interactive line includer >>>: note: imported by module ‘MathCore’ in

‘/Users/ela/root_build/lib/MathCore.pcm’

Error: Module ‘MathCore.pcm’ failed to load.

Error: Error loading the default rootcling header files.

make[2]: *** [math/mathmore/G__MathMore.cxx] Error 1

make[1]: *** [math/mathmore/CMakeFiles/G__MathMore.dir/all] Error 2

make: *** [all] Error 2 "

I tried to rebuild it many times, by following all hints in this similar post:

without succeeding. All of the dependencies required have been installed.

Does anyone know how to fix this issue?

1 Like

Welcome to the ROOT forum.

Is it the first time you install it ? I mean your build directory is empty ?

Hi! It’s the first time I install it from source.
I mean I made many attempts to solve various errors I got, but I used “make clean” every time I tried to rebuild.

Ok, as you get an error in MathCore may be @moneta has an idea.

Try “make -k” several times.

Hi! I just tried it, this is what I got:

Consolidate compiler generated dependencies of target rpdutil

[ 74%] Built target rpdutil

[ 74%] Built target ProofBenchPARFiles

make[1]: Target `all’ not remade because of errors.

make: *** [all] Error 2

make: Target `default_target’ not remade because of errors.

What are your cmake options ?

Sorry! I forgot to mention that.

cmake -DCMAKE_INSTALL_PREFIX=/Users/ela/root_install -DPYTHIA8=ON -DPYTHIA8_INCLUDE_DIR=/Users/ela/Downloads/pythia8245/include -DPYTHIA8_LIBRARY=/Users/ela/Downloads/pythia8245/lib -DCMAKE_CXX_COMPILER=/usr/bin/g++  -Dbuiltin_glew=ON -Dclad=OFF ../root_src

Does it work if you do simply:

cmake -Dall=ON ../root_src

?

This is a known problem, see C++ modules: dependency issue on out of date Rint.pcm · Issue #10271 · root-project/root · GitHub

Done, but I got this : [ 74%] Linking CXX static library …/…/lib/librpdutil.a

[ 74%] Built target rpdutil

[ 74%] Generating …/…/etc/proof/proofbench/ProofBenchCPUSel.par, …/…/etc/proof/proofbench/ProofBenchDataSel.par

[ 74%] Built target ProofBenchPARFiles

make[1]: Target `all’ not remade because of errors.

make: *** [all] Error 2

make: Target `default_target’ not remade because of errors.

I see. It seems there is no way to fix it so far, right?

If it’s just a “missing dependency”, then running “make -k” several times in a row should “overcome” it.

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