xmrig-nvidia icon indicating copy to clipboard operation
xmrig-nvidia copied to clipboard

unsupported GNU version! gcc versions later than 6 are not supported!

Open wilo17 opened this issue 6 years ago • 6 comments

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 :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

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

wilo17 avatar Mar 20 '18 15:03 wilo17

A good idea might be to use gcc 6 instead of 7.3 :)

ghost avatar Mar 20 '18 16:03 ghost

Yeah, I know but it's boring to downgrade on Fedora ;)

wilo17 avatar Mar 20 '18 17:03 wilo17

You can't have both installed at the same time on Linux? :O

ghost avatar Mar 20 '18 17:03 ghost

I didn't find both version on Fedora, I have no other choice than to compile myself gcc 6.

wilo17 avatar Mar 20 '18 17:03 wilo17

https://github.com/Xtra-Computing/thundersvm/issues/54#issuecomment-406567072 cmake -DCMAKE_C_COMPILER=gcc-6 -DCMAKE_CXX_COMPILER=g++-6 ..

udexon avatar Nov 22 '18 16:11 udexon

Xtra-Computing/thundersvm#54 (comment) cmake -DCMAKE_C_COMPILER=gcc-6 -DCMAKE_CXX_COMPILER=g++-6 ..

Excellent!! I compiled on Ubuntu 20.04, for a GTX 1060 Mobile, with the following commands: $ cmake . -DCUDA_ARCH=60 -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8 $ make And voilá, after a few minutes, it completed the task and now I have my libxmrig-cuda.so.. As an additional info, anyone can find all cmake parameter here.

urbaez22 avatar Jan 28 '22 15:01 urbaez22