fireice-uk / xmr-stak

Free Monero RandomX Miner and unified CryptoNight miner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error -- unsupported GNU version! gcc versions later than 8 are not supported!

lfsamp opened this issue · comments

Describe the bug
I am trying to compile this project in Linux Mint 20.2.
I am getting the error error -- unsupported GNU version! gcc versions later than 8 are not supported!

The version mu gcc is: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0

Any suggestion how to fix that without uninstall Linux Mint 20.2?

Here the error log:

[  6%] Built target xmr-stak-asm
[ 20%] Built target xmr-stak-c
[ 71%] Built target xmr-stak-backend
[ 75%] Built target xmr-stak
[ 77%] Building NVCC (Device) object CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/xmrstak_cuda_backend_generated_cuda_extra.cu.o
In file included from /usr/include/cuda_runtime.h:83,
                 from <command-line>:
/usr/include/crt/host_config.h:138:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
  138 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
      |  ^~~~~
CMake Error at xmrstak_cuda_backend_generated_cuda_extra.cu.o.Release.cmake:220 (message):
  Error generating
  /mnt/WorkSpace2T/Monero/xmr-stak/build/CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/./xmrstak_cuda_backend_generated_cuda_extra.cu.o


make[2]: *** [CMakeFiles/xmrstak_cuda_backend.dir/build.make:72: CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/xmrstak_cuda_backend_generated_cuda_extra.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:116: CMakeFiles/xmrstak_cuda_backend.dir/all] Error 2
make: *** [Makefile:130: all] Error 2