nheqminer icon indicating copy to clipboard operation
nheqminer copied to clipboard

error when running make -j $(nproc)

Open urmamasllama opened this issue 7 years ago • 11 comments

Cmake runs with no errors but make fails with this error ` [ 13%] Building NVCC (Device) object cuda_djezo/CMakeFiles/cuda_djezo.dir/cuda_djezo_generated_equi_miner.cu.o [ 13%] Built target cpu_xenoncat CMake Error at cuda_djezo_generated_equi_miner.cu.o.cmake:207 (message): Error generating /home/llama/build/cuda_djezo/CMakeFiles/cuda_djezo.dir//./cuda_djezo_generated_equi_miner.cu.o

cuda_djezo/CMakeFiles/cuda_djezo.dir/build.make:63: recipe for target 'cuda_djezo/CMakeFiles/cuda_djezo.dir/cuda_djezo_generated_equi_miner.cu.o' failed make[2]: *** [cuda_djezo/CMakeFiles/cuda_djezo.dir/cuda_djezo_generated_equi_miner.cu.o] Error 1 CMakeFiles/Makefile2:178: recipe for target 'cuda_djezo/CMakeFiles/cuda_djezo.dir/all' failed make[1]: *** [cuda_djezo/CMakeFiles/cuda_djezo.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2 ` running on ubuntu 16.04

urmamasllama avatar Jun 26 '17 20:06 urmamasllama

I am seeing same issue

$ make -j $(nproc) [ 4%] Building NVCC (Device) object cuda_djezo/CMakeFiles/cuda_djezo.dir/cuda_djezo_generated_equi_miner.cu.o [ 13%] Built target cpu_xenoncat In file included from /home/vmukka/Downloads/nheqminer/cuda_djezo/equi_miner.cu:76:0: /home/vmukka/Downloads/nheqminer/cuda_djezo/eqcuda.hpp:6:36: fatal error: device_functions_decls.h: No such file or directory compilation terminated. CMake Error at cuda_djezo_generated_equi_miner.cu.o.cmake:207 (message): Error generating /home/vmukka/Downloads/nicehash/cuda_djezo/CMakeFiles/cuda_djezo.dir//./cuda_djezo_generated_equi_miner.cu.o

cuda_djezo/CMakeFiles/cuda_djezo.dir/build.make:63: recipe for target 'cuda_djezo/CMakeFiles/cuda_djezo.dir/cuda_djezo_generated_equi_miner.cu.o' failed make[2]: *** [cuda_djezo/CMakeFiles/cuda_djezo.dir/cuda_djezo_generated_equi_miner.cu.o] Error 1 CMakeFiles/Makefile2:178: recipe for target 'cuda_djezo/CMakeFiles/cuda_djezo.dir/all' failed make[1]: *** [cuda_djezo/CMakeFiles/cuda_djezo.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2

kumarvarun1252 avatar Dec 21 '17 03:12 kumarvarun1252

I'm also getting this.

micah-williamson avatar Dec 27 '17 01:12 micah-williamson

same here. anyone figured out how to solve it?

alabart avatar Jan 25 '18 23:01 alabart

I have same issue (Ubuntu 16.04)

aleksandergabriel avatar Jan 27 '18 18:01 aleksandergabriel

Search issues for keyword "device_functions_decls.h" and there will be at least five issues saying what to do. For me, deleting #include "device_functions_decls.h" from eqcuda.hpp worked. Not sure why its even there.

joseortiz3 avatar Jan 28 '18 03:01 joseortiz3

I did the same and it worked for me: comenting out or deleting the line in eqcuda.hpp //#include "device_functions_decls.h"

alabart avatar Jan 29 '18 09:01 alabart

Thanks joseortiz3, that worked for me on Arch Linux.

mosh5382 avatar Feb 03 '18 05:02 mosh5382

After deleting #include "device_functions_decls.h from eqcuda.hpp, I'm now getting:

$ make -j2
[  4%] Building NVCC (Device) object cuda_djezo/CMakeFiles/cuda_djezo.dir/cuda_djezo_generated_equi_miner.cu.o
Scanning dependencies of target cpu_xenoncat
[  9%] Building CXX object cpu_xenoncat/CMakeFiles/cpu_xenoncat.dir/xenoncat.cpp.o
In file included from /usr/include/host_config.h:50:0,
                 from /usr/include/cuda_runtime.h:78,
                 from <command-line>: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 cuda_djezo_generated_equi_miner.cu.o.cmake:219 (message):
  Error generating
  /home/hackeron/nicehash/cuda_djezo/CMakeFiles/cuda_djezo.dir//./cuda_djezo_generated_equi_miner.cu.o


cuda_djezo/CMakeFiles/cuda_djezo.dir/build.make:63: recipe for target 'cuda_djezo/CMakeFiles/cuda_djezo.dir/cuda_djezo_generated_equi_miner.cu.o' failed
make[2]: *** [cuda_djezo/CMakeFiles/cuda_djezo.dir/cuda_djezo_generated_equi_miner.cu.o] Error 1
CMakeFiles/Makefile2:178: recipe for target 'cuda_djezo/CMakeFiles/cuda_djezo.dir/all' failed
make[1]: *** [cuda_djezo/CMakeFiles/cuda_djezo.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 13%] Linking CXX static library libcpu_xenoncat.a
[ 13%] Built target cpu_xenoncat
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Any ideas?

rgaufman avatar Aug 13 '18 21:08 rgaufman

@rgaufman The error message says you're not using or don't have the right version of gcc

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 cuda_djezo_generated_equi_miner.cu.o.cmake

joseortiz3 avatar Aug 13 '18 21:08 joseortiz3

I'm just on a standard Ubuntu 18.04 LTS, I take it there's no support yet?

rgaufman avatar Aug 14 '18 08:08 rgaufman

next steps help me: 1.nano nheqminer/cuda_djezo/eqcuda.hpp delete "device_functions_decls.h" 2.cmake ../nheqminer 3.make -j $(nproc)

AlinaLoz avatar Feb 19 '20 09:02 AlinaLoz