After updating the ROOT version to 6.36, I encountered this error when running the program.
Hi,
Thanks for the post. Informing @hschindl .
It seems ROOT cannot find the file libGarfield_rdict.pcm
, associated with the libGarfiled
shared library. Is the file in the /root/garfiled/install/lib
directory? Did you rebuild garfield against the new ROOT?
Cheers,
D
Hello there,
If you’ve pulled a recent commit from the Garfield++ repo, then the culprit is likely the top level CMakeLists.txt. I’ve already DM’ed hschindl about it, but I don’t think he has found a chance to look at it yet. To fix this, you’ll need to switch to an older version by running git checkout 101dfda
inside the Garfield++ home dir and then rebuild it.
The bug you’re reporting is related to a typo in a install
call in the top-level CMake list (line 339):
# Incorrect
install(libGarfieldDict_rdict.pcm ... MODULE Garfield)
# Correct
install(libGarfield_rdict.pcm ... MODULE Garfield)
I’m pretty sure there are other problems in the file that stem from the recent commits that are causing segfaults at runtime. I haven’t had time to figure them out yet, which is why I’m recommending the git checkout.
Sincerely,
Gabriel
Hi,
indeed, there seems to be an issue with a recent set of changes to CMakeLists.txt
Thanks a lot @gabrielribcesario for reporting and debugging this! I’ve just pushed a fix for the typo pointed out by @gabrielribcesario): Fix typo (thanks to Gabriel Ribeiro). (!513) · Merge requests · garfield / garfieldpp · GitLab
Do let us know if you encounter more issues.