CudaMiner
CudaMiner copied to clipboard
/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope
I'm getting this error when trying to make.
root@bernardo-ubuntu:~/CudaMiner# make make all-recursive make[1]: Entering directory '/root/CudaMiner' Making all in compat make[2]: Entering directory '/root/CudaMiner/compat' Making all in jansson make[3]: Entering directory '/root/CudaMiner/compat/jansson' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/root/CudaMiner/compat/jansson' make[3]: Entering directory '/root/CudaMiner/compat' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/root/CudaMiner/compat' make[2]: Leaving directory '/root/CudaMiner/compat' make[2]: Entering directory '/root/CudaMiner' nvcc -g -O2 -Xptxas "-abi=no -v" -arch=sm_30 --maxrregcount=64 --ptxas-options=-v -I./compat/jansson -o wrapnvml.o -c wrapnvml.cu ptxas warning : 'option -abi=no' might get deprecated in future ptxas warning : Too big maxrregcount value specified 64, will be ignored ptxas info : 0 bytes gmem ptxas info : Compiling entry function '__cuda_dummy_entry__' for 'sm_30' ptxas info : Used 0 registers /usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’: /usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope return (char *) memcpy (__dest, __src, __n) + __n; ^ Makefile:1109: recipe for target 'wrapnvml.o' failed make[2]: *** [wrapnvml.o] Error 1 make[2]: Leaving directory '/root/CudaMiner' Makefile:688: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/root/CudaMiner' Makefile:412: recipe for target 'all' failed make: *** [all] Error 2
Any clues on how to solve that? Thank you.
In the Makefile change NVCC = nvcc
to NVCC = nvcc -D_FORCE_INLINES