Error while installing GEANT4 in ubuntu 22.04.2 LTS

Thanks, that’s a lot clearer now - this is Bug 2444 for which there are a few resolutions. It should be fixed for Geant4 10.7.4 and later, but I’d recommend using the latest Geant4 11.1.2 release for best support with GCC 11.