Geant4 Version: 11.3.2, 11.4.0
Operating System: CentOS 7.9
Compiler/Version: gcc-11.2
CMake Version: 3.17
Hello,
I am on an old and unsupported system, CentOS 7. However despite that, up through 11.3 I was able to build geant just fine using the RedHat devtoolset-11. Trying to upgrade to 11.4 produces errors during cmake:
CMake Error at cmake/Modules/G4DeveloperAPI.cmake:1358 (add_library):
add_library INTERFACE library requires no source arguments.
Call Stack (most recent call first):
cmake/Modules/G4DeveloperAPI.cmake:1081 (__geant4_add_library)
source/CMakeLists.txt:45 (geant4_compose_targets)
CMake Error at cmake/Modules/G4DeveloperAPI.cmake:1097 (install):
install TARGETS given target “G4processes” which does not exist.
Call Stack (most recent call first):
source/CMakeLists.txt:45 (geant4_compose_targets)
According to the install documentation, the requirements are gcc11 and cmake 3.16. I notice that the “officially supported” RHEL 9 bumped from 11.2 to 11.5, so I guess I am probably out of luck. But it seems strange that a minor gcc version difference would cause errors during cmake (I would not expect gcc errors to happen until compiling.)
I recognize that the solution to my problem is to use an OS from this decade. But I hope maybe there’s something else going on here. If there is a strict requirement for gcc >= 11.5 and not just 11, I humbly request that the system build requirements documentation be updated to reflect that in case it saves someone else the trouble.