Closed kkkrackpot closed 6 years ago
Have the same
g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -std=c++11 -MT Algo256/ccminer-keccak256.o -MD -MP -MF Algo256/.deps/ccminer-keccak256.Tpo -c -o Algo256/ccminer-keccak256.o
test -f 'Algo256/keccak256.cpp' || echo './'Algo256/keccak256.cpp In file included from Algo256/keccak256.cpp:15:0: ./cuda_helper.h: In function ‘uint32_t ROL8(uint32_t)’: ./cuda_helper.h:711:33: error: ‘__byte_perm’ was not declared in this scope return __byte_perm(x, x, 0x2103); ^ ./cuda_helper.h: In function ‘uint32_t ROL16(uint32_t)’: ./cuda_helper.h:715:33: error: ‘__byte_perm’ was not declared in this scope return __byte_perm(x, x, 0x1032); ^ ./cuda_helper.h: In function ‘uint32_t ROL24(uint32_t)’: ./cuda_helper.h:719:33: error: ‘__byte_perm’ was not declared in this scope return __byte_perm(x, x, 0x0321); ^ ./cuda_helper.h: In function ‘uint2 ROR8(uint2)’: ./cuda_helper.h:725:41: error: ‘__byte_perm’ was not declared in this scope result.x = __byte_perm(a.y, a.x, 0x0765); ^ ./cuda_helper.h: In function ‘uint2 ROR16(uint2)’: ./cuda_helper.h:734:41: error: ‘__byte_perm’ was not declared in this scope result.x = __byte_perm(a.y, a.x, 0x1076); ^ ./cuda_helper.h: In function ‘uint2 ROR24(uint2)’: ./cuda_helper.h:743:41: error: ‘__byte_perm’ was not declared in this scope result.x = __byte_perm(a.y, a.x, 0x2107); ^ ./cuda_helper.h: In function ‘uint2 ROL8(uint2)’: ./cuda_helper.h:752:41: error: ‘__byte_perm’ was not declared in this scope result.x = __byte_perm(a.y, a.x, 0x6543); ^ ./cuda_helper.h: In function ‘uint2 ROL16(uint2)’: ./cuda_helper.h:761:41: error: ‘__byte_perm’ was not declared in this scope result.x = __byte_perm(a.y, a.x, 0x5432); ^ ./cuda_helper.h: In function ‘uint2 ROL24(uint2)’: ./cuda_helper.h:770:41: error: ‘__byte_perm’ was not declared in this scope result.x = __byte_perm(a.y, a.x, 0x4321); ^ Algo256/keccak256.cpp: In function ‘int scanhash_keccak256(int, uint32_t*, uint32_t*, uint32_t, uint32_t*)’: Algo256/keccak256.cpp:44:66: error: ‘min’ was not declared in this scope uint32_t throughput = min(throughputmax, max_nonce - first_nonce) & 0xfffffc00;
Yeah. This happens sometimes because I don't have Linux here to test stuff. I will have to make some changes in the file cuda_helper.h
I have made some changes. Please try it again. Not all errors will be gone, probably.
Nope, some errors are still there:
ccminer.cpp: In function 'void* miner_thread(void*)':
ccminer.cpp:1578:69: error: no matching function for call to 'max(int, time_t)'
max64time = (uint32_t)max(1, scan_time + g_work_time - time(NULL));
^
...
ccminer.cpp:1640:32: error: no matching function for call to 'min(unsigned int, uint64_t&)'
max64 = min(UINT32_MAX, max64);
^
Ok, more changes. Try again :-)
@KlausT Nope, it still fails, in yet another place...
nvml.cpp: In function 'int nvml_set_clocks(nvml_handle*, int)':
nvml.cpp:350:27: error: no matching function for call to 'min(uint32_t&, int)'
nclocks = min(nclocks, 32);
^
...
nvml.cpp: In function 'int nvml_set_pstate(nvml_handle*, int)':
nvml.cpp:463:27: error: no matching function for call to 'min(uint32_t&, int)'
nclocks = min(nclocks, 32);
^
Ok, I have made changes to those two lines. More fixes will have to wait until tomorrow
It builds now, thanks!
Current git version fails on Linux CUDA 9.2 GCC 7.3: