# Error in \<TCling::RegisterModule\>: cannot find dictionary module xxx\_rdict.pcm

**URL:** <https://root-forum.cern.ch/t/error-in-tcling-registermodule-cannot-find-dictionary-module-xxx-rdict-pcm/40627>\
**Category:** Cling\
**Created:** [July 24, 2020, 8:27pm UTC](https://root-forum.cern.ch/t/error-in-tcling-registermodule-cannot-find-dictionary-module-xxx-rdict-pcm/40627 "2020-07-24T20:27:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrblaum](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/c89c15/32.png) [@jrblaum](https://root-forum.cern.ch/u/jrblaum)\
**Post date:** [July 24, 2020, 8:27pm UTC](https://root-forum.cern.ch/t/error-in-tcling-registermodule-cannot-find-dictionary-module-xxx-rdict-pcm/40627/1 "2020-07-24T20:27:51Z")

</div>

Hello,

I am using ROOT 6.18/00, and although I have placed the path to the “.pcm” file in LD\_LIBRARY\_PATH and have checked that the “.so” and “.rootmap” files are in the same directory, I am getting the following runtime error:

`Error in <TCling::RegisterModule>: cannot find dictionary module xxx_rdict.pcm`

Please help!

Cheers,  
Jackie

---

<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:** [July 27, 2020, 9:21am UTC](https://root-forum.cern.ch/t/error-in-tcling-registermodule-cannot-find-dictionary-module-xxx-rdict-pcm/40627/2 "2020-07-27T09:21:59Z")

</div>

Hi @jrblaum,  
and welcome to the ROOT forum!

This being an issue with ROOT modules, I think @vvassilev or @Axel are our best bet.

Cheers,  
Enrico

EDIT:  
it would probably help a lot if you could provide a minimal reproducer or a step-by-step recipe to reproduce the problem on our side.

---

<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:** [July 27, 2020, 9:30am UTC](https://root-forum.cern.ch/t/error-in-tcling-registermodule-cannot-find-dictionary-module-xxx-rdict-pcm/40627/3 "2020-07-27T09:30:06Z")

</div>

(does [this other post](https://root-forum.cern.ch/t/register-module-error/40623/2) help?)

---

<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:** [July 27, 2020, 9:53am UTC](https://root-forum.cern.ch/t/error-in-tcling-registermodule-cannot-find-dictionary-module-xxx-rdict-pcm/40627/4 "2020-07-27T09:53:04Z")

</div>

Can you tell us what is the name of the library? Maybe the names of the rdict and the library name mismatch?

---

<div class="post-metadata">

**Author:** ![jrblaum](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/c89c15/32.png) [@jrblaum](https://root-forum.cern.ch/u/jrblaum)\
**Post date:** [July 28, 2020, 4:16pm UTC](https://root-forum.cern.ch/t/error-in-tcling-registermodule-cannot-find-dictionary-module-xxx-rdict-pcm/40627/5 "2020-07-28T16:16:00Z")

</div>

Sure, the names are libVAMaximumLikelihood.so and libVAMaximumLikelihood\_rdict.pcm. I should also point out that I was not having this problem using an older version of ROOT (6.10/08), and I’m using CMake 3.16.2.

---

<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:** [July 28, 2020, 4:20pm UTC](https://root-forum.cern.ch/t/error-in-tcling-registermodule-cannot-find-dictionary-module-xxx-rdict-pcm/40627/6 "2020-07-28T16:20:00Z")

</div>

The recent versions of ROOT enforced more consistency as rdict.pcm files could be picked up from the wrong places.

Could you run your failing example with ROOTDEBUG=8 env variable and attach the log?

---

<div class="post-metadata">

**Author:** ![jrblaum](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/c89c15/32.png) [@jrblaum](https://root-forum.cern.ch/u/jrblaum)\
**Post date:** [July 28, 2020, 4:49pm UTC](https://root-forum.cern.ch/t/error-in-tcling-registermodule-cannot-find-dictionary-module-xxx-rdict-pcm/40627/7 "2020-07-28T16:49:30Z")

</div>

[logRootDebug8\_pcmError.txt](https://root-forum.cern.ch/uploads/short-url/f1FTUNDGCoQ9dbxGms48Oa3z2B4.txt) (1.2 MB)

---

<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:** [July 28, 2020, 6:43pm UTC](https://root-forum.cern.ch/t/error-in-tcling-registermodule-cannot-find-dictionary-module-xxx-rdict-pcm/40627/8 "2020-07-28T18:43:24Z")

</div>

Thanks!

Did you forward the stderr to stdout?

Looks like ROOT crashed just before issuing the error you saw the first time.

---

<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:** [August 11, 2020, 6:43pm UTC](https://root-forum.cern.ch/t/error-in-tcling-registermodule-cannot-find-dictionary-module-xxx-rdict-pcm/40627/9 "2020-08-11T18:43:29Z")

</div>

Closed on August 11, 2020, 6:43pm UTC

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