Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors compiling #24

Open
dconsorte opened this issue Aug 28, 2017 · 2 comments
Open

errors compiling #24

dconsorte opened this issue Aug 28, 2017 · 2 comments

Comments

@dconsorte
Copy link

Hi,

I'm having trouble. I was able to fix a bunch of problems by installing CUDA 8.0 and using gcc/g++ 4.8. Now I get this error when running Make - please help:

make all-recursive
make[1]: Entering directory '/home/dennis/Downloads/ccminer-cryptonight-master'
Making all in compat
make[2]: Entering directory '/home/dennis/Downloads/ccminer-cryptonight-master/compat'
make[3]: Entering directory '/home/dennis/Downloads/ccminer-cryptonight-master/compat'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/dennis/Downloads/ccminer-cryptonight-master/compat'
make[2]: Leaving directory '/home/dennis/Downloads/ccminer-cryptonight-master/compat'
make[2]: Entering directory '/home/dennis/Downloads/ccminer-cryptonight-master'
nvcc -g -O2 -I . --maxrregcount=128 --ptxas-options=-v -o cryptonight/cryptonight.o -c cryptonight/cryptonight.cu
ptxas warning : Too big maxrregcount value specified 128, will be ignored
ptxas info : 0 bytes gmem
/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:1153: recipe for target 'cryptonight/cryptonight.o' failed
make[2]: *** [cryptonight/cryptonight.o] Error 1
make[2]: Leaving directory '/home/dennis/Downloads/ccminer-cryptonight-master'
Makefile:725: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/dennis/Downloads/ccminer-cryptonight-master'
Makefile:395: recipe for target 'all' failed
make: *** [all] Error 2

@bmayoub
Copy link

bmayoub commented Aug 29, 2017

i have the same issue today

@bentolor
Copy link

https://stackoverflow.com/a/37241511 was helpful. I replaced in the generated Makefile

NVCC = nvcc

with

NVCC = nvcc -D_FORCE_INLINES

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants