# Grin-miner compiling error (unsupported gcc version ?)

**URL:** <https://forum.grin.mw/t/grin-miner-compiling-error-unsupported-gcc-version/2169>\
**Category:** Mining\
**Created:** [January 15, 2019, 1:20am UTC](https://forum.grin.mw/t/grin-miner-compiling-error-unsupported-gcc-version/2169 "2019-01-15T01:20:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![betajuice](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/betajuice/32/966_2.png) [@betajuice](https://forum.grin.mw/u/betajuice)\
**Post date:** [January 15, 2019, 1:20am UTC](https://forum.grin.mw/t/grin-miner-compiling-error-unsupported-gcc-version/2169/1 "2019-01-15T01:20:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dwayne](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/dwayne/32/878_2.png) [@dwayne](https://forum.grin.mw/u/dwayne)\
**Post date:** [January 15, 2019, 2:38am UTC](https://forum.grin.mw/t/grin-miner-compiling-error-unsupported-gcc-version/2169/2 "2019-01-15T02:38:12Z")

</div>

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