# Weird grin-miner build error

**URL:** <https://forum.grin.mw/t/weird-grin-miner-build-error/1159>\
**Category:** Tech Support\
**Created:** [November 6, 2018, 9:21pm UTC](https://forum.grin.mw/t/weird-grin-miner-build-error/1159 "2018-11-06T21:21:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lofino](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@lofino](https://forum.grin.mw/u/lofino)\
**Post date:** [November 6, 2018, 9:21pm UTC](https://forum.grin.mw/t/weird-grin-miner-build-error/1159/1 "2018-11-06T21:21:14Z")

</div>

I got no problem building and running the node. No problem as well building grin-miner.

But once I’m trying to build the miner with the CUDA plugin, I get this error :

(…)  
running: “cmake” “/home/user/grin/grin-miner/cuckoo-miner/src/cuckoo\_sys/plugins” “-DBUILD\_CUDA\_PLUGINS=TRUE” “-DCMAKE\_INSTALL\_PREFIX=/home/user/grin/grin-miner/target/debug/build/cuckoo\_miner-539b2b040e2e537f/out” “-DCMAKE\_C\_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64” “-DCMAKE\_C\_COMPILER=/usr/bin/cc” “-DCMAKE\_CXX\_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64” “-DCMAKE\_CXX\_COMPILER=/usr/bin/c++” “-DCMAKE\_BUILD\_TYPE=Debug”  
– The C compiler identification is GNU 7.3.0  
– The CXX compiler identification is GNU 7.3.0  
(…)  
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!

Kinda weird. I don’t get why a later version couldn’t be used. And I don’t see myself downgrading. Is it a matter of a flag somewhere ?

---

<div class="post-metadata">

**Author:** ![lofino](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@lofino](https://forum.grin.mw/u/lofino)\
**Post date:** [November 6, 2018, 9:35pm UTC](https://forum.grin.mw/t/weird-grin-miner-build-error/1159/2 "2018-11-06T21:35:35Z")

</div>

Ok if it can help anyone, install gcc-6 and g+±6. Then the commands are :

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g+±6 10  
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 10

Looks like a CUDA 9.\* behavior.
