KlausT / ccminer-cryptonight

Software for mining various cryptocoins, like Monero (pool mining only)
GNU General Public License v3.0
133 stars 30 forks source link

Can't compile #5

Closed Gingeropolous closed 7 years ago

Gingeropolous commented 7 years ago

whar version of CUDA is this for?

gbone@gbone-therock:~/klaust_ccminer$ make make all-recursive make[1]: Entering directory /home/gbone/klaust_ccminer' Making all in compat make[2]: Entering directory/home/gbone/klaust_ccminer/compat' make[3]: Entering directory /home/gbone/klaust_ccminer/compat' make[3]: Nothing to be done forall-am'. make[3]: Leaving directory /home/gbone/klaust_ccminer/compat' make[2]: Leaving directory/home/gbone/klaust_ccminer/compat' make[2]: Entering directory /home/gbone/klaust_ccminer' gcc -std=gnu99 -DHAVE_CONFIG_H -I. -D_FORCE_INLINES -msse2 -fopenmp -pthread -fno-strict-aliasing -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -g -O2 -MT ccminer-cpu-miner.o -MD -MP -MF .deps/ccminer-cpu-miner.Tpo -c -o ccminer-cpu-miner.otest -f 'cpu-miner.c' || echo './'cpu-miner.c cpu-miner.c:1609:6: error: conflicting types for ‘parse_device_config’ void parse_device_config(int device, char *config, int *blocks, int *threads) ^ cpu-miner.c:66:6: note: previous declaration of ‘parse_device_config’ was here void parse_device_config(char *config, int *blocks, int *threads); ^ make[2]: *** [ccminer-cpu-miner.o] Error 1 make[2]: Leaving directory/home/gbone/klaust_ccminer' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory `/home/gbone/klaust_ccminer' make: * [all] Error 2

KlausT commented 7 years ago

You get an error because there was a bug in the code. For some reason it only affected compiling under Linux. This commit should fix it: https://github.com/KlausT/ccminer-cryptonight/commit/a84d7a7237da29371ae675b84bc3d08ed8d5f861

Gingeropolous commented 7 years ago

Just did a git pull, still can't compile..

ptxas info : Compiling entry function 'cuda_dummy_entry' for 'sm_35' ptxas info : Used 0 registers ptxas warning : 'option -abi=no' might get deprecated in future ptxas info : 0 bytes gmem ptxas warning : 'option -abi=no' might get deprecated in future ptxas info : 0 bytes gmem /usr/include/string.h: In function ‘void* __mempcpyinline(void, const void_, sizet)’: /usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope return (char ) memcpy (dest, src, n) + n; ^ Makefile:1152: recipe for target 'cryptonight/cryptonight.o' failed make[2]: _\ [cryptonight/cryptonight.o] Error 1 make[2]: Leaving directory '/home/cacna1c/klaus_ccminer' Makefile:726: recipe for target 'all-recursive' failed make[1]: * [all-recursive] Error 1 make[1]: Leaving directory '/home/cacna1c/klaus_ccminer' Makefile:396: recipe for target 'all' failed make: * [all] Error 2

KlausT commented 7 years ago

That's because Nvidia doesn't support your gcc version. It works with older gcc versions. I thought I had added a workaround for that, but it looks like I did something wrong.

I have changed the Makefile again. Please check if it works now.