Hi guys,
I’m trying to compile the miner on Ubuntu 18.04, Nvidia driver 410.78, Cuda 10.0.130_410, gcc 7.3.0 and i’m stuck with an error i’m not able to troubleshoot. See stack trace below … is there special environment requirements to build the miner. I have no issues when building without cuda, all is fine miner is working well
Any clue ?
running: “cmake” “/home/jrpinna/grin/grin-miner/cuckoo-miner/src/cuckoo_sys/plugins” “-DBUILD_CUDA_PLUGINS=TRUE” “-DCMAKE_INSTALL_PREFIX=/home/jrpinna/grin/grin-miner/target/debug/build/cuckoo_miner-a4d0f8236c667092/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
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Looking for pthread.h
– Looking for pthread.h - found
– Looking for pthread_create
– Looking for pthread_create - not found
– Looking for pthread_create in pthreads
– Looking for pthread_create in pthreads - not found
– Looking for pthread_create in pthread
– Looking for pthread_create in pthread - found
– Found Threads: TRUE
– Found CUDA Toolkit v10.0
– Setting CMAKE_HOST_COMPILER to /usr/bin/gcc.
– CUDA NVCC target flags: -gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70
– Configuring done
– Generating done
– Build files have been written to: /home/jrpinna/grin/grin-miner/target/debug/build/cuckoo_miner-a4d0f8236c667092/out/build
running: “cmake” “–build” “.” “–target” “” “–config” “Debug” “–”
Scanning dependencies of target cuckatoo_lean_cpu_30
Scanning dependencies of target cuckatoo_mean_compat_cpu_30
Scanning dependencies of target cuckatoo_lean_cpu_29
[ 1%] Building NVCC (Device) object CMakeFiles/cuckaroo_mean_cuda_29.dir/cuckoo/src/cuckaroo/cuckaroo_mean_cuda_29_generated_mean.cu.o
[ 3%] Building CXX object CMakeFiles/cuckatoo_lean_cpu_30.dir/cuckoo/src/cuckatoo/lean.cpp.o
[ 5%] Building CXX object CMakeFiles/cuckatoo_mean_compat_cpu_30.dir/cuckoo/src/cuckatoo/mean.cpp.o
[ 7%] Building CXX object CMakeFiles/cuckatoo_lean_cpu_29.dir/cuckoo/src/cuckatoo/lean.cpp.o
[ 9%] Building C object CMakeFiles/cuckatoo_lean_cpu_30.dir/cuckoo/src/crypto/blake2b-ref.c.o
[ 11%] Building C object CMakeFiles/cuckatoo_lean_cpu_29.dir/cuckoo/src/crypto/blake2b-ref.c.o
[ 12%] Linking CXX shared library plugins/cuckatoo_lean_cpu_30.cuckooplugin
[ 12%] Built target cuckatoo_lean_cpu_30
[ 14%] Building C object CMakeFiles/cuckatoo_mean_compat_cpu_30.dir/cuckoo/src/crypto/blake2b-ref.c.o
[ 16%] Linking CXX shared library plugins/cuckatoo_lean_cpu_29.cuckooplugin
[ 16%] Built target cuckatoo_lean_cpu_29
[ 18%] Building NVCC (Device) object CMakeFiles/cuckatoo_mean_cuda_30.dir/cuckoo/src/cuckatoo/cuckatoo_mean_cuda_30_generated_mean.cu.o
[ 20%] Building NVCC (Device) object CMakeFiles/cuckatoo_mean_cuda_29.dir/cuckoo/src/cuckatoo/cuckatoo_mean_cuda_29_generated_mean.cu.o
[ 22%] Linking CXX shared library plugins/cuckatoo_mean_compat_cpu_30.cuckooplugin
[ 22%] Built target cuckatoo_mean_compat_cpu_30
Scanning dependencies of target cuckatoo_mean_compat_cpu_29
[ 24%] Building CXX object CMakeFiles/cuckatoo_mean_compat_cpu_29.dir/cuckoo/src/cuckatoo/mean.cpp.o
[ 25%] Building C object CMakeFiles/cuckatoo_mean_compat_cpu_29.dir/cuckoo/src/crypto/blake2b-ref.c.o
[ 27%] Linking CXX shared library plugins/cuckatoo_mean_compat_cpu_29.cuckooplugin
[ 27%] Built target cuckatoo_mean_compat_cpu_29
Scanning dependencies of target cuckatoo_lean_cpu_19
[ 29%] Building CXX object CMakeFiles/cuckatoo_lean_cpu_19.dir/cuckoo/src/cuckatoo/lean.cpp.o
[ 31%] Building C object CMakeFiles/cuckatoo_lean_cpu_19.dir/cuckoo/src/crypto/blake2b-ref.c.o
[ 33%] Linking CXX shared library plugins/cuckatoo_lean_cpu_19.cuckooplugin
[ 33%] Built target cuckatoo_lean_cpu_19
[ 35%] Building NVCC (Device) object CMakeFiles/cuckaroo_mean_cuda_19.dir/cuckoo/src/cuckaroo/cuckaroo_mean_cuda_19_generated_mean.cu.o
[ 37%] Building NVCC (Device) object CMakeFiles/cuckaroo_mean_cuda_19.dir/cuckoo/src/cuckaroo/cuckaroo_mean_cuda_19_generated_mean.cu.o
Scanning dependencies of target cuckatoo_mean_compat_cpu_31
[ 38%] Building CXX object CMakeFiles/cuckatoo_mean_compat_cpu_31.dir/cuckoo/src/cuckatoo/mean.cpp.o
Scanning dependencies of target cuckatoo_mean_cuda_30
[ 40%] Building C object CMakeFiles/cuckatoo_mean_cuda_30.dir/cuckoo/src/crypto/blake2b-ref.c.o
[ 42%] Linking CXX shared library plugins/cuckatoo_mean_cuda_30.cuckooplugin
[ 42%] Built target cuckatoo_mean_cuda_30
[ 44%] Building NVCC (Device) object CMakeFiles/cuckatoo_lean_cuda_30.dir/cuckoo/src/cuckatoo/cuckatoo_lean_cuda_30_generated_lean.cu.o
[ 46%] Building C object CMakeFiles/cuckatoo_mean_compat_cpu_31.dir/cuckoo/src/crypto/blake2b-ref.c.o
Scanning dependencies of target cuckaroo_mean_cuda_19
[ 48%] Building C object CMakeFiles/cuckaroo_mean_cuda_19.dir/cuckoo/src/crypto/blake2b-ref.c.o
CMakeFiles/cuckatoo_lean_cuda_30.dir/build.make:70: recipe for target ‘CMakeFiles/cuckatoo_lean_cuda_30.dir/cuckoo/src/cuckatoo/cuckatoo_lean_cuda_30_generated_lean.cu.o’ failed
CMakeFiles/Makefile2:400: recipe for target ‘CMakeFiles/cuckatoo_lean_cuda_30.dir/all’ failed
[ 50%] Linking CXX shared library plugins/cuckaroo_mean_cuda_19.cuckooplugin
[ 51%] Linking CXX shared library plugins/cuckatoo_mean_compat_cpu_31.cuckooplugin
[ 51%] Built target cuckaroo_mean_cuda_19
[ 51%] Built target cuckatoo_mean_compat_cpu_31
Scanning dependencies of target cuckaroo_mean_cuda_29
[ 53%] Building C object CMakeFiles/cuckaroo_mean_cuda_29.dir/cuckoo/src/crypto/blake2b-ref.c.o
[ 55%] Linking CXX shared library plugins/cuckaroo_mean_cuda_29.cuckooplugin
[ 55%] Built target cuckaroo_mean_cuda_29
Makefile:83: recipe for target ‘all’ failed
— stderr
/home/jrpinna/grin/grin-miner/cuckoo-miner/src/cuckoo_sys/plugins/cuckoo/src/cuckatoo/lean.cu(234): error: identifier “edges” is undefined
/home/jrpinna/grin/grin-miner/cuckoo-miner/src/cuckoo_sys/plugins/cuckoo/src/cuckatoo/lean.cu(234): error: too many arguments in function call
2 errors detected in the compilation of “/tmp/tmpxft_00006a29_00000000-12_lean.compute_70.cpp1.ii”.
CMake Error at cuckatoo_lean_cuda_30_generated_lean.cu.o.Debug.cmake:279 (message):
Error generating file
/home/jrpinna/grin/grin-miner/target/debug/build/cuckoo_miner-a4d0f8236c667092/out/build/CMakeFiles/cuckatoo_lean_cuda_30.dir/cuckoo/src/cuckatoo/./cuckatoo_lean_cuda_30_generated_lean.cu.o
make[2]: *** [CMakeFiles/cuckatoo_lean_cuda_30.dir/cuckoo/src/cuckatoo/cuckatoo_lean_cuda_30_generated_lean.cu.o] Error 1
make[1]: *** [CMakeFiles/cuckatoo_lean_cuda_30.dir/all] Error 2
make[2]: *** [CMakeFiles/cuckatoo_lean_cuda_30.dir/cuckoo/src/cuckatoo/cuckatoo_lean_cuda_30_generated_lean.cu.o] Error 1
make[1]: *** [CMakeFiles/cuckatoo_lean_cuda_30.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
make: *** [all] Error 2
thread ‘main’ panicked at ’
command did not execute successfully, got: exit code: 2