When smartredis, smartredis-mpi and cfd solver are compiled against nvhpc compiler, the nvidia compiler might be built against very old gcc versions, e.g., gcc-8.5.0, on clusters. However, at least gcc 9 is required by smart build to build smartsim dependencies.
The clearest solution might be building nvhpc against newer gcc version, e.g., at least gcc 9, so only one gcc version is used.
In our installations, we found that it is okay to run smart build against newer gcc, e.g., at least gcc 9, and at the same time, build smartredis using nvhpc that is compiled against old gcc, e.g. gcc 8.5.0.