Compiling latest djm34 source failed on Linux:
nvcc -g -O2 -I . -Xptxas "-abi=no -v" -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\" --maxrregcount=80 --ptxas-options=-v -I./compat/jansson -o qubit/qubit_luffa512.o -c qubit/qubit_luffa512.cu
qubit/qubit_luffa512.cu(35): error: invalid redeclaration of type name "uint64_t"
/usr/include/stdint.h(55): here
1 error detected in the compilation of "/tmp/tmpxft_00003bab_00000000-9_qubit_luffa512.compute_35.cpp1.ii".
make[2]: *** [qubit/qubit_luffa512.o] Error 2
make[2]: Leaving directory `/home/henning/CryptCoins/compile/djm34/ccminer'
Changed:
typedef unsigned long long uint64_t;
to:
typedef unsigned char uint8_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;;
in qubit/qubit_luffa512.cu
right, there are defined in stdint.h (my computer doesn't complain about that though).
just remove the 3 lines:
typedef unsigned char uint8_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
btw you really don't want to do:
typedef unsigned long uint64_t; (however it depends of the system)
edit: please don't suggest random changes
(although, it doesn't matter as this algo doesn't use uint64_t type)