Unable to install gromax #error -- unsupported GNU version! gcc versions later than 12 are not suppo

Hello guys, Need urgent help with this error that I encountered while installing gromax to my ubuntu system version 23.10.
Its shows error after command " cmake … -DGMX_GPU=CUDA -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda " as below

#error – unsupported GNU version! gcc versions later than 12 are not supported! The nvcc flag ‘-allow-unsupported-compiler’ can be used to override this version check" " however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.

Please help me with this. Please

The error seem to be self-explanatory, your gcc version is > 12 and it is not compatible with what you are doing. Try to install in parallel another version (if you don’t have it already), like 11, and go thought the installation again with the correct gcc sourced or by giving the correct location as a flag to the make command