My department is switching from Centos7 to EL9. I now can’t run my Geant4 code that links to ROOT. It gives the message:
fatal error: module map file '/usr/share/root/cling/module.modulemap' not found
That file doesn’t exist, but it didn’t exist on the old system either.
I tried to build and run the example AnaEx02 and get the same problem. This is with EL9 / gcc12 / geant4 11.2 / root 6.30. It worked fine on Centos7 / gcc6.3 / geant4 10.5 / root 6.24. Our IT support were not able to fix this and suggested I contact the geant4 developers. Can anyone help?
Could you try copying the below to a CMakeLists.txt file in an empty folder and then run cmake . please? It should match what Geant4 does in the gross setup, but take out anything else that might be causing problems. If this causes the same error, then there are a couple of things we can try.
That sounds very plausible. Here is the output (leaving out the first few hundred lines where it prints parameters):
=======================================================================
G4VisManager: Using G4TrajectoryDrawByCharge as fallback trajectory model.
See commands in /vis/modeling/trajectories/ for other options.
### Run 0 start.
Warning in <TClassTable::Add>: class ROOT::Internal::RRawFile already in TClassTable
Warning in <TClassTable::Add>: class TFileMerger already in TClassTable
Warning in <TClassTable::Add>: class TDirectoryFile already in TClassTable
Warning in <TClassTable::Add>: class TFile already in TClassTable
Warning in <TClassTable::Add>: class TMemFile already in TClassTable
Warning in <TClassTable::Add>: class ROOT::TBufferMerger already in TClassTable
Warning in <TClassTable::Add>: class ROOT::TBufferMergerFile already in TClassTable
Warning in <TClassTable::Add>: class TArchiveFile already in TClassTable
Warning in <TClassTable::Add>: class TArchiveMember already in TClassTable
Warning in <TClassTable::Add>: class TBufferIO already in TClassTable
Warning in <TClassTable::Add>: class TBufferFile already in TClassTable
Warning in <TClassTable::Add>: class TBufferText already in TClassTable
Warning in <TClassTable::Add>: class TBufferJSON already in TClassTable
Warning in <TClassTable::Add>: class TGenCollectionProxy already in TClassTable
Warning in <TClassTable::Add>: class TGenCollectionProxy::Value already in TClassTable
Warning in <TClassTable::Add>: class TGenCollectionProxy::Method already in TClassTable
Warning in <TClassTable::Add>: class TCollectionProxyFactory already in TClassTable
Warning in <TClassTable::Add>: class TCollectionStreamer already in TClassTable
Warning in <TClassTable::Add>: class TCollectionClassStreamer already in TClassTable
Warning in <TClassTable::Add>: class TCollectionMemberStreamer already in TClassTable
Warning in <TClassTable::Add>: class TEmulatedCollectionProxy already in TClassTable
Warning in <TClassTable::Add>: class TEmulatedMapProxy already in TClassTable
Warning in <TClassTable::Add>: class TFileCacheRead already in TClassTable
Warning in <TClassTable::Add>: class TFree already in TClassTable
Warning in <TClassTable::Add>: class TFileCacheWrite already in TClassTable
Warning in <TClassTable::Add>: class TFPBlock already in TClassTable
Warning in <TClassTable::Add>: class TFilePrefetch already in TClassTable
Warning in <TClassTable::Add>: class TKey already in TClassTable
Warning in <TClassTable::Add>: class TKeyMapFile already in TClassTable
Warning in <TClassTable::Add>: class TLockFile already in TClassTable
Warning in <TClassTable::Add>: class TMapFile already in TClassTable
Warning in <TClassTable::Add>: class TMapRec already in TClassTable
Warning in <TClassTable::Add>: class TStreamerInfo already in TClassTable
Warning in <TClassTable::Add>: class TStreamerInfoActions::TConfiguration already in TClassTable
Warning in <TClassTable::Add>: class TStreamerInfoActions::TConfiguredAction already in TClassTable
Warning in <TClassTable::Add>: class TStreamerInfoActions::TActionSequence already in TClassTable
Warning in <TClassTable::Add>: class TZIPFile already in TClassTable
Warning in <TClassTable::Add>: class TZIPMember already in TClassTable
fatal error: module map file '/usr/share/root/cling/module.modulemap' not found
*** Break *** segmentation violation
'/build/jenkins/workspace/lcg_release_pipeline/install/Python/3.9.12/x86_64-el9-gcc12-opt/lib/python39.zip',
'/build/jenkins/workspace/lcg_release_pipeline/install/Python/3.9.12/x86_64-el9-gcc12-opt/lib/python3.9',
'/build/jenkins/workspace/lcg_release_pipeline/install/Python/3.9.12/x86_64-el9-gcc12-opt/lib/lib-dynload',
Segmentation fault (core dumped)
[henry@pplxint12 AnaEx02_build]$