Possible error building geant4 10.7 on rhel9

Please fill out the following information to help in answering your question, and also see tips for posting code snippets. If you don’t provide this information it will take more time to help with your problem!

_Geant4 Version:_v10.7.4
_Operating System:_rhel 9
_Compiler/Version:_gcc (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2)
_CMake Version:_cmake version 3.20.2


I’m building geant4 v10.7.4 so that I can use it to build topas 3.9. When running ccmake to configure the build I get the following…

 CLANG_FORMATTER                  CLANG_FORMATTER-NOTFOUND
 CMAKE_BUILD_TYPE                 Release
 CMAKE_INSTALL_PREFIX             /home/local/geant4
 G4FORMAT_LOGDIR                  /home/local/bld/geant4-v10.7.4/format
 GEANT4_BUILD_MULTITHREADED	  ON
 GEANT4_INSTALL_DATA              ON
 GEANT4_INSTALL_DATADIR           /home/local/G4Data
 GEANT4_USE_G3TOG4                OFF
 GEANT4_USE_GDML                  OFF
 GEANT4_USE_INVENTOR              OFF
 GEANT4_USE_INVENTOR_QT           OFF
 GEANT4_USE_OPENGL_X11            ON
 GEANT4_USE_PYTHON                OFF
 GEANT4_USE_QT                    ON
 GEANT4_USE_RAYTRACER_X11         OFF
 GEANT4_USE_SYSTEM_CLHEP          OFF
 GEANT4_USE_SYSTEM_EXPAT          ON
 GEANT4_USE_SYSTEM_ZLIB           OFF
 GEANT4_USE_TBB                   OFF
 GEANT4_USE_XM                    OFF
 HOSTNAME_CMD                     /usr/bin/hostname
 LIBDIR_DEFAULT                   lib64
 Qt53DCore_DIR                    /usr/lib64/cmake/Qt53DCore
 Qt53DExtras_DIR                  /usr/lib64/cmake/Qt53DExtras
 Qt53DInput_DIR                   /usr/lib64/cmake/Qt53DInput
 Qt53DLogic_DIR                   /usr/lib64/cmake/Qt53DLogic
 Qt53DRender_DIR                  /usr/lib64/cmake/Qt53DRender
 Qt5Core_DIR                      /usr/lib64/cmake/Qt5Core
 Qt5Gui_DIR                       /usr/lib64/cmake/Qt5Gui
 Qt5Network_DIR                   /usr/lib64/cmake/Qt5Network
 Qt5OpenGL_DIR                    /usr/lib64/cmake/Qt5OpenGL
 Qt5PrintSupport_DIR              /usr/lib64/cmake/Qt5PrintSupport
 Qt5Widgets_DIR                   /usr/lib64/cmake/Qt5Widgets
 X11_xcb_icccm_INCLUDE_PATH	  X11_xcb_icccm_INCLUDE_PATH-NOTFOUND
 X11_xcb_icccm_LIB                X11_xcb_icccm_LIB-NOTFOUND
 X11_xcb_util_INCLUDE_PATH        X11_xcb_util_INCLUDE_PATH-NOTFOUND
 X11_xcb_util_LIB                 X11_xcb_util_LIB-NOTFOUND
 X11_xcb_xfixes_INCLUDE_PATH	  /usr/include
 X11_xcb_xfixes_LIB               /usr/lib64/libxcb-xfixes.so

Note the following

 X11_xcb_icccm_INCLUDE_PATH	  X11_xcb_icccm_INCLUDE_PATH-NOTFOUND
 X11_xcb_icccm_LIB                X11_xcb_icccm_LIB-NOTFOUND
 X11_xcb_util_INCLUDE_PATH        X11_xcb_util_INCLUDE_PATH-NOTFOUND
 X11_xcb_util_LIB                 X11_xcb_util_LIB-NOTFOUND

I don’t how to install X11_cxb_icccm and X11_xcb_util. When I search through the rhel 9 packages, there doesn’t seem to be anything which would indicate that these libraries would be a part of an rpm package.

The configured version of geant4 10.7.4 does build with no error, but I don’t like to have these kind of error messages hanging around and could point to something down stream when I’m running geant4 thorugh topas.

Anyone have any comment on this? Should I just ignore the error?

Thanks.

These aren’t errors as such, the “find” of X11 in CMake is very comprehensive and Geant4 doesn’t use all of the libraries located (or not located in this case). If the CMake and build steps complete without error, then all should be fine.

I can concur with what you wrote. It turns out it was left over errors saved in the ccmake cache system while I was installing packages to resolve dependencies flagged in the ccmake configuration step. Once all the packages were installed, I deleted the build directory and reconfigured the ccmake and the errors were gone.

thanks.