Error when building root 6.26/06 on MacOS Monterey 12.6

I am getting the error when building root 6.26/06 on MacOS Monterey 12.6, with the latest XCode 14.0.1:

[ 65%] Built target ROOTTPython

[ 65%] **Generating G__RSQLite.cxx, ../../lib/RSQLite.pcm**

<<< cling interactive line includer >>>: **fatal error:** **module file '/Users/ivana/work/packages/root/root_v6.26.06_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 'Net' in

'/Users/ivana/work/packages/root/root_v6.26.06_build/lib/Net.pcm'

Error: Module 'Net.pcm' failed to load.

Error: Error loading the default rootcling header files.

make[2]: *** [sql/sqlite/G__RSQLite.cxx] Error 1

make[1]: *** [sql/sqlite/CMakeFiles/G__RSQLite.dir/all] Error 2

make: *** [all] Error 2

The cmake options:

cmake -DCMAKE_INSTALL_PREFIX=../root_v6.26.06 \
  -Dpythia6_nolink=ON \
  -Dvmc=OFF \
  -Dgdml=ON \
  -Dtbb=OFF \
  -Dbuiltin_freetype=OFF \
  -Dbuiltin_gsl=ON \
  -Dbuiltin_glew=ON \
  -Dbuiltin_vdt=ON \
  -DPython3_EXECUTABLE=/opt/homebrew/bin/python3 \
  -DCMAKE_CXX_STANDARD=17 \
  ../root_v6.26.06_source

Thank you,


Please read tips for efficient and successful posting and posting code

_ROOT Version: 6.26/06
_Platform: macOS 12.6
_Compiler: XCode 14.0.1


Hi @ivana,

Manually building ROOT is in general discouraged for regular users, unless justified otherwise. Take a look at more convenient procedure for macOS here.

If you want to continue your build anyways, I would recommend deleting all the *.pcm files in the output
directory in the hope that they get rebuilt, i.e.

$ find /Users/ivana/work/packages/root/root_v6.26.06_build/ -name '*.pcm' -print -delete
$ make

Cheers,
J.

Thank you; I tried your suggestion but I get the same error again. I use to build Root from sources as we need some options that are not set by default.

@Axel, have you seen this before?

Yes:

There’s a dependency problem somewhere; make -j4 seems to work around this issue :-/ IIRC @vvassilev wanted to have a look?

Thank you !
After removing all *.pcm, make -j4 went till the end and the installation succeeded.

1 Like

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