Error in <TCling::LoadPCM>


Please read tips for efficient and successful posting and posting code

Please fill also the fields below. Note that root -b -q will tell you this info, and starting from 6.28/06 upwards, you can call .forum bug from the ROOT prompt to pre-populate a topic.

ROOT Version: 6.36.10
Platform: Alma9
Compiler: gcc

I get the following error when I execute a macro from the ROOT command line:


Error in <TCling::LoadPCM>: ROOT PCM /local/home/bedfer/analyses/root/root_install/lib/libNet_rdict.pcm file does not exist

What’s really weird about this is that the directory that LoadPCM is searching is not the one pointed to by my $ROOTSYS environment:

$ echo $ROOTSYS
/local/home/bedfer/analyses/root/root_instal2

( Note the root_instal2 in the path, while the error message reads root_install.)

I have in fact two installations of ROOT, which I got from github and compiled. I then source the setup script of root_instal2.

Several questions:

1 Why doesn’t LoadPCM search the $ROOTSYS/lib directory?

2 How can it know about my alternative installation?

3 If I haven’t a libNet_rdict.pcm file, I do have a Net.pcm· one (in both of my installations): isn’t this enough to satisfy the request of LoadPCM?

4 How can get rid of the error (which btw, seems to not affect the execution of my macro in any way)?

Last: after the error message quoted supra, I get a bunch of info messages:

Info in <TCling::LoadPCM>: In-memory ROOT PCM candidate /local/home/bedfer/analyses/root/root_instal2/lib/libASImageGui_rdict.pcm 

How can I at least get rid of these?

Check: echo $LD_LIBRARY_PATH


$ echo $LD_LIBRARY_PATH
/local/home/bedfer/analyses/2016/MuEvtphi:/local/home/bedfer/analyses/root/root_instal2/lib

=> The root installation listed in $LD_LIBRARY_PATH is the intended one. And yet looks like LoadPCM is not searching there.

It seems to me that your macro tries to use something (e.g., some shared library) that was built a long time ago with some old ROOT version (the “libNet_rdict.pcm” and “libASImageGui_rdict.pcm” names suggest ROOT 6.18 or older).

Right. Following your remark, I finally came to that conclusion… after some time.

If I invert the order of my two libraries in $LD_LIBRARY_PATH, the error disappears.

Unfortunately I have not been able to identify that older piece. built long ago. But this is a different issue…

Thank you for the tip.

So, check the content of your “MuEvtphi” directory (maybe you have shared libraries there that “replace” some of these from “root_instal2/lib”).
Also inspect (without sourcing the ROOT setup script): ldd /.../MuEvtphi/*.so

I finally found the problem (I had been confusing two different installations of, this time, my ROOT macro. An old version of it was then stored in the $LD_LIBRARY_PATH).

Thank you very much for all your feed-back. That was of great help.

Yann Bedfer