unsupported GNU version! gcc versions later than 6 are not supported!
I'm using gcc (GCC) 7.3.1, but failing to compile the xmrig-nvidia:

######################
In file included from /usr/local/cuda/include/host_config.h:50:0,
                 from /usr/local/cuda/include/cuda_runtime.h:78,
                 from <ligne-de-commande>:0:
/usr/local/cuda/include/crt/host_config.h:121:2: error: #error -- unsupported GNU version! gcc versions later than 6 are not supported!
 #error -- unsupported GNU version! gcc versions later than 6 are not supported!
  ^~~~~
CMake Error at xmrig-cuda_generated_cuda_extra.cu.o.Release.cmake:219 (message):
  Error generating
  /home/wilo/Téléchargements/CRYPTO/xmrig-nvidia-2.5.0/CMakeFiles/xmrig-cuda.dir/src/nvidia/./xmrig-cuda_generated_cuda_extra.cu.o


make[2]: *** [CMakeFiles/xmrig-cuda.dir/build.make:72: CMakeFiles/xmrig-cuda.dir/src/nvidia/xmrig-cuda_generated_cuda_extra.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:67: CMakeFiles/xmrig-cuda.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

##########################################