Problem 2454 - building Geant4 11.0 from tar ball
Summary: building Geant4 11.0 from tar ball
Status: RESOLVED DUPLICATE of problem 2453
Alias: None
Product: Geant4
Classification: Unclassified
Component: cmake (show other problems)
Version: other
Hardware: PC Linux
: P4 normal
Assignee: Ben Morgan
URL:
Depends on:
Blocks:
 
Reported: 2021-12-10 23:38 CET by Hans Wenzel
Modified: 2021-12-11 00:17 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Hans Wenzel 2021-12-10 23:38:16 CET
It seems the tar ball from https://geant4.web.cern.ch/support/download: 
geant4.10.07.p02.tar.gz
is missing some files when I try to build Geant4 using this tarball it fails at the cmake stage:
cmake -DCMAKE_INSTALL_PREFIX=../geant4-v11.0.0-tarinstall -DGEANT4_BUILD_VERBOSE_CODE=OFF -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_SYSTEM_CLHEP=ON -DGEANT4_USE_GDML=ON   -DGEANT4_USE_QT=ON -DGEANT4_BUILD_MULTITHREADED=ON -DGEANT4_USE_OPENGL_X11=ON ../geant4-v11.0.0
-- Checking C++ feature CXXSTDLIB_FILESYSTEM_NATIVE - Success
-- Configuring download of missing dataset G4NDL (4.6)
-- Configuring download of missing dataset G4EMLOW (8.0)
-- Configuring download of missing dataset PhotonEvaporation (5.7)
-- Configuring download of missing dataset RadioactiveDecay (5.6)
-- Configuring download of missing dataset G4PARTICLEXS (4.0)
-- Configuring download of missing dataset G4PII (1.3)
-- Configuring download of missing dataset RealSurface (2.2)
-- Configuring download of missing dataset G4SAIDDATA (2.0)
-- Configuring download of missing dataset G4ABLA (3.1)
-- Configuring download of missing dataset G4INCL (1.0)
-- Configuring download of missing dataset G4ENSDFSTATE (2.3)
CMake Error at cmake/Modules/G4CPack.cmake:14 (include):
  include could not find requested file:

    G4GitUtilities
Call Stack (most recent call first):
  cmake/Modules/G4CMakeMain.cmake:139 (include)
  CMakeLists.txt:50 (include)


CMake Error at cmake/Modules/G4CPack.cmake:106 (geant4_git_find_dirty):
  Unknown CMake command "geant4_git_find_dirty".
Call Stack (most recent call first):
  cmake/Modules/G4CMakeMain.cmake:139 (include)
  CMakeLists.txt:50 (include)


-- Configuring incomplete, errors occurred!
See also "/data2/wenzel/geant4-v11.0.0-tarbuild/CMakeFiles/CMakeOutput.log".
See also "/data2/wenzel/geant4-v11.0.0-tarbuild/CMakeFiles/CMakeError.log".



in fact the  file G4GitUtilities.cmake is missing.
 
If I use the git repo I find:

geant4-dev/cmake/Modules/G4GitUtilities.cmake

and the cmake and build step works ok.
Comment 1 Ben Morgan 2021-12-11 00:17:29 CET

*** This problem has been marked as a duplicate of problem 2453 ***