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

**URL:** <https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564>\
**Category:** Newbie\
**Tags:** build\
**Created:** [November 6, 2021, 11:25pm UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564 "2021-11-06T23:25:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dragonfire3900](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dragonfire3900/32/27821_2.png) [@Dragonfire3900](https://root-forum.cern.ch/u/Dragonfire3900)\
**Post date:** [November 6, 2021, 11:25pm UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/1 "2021-11-06T23:25:41Z")

</div>

_ROOT Version_: v6.24.06  
_Platform:_ WSL (Ubuntu 18.04)  
_Compiler:_ g++ 7.50

* * *

Hey everyone! I’m new to ROOT and I’m trying to build it from scratch on WSL using the default instructions from the main website. I’m using the latest stable build from Github. The configuration step goes through as expected without issue using

`cmake -DCMAKE_INSTALL_PREFIX=<installdir> <sourcedir>`

I’m then building with

`cmake --build . --target install`

and get the following (this is a non-clean build. The same error still occurs)

```auto
[0%] Built target OPENUI5
[0%] Built target LZMA
[0%] Built target VDT
[0%] Built target TBB
[0%] Built target xxhash
[0%] Built target lz4
...
[73%] Built target G__SQLIO
[73%] Built target SQLIO
[73%] Built target G__Rint
[73%] Built target Rint
[73%] Generating G__Fumili.cxx, ../../lib/Fumili.pcm
<<< cling interactive line includer >>>: fatal error: module file '.../builds/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 'Graf' in '.../builds/root_build/lib/Graf.pcm'
Error: Module 'Graf.pcm' failed to load.
...

```

I’ve been trying to look around the forum for a similar issue but haven’t found a direct solution as of yet. All of the dependencies have been installed as well as most of the optional dependencies. Any ideas of where I can look or do to help with this issue?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [November 8, 2021, 8:31am UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/2 "2021-11-08T08:31:28Z")

</div>

Just a guess; as it says:

```auto
Rint.pcm is out of date

```

Could it be that you had an old (not empty) build directory ? can you try to remove completely the content of the build directory before doing the build ?

---

<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:** [November 8, 2021, 1:05pm UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/3 "2021-11-08T13:05:32Z")

</div>

Delete `lib/*.pcm` and r-reun the build step please: `cmake --build . --target install`. We know that this needs to get fixed… Does this help?

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [November 8, 2021, 1:09pm UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/4 "2021-11-08T13:09:31Z")

</div>

Note that at the moment (@vvassilev) the error message is reversed, and it is really complaining that Graf.pcm is out of date.

---

<div class="post-metadata">

**Author:** ![awedisean](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/eb8c5e/32.png) [@awedisean](https://root-forum.cern.ch/u/awedisean)\
**Post date:** [November 9, 2021, 6:44pm UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/5 "2021-11-09T18:44:52Z")

</div>

@Axel I am encountering this same issue and following the rm lib/\*.pcm and cmake --build . --target install commands does not fix it.

[97%] Generating tutorials/hsimple.root  
\<\<\< cling interactive line includer \>\>\>: fatal error: module file ‘/home/username/ResearchFiles/root/rootbuildir/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 ‘/home/username/ResearchFiles/root/rootbuildir/lib/MathCore.pcm’  
Failed to load module MathCore  
Failed to load module Hist  
etc…

I’d appreciate your help!

---

<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:** [November 10, 2021, 10:18am UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/6 "2021-11-10T10:18:04Z")

</div>

@vvassilev any hints what else it could be?

---

<div class="post-metadata">

**Author:** ![vvassilev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/v/f0a364/32.png) [@vvassilev](https://root-forum.cern.ch/u/vvassilev)\
**Post date:** [November 10, 2021, 10:33am UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/7 "2021-11-10T10:33:13Z")

</div>

@eguiraud, has reported a similar issue. I could not reproduce it locally. We seem to have a missing dependency in the build system. @eguiraud, is that issue still reproducible for you?

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [November 10, 2021, 10:44am UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/8 "2021-11-10T10:44:34Z")

</div>

Hi,  
it just happened to me again this morning, but I removed all `*.pcm` files from the build directory to work around it. I don’t have a recipe to reliably reproduce the problem.

---

<div class="post-metadata">

**Author:** ![awedisean](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/eb8c5e/32.png) [@awedisean](https://root-forum.cern.ch/u/awedisean)\
**Post date:** [November 11, 2021, 8:13pm UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/9 "2021-11-11T20:13:58Z")

</div>

@Axel @vvassilev  
After deleting the .pcm files, I instead used a different command. Before I was using:  
cmake --build . --target install  
but then I used:  
cmake --build . – -j6  
specifying 6 cores for the compilation and I did not hit the error, rather I got to 100%. I hope this helps!

---

<div class="post-metadata">

**Author:** ![preimer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@preimer](https://root-forum.cern.ch/u/preimer)\
**Post date:** [March 29, 2022, 7:37pm UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/10 "2022-03-29T19:37:15Z")

</div>

I also have the this error, and did not clearly see a conclusion or solution in this thread.  
My sequence of commands is

```auto
  253 mkdir rootBuild
  254 cd rootBuild
  255 cmake -DCMAKE_INSTALL_PREFIX=/Users/Paul/Documents/local -Dbuiltin_glew=ON ../root-6.26.00
  256 cmake --build . --target install

```

I downloaded root-6.26.00 last Friday for the build. My specific error message is

```auto

[86%] Generating G__Rint.cxx, ../../lib/Rint.pcm
Scanning dependencies of target G__Rint
[86%] Building CXX object core/rint/CMakeFiles/G __Rint.dir/G__ Rint.cxx.o
[86%] Built target G__Rint
[86%] Building CXX object core/rint/CMakeFiles/Rint.dir/src/TRint.cxx.o
[86%] Building CXX object core/rint/CMakeFiles/Rint.dir/src/TTabCom.cxx.o
[86%] Linking CXX shared library ../../lib/libRint.so
[86%] Built target Rint
[86%] Generating G__MathMore.cxx, ../../lib/MathMore.pcm
<<< cling interactive line includer >>>: fatal error: module file '/Users/Paul/Documents/local/src/rootBuild/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/Paul/Documents/local/src/rootBuild/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

```

If I could make Rint more “up-to-date” I would.

Paul

---

<div class="post-metadata">

**Author:** ![preimer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@preimer](https://root-forum.cern.ch/u/preimer)\
**Post date:** [March 29, 2022, 11:12pm UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/11 "2022-03-29T23:12:35Z")

</div>

I should have mentioned in my above post that I am running OSX 12.3 Monterey

---

<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:** [March 30, 2022, 6:58am UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/12 "2022-03-30T06:58:13Z")

</div>

Thanks, this looks like a missing dependency. @vvassilev do I read this correctly that math core depends on a header from rint? @moneta @bellenot could you please investigate? We need a bug report on this, blocking 6.26/02. @bellenot could you open this, please?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [March 30, 2022, 7:18am UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/13 "2022-03-30T07:18:47Z")

</div>

> <https://github.com/root-project/root/issues/10271>
>
> Error when building ROOT v6.26.00 from source:
> \`\`\`
> \<\<\< cling interactive line …includer \>\>\>: fatal error: module file '/Users/Paul/Documents/local/src/rootBuild/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/Paul/Documents/local/src/rootBuild/lib/MathCore.pcm'
> \`\`\`
> See the description given \[on the forum\](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/10)

---

<div class="post-metadata">

**Author:** ![preimer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@preimer](https://root-forum.cern.ch/u/preimer)\
**Post date:** [March 31, 2022, 2:30pm UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/14 "2022-03-31T14:30:18Z")

</div>

I made two changes and it compiled and installed completely

1. I used  
`make -j3`  
rather than just  
`make`  
I hope that this didn’t have any effect, as it would indicate a race condition somewhere in the makefile

2. I clicked on the “XCode” application before the gmake command. I clicked on the xcode application because I wanted to see what version of xcode I was running. When I did this xcode popped up a window saying that it needed to download additional files. Note that I had already done the xcode-select command, so this was in addition to that.

After this two changes, most likely the latter, everything worked.

Paul

---

<div class="post-metadata">

**Author:** ![rhystaus](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rhystaus/32/33766_2.png) [@rhystaus](https://root-forum.cern.ch/u/rhystaus)\
**Post date:** [April 19, 2022, 3:49pm UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/15 "2022-04-19T15:49:20Z")

</div>

After trying to successfully rebuild root from source after updating my OS this is the solution that worked for me.

---

<div class="post-metadata">

**Author:** ![wwalko](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/f1d935/32.png) [@wwalko](https://root-forum.cern.ch/u/wwalko)\
**Post date:** [June 10, 2022, 10:10am UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/16 "2022-06-10T10:10:29Z")

</div>

Hi,  
I am just trying to compile ROOT 6.26/04 on Debian testing (bookworm) and unfortunately it crashes with an issue w.r.t. to `RInt.pcm`:

```auto
 [84%] Generating G__Rint.cxx, ../../lib/Rint.pcm
Scanning dependencies of target G__Rint
[84%] Building CXX object core/rint/CMakeFiles/G __Rint.dir/G__ Rint.cxx.o
[84%] Built target G__Rint
[84%] Building CXX object core/rint/CMakeFiles/Rint.dir/src/TRint.cxx.o
[84%] Building CXX object core/rint/CMakeFiles/Rint.dir/src/TTabCom.cxx.o
[84%] Linking CXX shared library ../../lib/libRint.so
[84%] Built target Rint
[84%] Generating G__MathMore.cxx, ../../lib/MathMore.pcm
<<< cling interactive line includer >>>: fatal error: module file '/products/src.ROOT/root_build/v6-26-04/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 '/products/src.ROOT/root_build/v6-26-04/lib/MathCore.pcm'
Error: Module 'MathCore.pcm' failed to load.
Error: Error loading the default rootcling header files.
gmake[2]: *** [math/mathmore/CMakeFiles/G __MathMore.dir/build.make:142: math/mathmore/G__ MathMore.cxx] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:26638: math/mathmore/CMakeFiles/G__MathMore.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2

```

Any advice for a work-around?  
Thank you,  
w.w.

---

<div class="post-metadata">

**Author:** ![wwalko](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/f1d935/32.png) [@wwalko](https://root-forum.cern.ch/u/wwalko)\
**Post date:** [July 29, 2022, 9:47pm UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/17 "2022-07-29T21:47:45Z")

</div>

Hi,  
trying to compile again with the recent ROOT 6.26/06 on Debian testing (bookworm) it crashes with the same issue w.r.t. `RInt.pcm` being out-of-date. However, removing all `*.pcm` files and then running `make -j6` successfully completes the build. Thanks for the hint above.  
Thanks for continuing to investigate the issue,  
w.w.

---

<div class="post-metadata">

**Author:** ![ikabadzhov](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ikabadzhov/32/28620_2.png) [@ikabadzhov](https://root-forum.cern.ch/u/ikabadzhov)\
**Post date:** [September 28, 2022, 2:07pm UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/18 "2022-09-28T14:07:16Z")

</div>

FYI I just hit the same issue on latest root master on my Fedora 35.  
I first tried `rm lib/*.pcm` as @Axel suggested. Then cmaking however failed with a similar error - in particular the old error plus:

```auto
gmake[2]: *** [sql/mysql/CMakeFiles/G __RMySQL.dir/build.make:88: sql/mysql/G__ RMySQL.cxx] Error 1
gmake[2]: *** [io/sql/CMakeFiles/G __SQLIO.dir/build.make:91: io/sql/G__ SQLIO.cxx] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:41433: sql/mysql/CMakeFiles/G__RMySQL.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:35775: io/sql/CMakeFiles/G__SQLIO.dir/all] Error 2
[75%] Built target unordered_mapDict
<<< cling interactive line includer >>>: remark: building module 'MultiProc' as '[...]/rb/lib/MultiProc.pcm' [-Rmodule-build]
Error: Building module 'MultiProc' implicitly. If 'MultiProc' requires a 
dictionary please specify build dependency: 'G__Imt.cxx' depends on 'MultiProc'.
Otherwise, specify '-mByproduct MultiProc' to disable this diagnostic.
Subprocess aborted
gmake[2]: *** [net/auth/CMakeFiles/G __RootAuth.dir/build.make:89: net/auth/G__ RootAuth.cxx] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:36142: net/auth/CMakeFiles/G__RootAuth.dir/all] Error 2
Subprocess aborted

```

Then, I applyed @eguiraud 's suggestion to delete all `.pcm` files (i.e. `find . -name "*.pcm" -type f -delete`), then cmake was successful.

I never changed the number of cores in `cmake` - always entering `-j32`.

---

<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 3, 2022, 7:15am UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/19 "2022-10-03T07:15:57Z")

</div>

@vvassilev FYI! Do we need to add that `-mByproduct` and do you know why?

---

<div class="post-metadata">

**Author:** ![Neel\_Shah](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/neel_shah/32/28438_2.png) [@Neel\_Shah](https://root-forum.cern.ch/u/Neel_Shah)\
**Post date:** [October 26, 2022, 6:58am UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564/20 "2022-10-26T06:58:56Z")

</div>

I am still facing this error when building on the current master branch. Can someone help with it?

[Next page](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564.md?page=2)
