vmc-project / geant4_vmc

GNU General Public License v3.0
6 stars 22 forks source link

version 5-4 /version 6-6 build fails #62

Open anupama-reghunath opened 1 month ago

anupama-reghunath commented 1 month ago

Hi, I'm trying to build a custom software on my system, which uses the following packages:

On building, however, geant4_vmc@5-4 build fails with the following error:

In file included from /home/irongiant/PhD/Software/local_build/sw/SOURCES/GEANT4_VMC/v5-4/v5-4/g4root/src/TG4RootNavigator.cxx:20:

/home/irongiant/PhD/Software/local_build/sw/SOURCES/GEANT4_VMC/v5-4/v5-4/g4root/include/TG4RootNavigator.h:91:11: error: 'G4TouchableHistoryHandle' does not name a type; did you mean 'G4TouchableHistory'?
   91 |   virtual G4TouchableHistoryHandle CreateTouchableHistoryHandle() const;
      |           ^~~~~~~~~~~~~~~~~~~~~~~~
      |           G4TouchableHistory
In file included from /home/irongiant/PhD/Software/local_build/sw/SOURCES/GEANT4_VMC/v5-4/v5-4/g4root/src/TG4RootNavMgr.cxx:19:
/home/irongiant/PhD/Software/local_build/sw/SOURCES/GEANT4_VMC/v5-4/v5-4/g4root/include/TG4RootNavigator.h:91:11: error: 'G4TouchableHistoryHandle' does not name a type; did you mean 'G4TouchableHistory'?
   91 |   virtual G4TouchableHistoryHandle CreateTouchableHistoryHandle() const;
      |           ^~~~~~~~~~~~~~~~~~~~~~~~
      |           G4TouchableHistory
[  1%] Built target mtroot
[  1%] Generating vmc_E02_dict.cxx, libvmc_E02_rdict.pcm, libvmc_E02.rootmap
[  1%] Generating vmc_E01_dict.cxx, libvmc_E01_rdict.pcm, libvmc_E01.rootmap
[  1%] Generating vmc_E03a_dict.cxx, libvmc_E03a_rdict.pcm, libvmc_E03a.rootmap
[  1%] Generating vmc_E03b_dict.cxx, libvmc_E03b_rdict.pcm, libvmc_E03b.rootmap
/home/irongiant/PhD/Software/local_build/sw/SOURCES/GEANT4_VMC/v5-4/v5-4/g4root/src/TG4RootNavigator.cxx:515:1: error: 'G4TouchableHistoryHandle' does not name a type; did you mean 'G4TouchableHistory'?
  515 | G4TouchableHistoryHandle TG4RootNavigator::CreateTouchableHistoryHandle() const
      | ^~~~~~~~~~~~~~~~~~~~~~~~
      | G4TouchableHistory
make[2]: *** [g4root/CMakeFiles/g4root.dir/build.make:104: g4root/CMakeFiles/g4root.dir/src/TG4RootNavigator.cxx.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[  2%] Generating vmc_E03c_dict.cxx, libvmc_E03c_rdict.pcm, libvmc_E03c.rootmap
In file included from /home/irongiant/PhD/Software/local_build/sw/SOURCES/GEANT4_VMC/v5-4/v5-4/g4root/src/TG4RootDetectorConstruction.cxx:19:
/home/irongiant/PhD/Software/local_build/sw/SOURCES/GEANT4_VMC/v5-4/v5-4/g4root/include/TG4RootNavigator.h:91:11: error: 'G4TouchableHistoryHandle' does not name a type; did you mean 'G4TouchableHistory'?
   91 |   virtual G4TouchableHistoryHandle CreateTouchableHistoryHandle() const;
      |           ^~~~~~~~~~~~~~~~~~~~~~~~
      |           G4TouchableHistory
make[2]: *** [g4root/CMakeFiles/g4root.dir/build.make:90: g4root/CMakeFiles/g4root.dir/src/TG4RootNavMgr.cxx.o] Error 1
[  2%] Generating vmc_E06_dict.cxx, libvmc_E06_rdict.pcm, libvmc_E06.rootmap
[  3%] Generating vmc_A01_dict.cxx, libvmc_A01_rdict.pcm, libvmc_A01.rootmap
make[2]: *** [g4root/CMakeFiles/g4root.dir/build.make:76: g4root/CMakeFiles/g4root.dir/src/TG4RootDetectorConstruction.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:513: g4root/CMakeFiles/g4root.dir/all] Error 2

I tried with v6-6, but now the error is:

-- Build files have been written to: /home/irongiant/PhD/Software/local_build/sw/BUILD/9280d13e470e469c8424a6f341725fb099512ac1/GEANT4_VMC
++ make -j 8 install
[  0%] Generating vmc_E03a_dict.cxx, libvmc_E03a_rdict.pcm, libvmc_E03a.rootmap
[  0%] Generating vmc_E03c_dict.cxx, libvmc_E03c_rdict.pcm, libvmc_E03c.rootmap
[  1%] Generating vmc_E02_dict.cxx, libvmc_E02_rdict.pcm, libvmc_E02.rootmap
[  2%] Generating vmc_E03b_dict.cxx, libvmc_E03b_rdict.pcm, libvmc_E03b.rootmap
[  2%] Generating vmc_A01_dict.cxx, libvmc_A01_rdict.pcm, libvmc_A01.rootmap
[  2%] Generating vmc_E06_dict.cxx, libvmc_E06_rdict.pcm, libvmc_E06.rootmap
[  2%] Generating vmc_E01_dict.cxx, libvmc_E01_rdict.pcm, libvmc_E01.rootmap
[  2%] Building CXX object g4root/CMakeFiles/g4root.dir/src/TG4RootDetectorConstruction.cxx.o
In file included from input_line_9:3:
/home/irongiant/PhD/Software/local_build/sw/SOURCES/GEANT4_VMC/v6-6/v6-6/examples/E02/include/Ex02MCApplication.h:25:10: fatal error: 'TMCRootManager.h' file not found
#include <TMCRootManager.h>
         ^~~~~~~~~~~~~~~~~~
Error: /home/irongiant/PhD/Software/local_build/sw/ubuntu2404_x86-64/ROOT/v6-30-06-local1/bin/rootcling: compilation failure (/home/irongiant/PhD/Software/local_build/sw/BUILD/9280d13e470e469c8424a6f341725fb099512ac1/GEANT4_VMC/examples/E02/libvmc_E025cb2d34780_dictUmbrella.h)
make[2]: *** [examples/E02/CMakeFiles/vmc_E02.dir/build.make:93: examples/E02/vmc_E02_dict.cxx] Error 1
make[1]: *** [CMakeFiles/Makefile2:701: examples/E02/CMakeFiles/vmc_E02.dir/all] Error 2

How do I rectify this issue?

ihrivnac commented 1 month ago

Hello @anupama-reghunath ,

GEANT4_VMC@v5-4 is not compatible with the latest Geant4 version (11.2.p1); you need to take GEANT4_VMC@v6-6-p1.

Please, see also the documentation: https://vmc-project.github.io/download/git-geant4_vmc/

Best regards,