Closed jonkiszp closed 3 years ago
see my pull request: https://github.com/xmrig/xmrig-cuda/pull/121 modified files: https://github.com/xmrig/xmrig-cuda/pull/121/files
or this issue: https://github.com/xmrig/xmrig-cuda/issues/119
it is solved in dev release too...
Thanks it works.
Compilation on Ubuntu 20.04 with gcc8 cuda 10.1
I am getting such an error
`[ 5%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/xmrig-cu_generated_randomx_arqma.cu.o /home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(33): error: forward declaration of enum type is nonstandard
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(33): error: identifier "uint32_t" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(33): error: incomplete type is not allowed
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(33): error: expected a ";"
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(66): warning: parsing restarts here after previous syntax error
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(68): error: forward declaration of enum type is nonstandard
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(68): error: expected an identifier
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(68): error: incomplete type is not allowed
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(69): error: identifier "UNKNOWN" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(70): error: identifier "CN_ANY" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(71): error: identifier "CN" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(72): error: identifier "CN_LITE" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(73): error: identifier "CN_HEAVY" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(74): error: identifier "CN_PICO" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(75): error: identifier "CN_FEMTO" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(76): error: identifier "RANDOM_X" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(77): error: identifier "ARGON2" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(78): error: identifier "ASTROBWT" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(79): error: identifier "KAWPOW" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(82): error: expected an identifier
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(82): error: inline specifier allowed on function declarations only
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(82): error: expected an expression
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(83): error: expected a ")"
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(83): error: inline specifier allowed on function declarations only
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(83): error: expected a ";"
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(99): warning: parsing restarts here after previous syntax error
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(101): error: a type qualifier is not allowed on a nonmember function
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(104): error: identifier "m_id" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(104): error: identifier "ASTROBWT_DERO" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(104): error: too many arguments in function call
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(110): error: class "xmrig_cuda::Algorithm" has no member "Id"
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(110): error: a type qualifier is not allowed on a nonmember function
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(110): error: too few parameters for this operator function
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(110): error: nonmember operator requires a parameter with class or enum type
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(110): error: identifier "m_id" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(111): error: a type qualifier is not allowed on a nonmember function
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(111): error: too few parameters for this operator function
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(111): error: identifier "isEqual" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(112): error: class "xmrig_cuda::Algorithm" has no member "Id"
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(112): error: a type qualifier is not allowed on a nonmember function
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(112): error: too few parameters for this operator function
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(112): error: nonmember operator requires a parameter with class or enum type
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(112): error: identifier "m_id" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(113): error: a type qualifier is not allowed on a nonmember function
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(113): error: too few parameters for this operator function
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(113): error: identifier "isEqual" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(114): error: expected an operator
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(114): error: a type qualifier is not allowed on a nonmember function
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(114): error: explicit type is missing ("int" assumed)
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(114): error: identifier "m_id" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(116): error: variable "xmrig_cuda::Id" is not a type name
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(116): error: identifier "uint32_t" is undefined
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(118): error: expected a declaration
/home/czorny/xmrig-cuda/src/crypto/common/Algorithm.h(123): error: expected a declaration
/usr/include/c++/8/cstdint(66): error: the global scope has no "uint8_t"
/home/czorny/xmrig-cuda/src/cryptonight.h(48): error: class "xmrig_cuda::Algorithm" has no member "INVALID"
/home/czorny/xmrig-cuda/src/cryptonight.h(151): error: identifier "uint8_t" is undefined
/home/czorny/xmrig-cuda/src/RandomX/blake2b_cuda.hpp(22): error: identifier "uint8_t" is undefined
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(72): error: identifier "uint8_t" is undefined
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(1829): error: identifier "uint8_t" is undefined
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(427): error: identifier "uint8_t" is undefined
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(434): error: no instance of function template "RandomX_Arqma::set_buffer" matches the argument list argument types are: (, int)
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(2083): error: identifier "uint8_t" is undefined
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(2083): error: expected an expression
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(2083): error: expected a ")"
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(2084): error: expected an expression
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(2084): error: expected a ")"
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(2085): error: expected an expression
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(2085): error: expected a ")"
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(2086): error: expected an expression
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(2086): error: expected a ")"
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(2089): error: "uint8_t" is not a type name
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(2089): error: "uint8_t" is not a type name
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(2102): error: identifier "scratchpad" is undefined
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(2102): error: expected an expression
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(2102): error: expected a ")"
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(1653): error: identifier "uint8_t" is undefined detected during instantiation of "void RandomX_Arqma::execute_vm<WORKERS_PER_HASH,HIGH_PRECISION>(void , void , void , const void , uint32_t, uint32_t, __nv_bool, __nv_bool) [with WORKERS_PER_HASH=8, HIGH_PRECISION=false]" /home/czorny/xmrig-cuda/src/RandomX/hash.hpp(46): here
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(1653): error: identifier "uint8_t" is undefined detected during instantiation of "void RandomX_Arqma::execute_vm<WORKERS_PER_HASH,HIGH_PRECISION>(void , void , void , const void , uint32_t, uint32_t, __nv_bool, __nv_bool) [with WORKERS_PER_HASH=8, HIGH_PRECISION=false]" /home/czorny/xmrig-cuda/src/RandomX/hash.hpp(46): here
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(1654): error: identifier "uint8_t" is undefined detected during instantiation of "void RandomX_Arqma::execute_vm<WORKERS_PER_HASH,HIGH_PRECISION>(void , void , void , const void , uint32_t, uint32_t, __nv_bool, __nv_bool) [with WORKERS_PER_HASH=8, HIGH_PRECISION=false]" /home/czorny/xmrig-cuda/src/RandomX/hash.hpp(46): here
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(1654): error: identifier "dst" is undefined detected during instantiation of "void RandomX_Arqma::execute_vm<WORKERS_PER_HASH,HIGH_PRECISION>(void , void , void , const void , uint32_t, uint32_t, __nv_bool, __nv_bool) [with WORKERS_PER_HASH=8, HIGH_PRECISION=false]" /home/czorny/xmrig-cuda/src/RandomX/hash.hpp(46): here
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(1654): error: expected an expression detected during instantiation of "void RandomX_Arqma::execute_vm<WORKERS_PER_HASH,HIGH_PRECISION>(void , void , void , const void , uint32_t, uint32_t, __nv_bool, __nv_bool) [with WORKERS_PER_HASH=8, HIGH_PRECISION=false]" /home/czorny/xmrig-cuda/src/RandomX/hash.hpp(46): here
/home/czorny/xmrig-cuda/src/RandomX/randomx_cuda.hpp(1654): error: expected a ")" detected during instantiation of "void RandomX_Arqma::execute_vm<WORKERS_PER_HASH,HIGH_PRECISION>(void , void , void , const void , uint32_t, uint32_t, __nv_bool, __nv_bool) [with WORKERS_PER_HASH=8, HIGH_PRECISION=false]" /home/czorny/xmrig-cuda/src/RandomX/hash.hpp(46): here
80 errors detected in the compilation of "/tmp/tmpxft_00019f42_00000000-10_randomx_arqma.compute_75.cpp1.ii". CMake Error at xmrig-cu_generated_randomx_arqma.cu.o.Release.cmake:280 (message): Error generating file /home/czorny/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/./xmrig-cu_generated_randomx_arqma.cu.o
make[2]: [CMakeFiles/xmrig-cu.dir/build.make:916: CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/xmrig-cu_generated_randomx_arqma.cu.o] Error 1 make[1]: [CMakeFiles/Makefile2:104: CMakeFiles/xmrig-cu.dir/all] Error 2 make: *** [Makefile:84: all] Error 2 `