Grin-miner compiling error (unsupported gcc version ?)

I’m trying to compile grin-miner on ubuntu 18 to run with my 4 nvidia 1070 ti’s with the cuda plugin enabled. I followed the installation guide and here’s my error and specs:

Error: “#error – unsupported GNU version! gcc versions later than 6 are not supported!”

In trying to compile grin-miner with config option
“cuckoo_miner = { path = “./cuckoo-miner”, version = “0.5.2”, features = [“build-cuda-plugins”]}”\

System Specs:

OS: Ubuntu 18.04.1 LTS
CPU: Intel Celeron G3930
GPUs: GIGABYTE GeForce GTX 1070 Ti (x4)

More details on the error log below:

Anyone know what’s going on?


running: “cmake” “–build” “.” “–target” “” “–config” “Debug” “–”
[ 1%] Building NVCC (Device) object CMakeFiles/cuckaroo_cuda_29.dir/cuckoo/src/cuckaroo/cuckaroo_cuda_29_generated_mean.cu.o
CMakeFiles/cuckaroo_cuda_29.dir/build.make:70: recipe for target ‘CMakeFiles/cuckaroo_cuda_29.dir/cuckoo/src/cuckaroo/cuckaroo_cuda_29_generated_mean.cu.o’ failed
CMakeFiles/Makefile2:67: recipe for target ‘CMakeFiles/cuckaroo_cuda_29.dir/all’ failed
Makefile:83: recipe for target ‘all’ failed

— stderr
In file included from /usr/include/host_config.h:50:0,
from /usr/include/cuda_runtime.h:78,
from :0:
/usr/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 cuckaroo_cuda_29_generated_mean.cu.o.Debug.cmake:219 (message):
Error generating
/home/bob/grin-miner/target/debug/build/cuckoo_miner-d5d51e508ac87cff/out/build/CMakeFiles/cuckaroo_cuda_29.dir/cuckoo/src/cuckaroo/./cuckaroo_cuda_29_generated_mean.cu.o

make[2]: *** [CMakeFiles/cuckaroo_cuda_29.dir/cuckoo/src/cuckaroo/cuckaroo_cuda_29_generated_mean.cu.o] Error 1
make[1]: *** [CMakeFiles/cuckaroo_cuda_29.dir/all] Error 2
make: *** [all] Error 2
thread ‘main’ panicked at ’
command did not execute successfully, got: exit code: 2

build script failed, must exit now’, /home/bob/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.34/src/lib.rs:776:5
note: Run with RUST_BACKTRACE=1 for a backtrace.

warning: build failed, waiting for other jobs to finish…
error: build failed

sudo apt install gcc-6
sudo update-alternatves --install /usr/bin/gcc gcc /usr/bin/gcc-6 50

2 Likes