# Error when building root 6.26/06 on MacOS Monterey 12.6

**URL:** <https://root-forum.cern.ch/t/error-when-building-root-6-26-06-on-macos-monterey-12-6/51860>\
**Category:** ROOT\
**Created:** [October 6, 2022, 12:42pm UTC](https://root-forum.cern.ch/t/error-when-building-root-6-26-06-on-macos-monterey-12-6/51860 "2022-10-06T12:42:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivana](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/i/91b2a8/32.png) [@ivana](https://root-forum.cern.ch/u/ivana)\
**Post date:** [October 6, 2022, 12:42pm UTC](https://root-forum.cern.ch/t/error-when-building-root-6-26-06-on-macos-monterey-12-6/51860/1 "2022-10-06T12:42:34Z")

</div>

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

```auto
[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:

```auto
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](https://root-forum.cern.ch/t/tips-for-efficient-and-successful-posting/28292) and [posting code](https://root-forum.cern.ch/t/posting-code-read-this-first/28293)_

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

* * *

---

<div class="post-metadata">

**Author:** ![jalopezg](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jalopezg/32/25844_2.png) [@jalopezg](https://root-forum.cern.ch/u/jalopezg)\
**Post date:** [October 7, 2022, 9:17am UTC](https://root-forum.cern.ch/t/error-when-building-root-6-26-06-on-macos-monterey-12-6/51860/2 "2022-10-07T09:17:18Z")

</div>

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](https://root.cern/install/#macos-package-managers).

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.

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

```

Cheers,  
J.

---

<div class="post-metadata">

**Author:** ![ivana](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/i/91b2a8/32.png) [@ivana](https://root-forum.cern.ch/u/ivana)\
**Post date:** [October 7, 2022, 11:04am UTC](https://root-forum.cern.ch/t/error-when-building-root-6-26-06-on-macos-monterey-12-6/51860/3 "2022-10-07T11:04:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jalopezg](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jalopezg/32/25844_2.png) [@jalopezg](https://root-forum.cern.ch/u/jalopezg)\
**Post date:** [October 8, 2022, 1:16am UTC](https://root-forum.cern.ch/t/error-when-building-root-6-26-06-on-macos-monterey-12-6/51860/4 "2022-10-08T01:16:43Z")

</div>

@Axel, have you seen this before?

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [October 14, 2022, 1:07pm UTC](https://root-forum.cern.ch/t/error-when-building-root-6-26-06-on-macos-monterey-12-6/51860/5 "2022-10-14T13:07:07Z")

</div>

> [@jalopezg](#):
>
> have you seen this before?

Yes:

- [Build ROOT from source on MacOS Monterey. ERROR: RInt.pcm is out of date](https://root-forum.cern.ch/t/build-root-from-source-on-macos-monterey-error-rint-pcm-is-out-of-date/50011)
- [WSL Build from source error: RInt.pcm is out of date \ cannot read module signature](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564)

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

---

<div class="post-metadata">

**Author:** ![ivana](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/i/91b2a8/32.png) [@ivana](https://root-forum.cern.ch/u/ivana)\
**Post date:** [October 14, 2022, 1:31pm UTC](https://root-forum.cern.ch/t/error-when-building-root-6-26-06-on-macos-monterey-12-6/51860/6 "2022-10-14T13:31:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [October 28, 2022, 1:32pm UTC](https://root-forum.cern.ch/t/error-when-building-root-6-26-06-on-macos-monterey-12-6/51860/7 "2022-10-28T13:32:27Z")

</div>

Closed on October 28, 2022, 1:32pm UTC

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