I haven't found a xmrig discussion thread so I'll post here.
Has anyone gotten cuda-plugin to compile on Ubuntu 18.04?
It compiles on 19.04 but 18.04 fails:
-- Found CUDA: /usr (found suitable version "9.1", minimum required is "8.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/coin/miners/xmrig/xmrig-cuda-2.0.0-beta/build
coin@sys24:~/miners/xmrig/xmrig-cuda-2.0.0-beta/build$ make
[ 8%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/xmrig-cu_generated_randomx_wownero.cu.o
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!
^~~~~
cc1plus: warning: unrecognized command line option -Wno-class-memaccess
CMake Error at xmrig-cu_generated_randomx_wownero.cu.o.Release.cmake:219 (message):
Error generating
/home/coin/miners/xmrig/xmrig-cuda-2.0.0-beta/build/CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/./xmrig-cu_generated_randomx_wownero.cu.o
CMakeFiles/xmrig-cu.dir/build.make:105: recipe for target 'CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/xmrig-cu_generated_randomx_wownero.cu.o' failed
make[2]: *** [CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/xmrig-cu_generated_randomx_wownero.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/xmrig-cu.dir/all' failed
make[1]: *** [CMakeFiles/xmrig-cu.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
I just asked them about this on reddit, this is their response:
CUDA has very strict compiler requirements, so you have 2 options:
1. Update CUDA to recent version.
2. Install older compiler like
sudo apt install gcc-6 g++-6 and specify compiler on cmake phase
cmake .. -DCMAKE_C_COMPILER=gcc-6 -DCMAKE_CXX_COMPILER=g++-6Link to answer:
https://www.reddit.com/r/MoneroMining/comments/dvv637/xmrig_500_stable_release_unified_3_in_1_miner/f7iota4?utm_source=share&utm_medium=web2x