You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It fails to build with the following errors. Anyone have any idea what is wrong?
In file included from /home/anon/git/xmrig-cuda/src/crypto/common/Algorithm.cpp:20:
/home/anon/git/xmrig-cuda/src/crypto/common/Algorithm.h:89:29: error: ‘size_t’ does not name a type
89 | ic inline constexpr size_t l2(Id id) { return family(id) == RANDOM_X ? (1U << ((id >> 8) & 0xff)) : 0U; }
| ^~~~~~
In file included from /home/anon/git/xmrig-cuda/src/crypto/common/Algorithm.cpp:20:
/home/anon/git/xmrig-cuda/src/crypto/common/Algorithm.h:26:1: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
25 | #include <vector>
+++ |+#include <cstddef>
26 |
In file included from /home/anon/git/xmrig-cuda/src/crypto/common/Algorithm.cpp:20:
/home/anon/git/xmrig-cuda/src/crypto/common/Algorithm.h:90:29: error: ‘size_t’ does not name a type
90 | ic inline constexpr size_t l3(Id id) { return 1ULL << ((id >> 16) & 0xff); }
| ^~~~~~
/home/anon/git/xmrig-cuda/src/crypto/common/Algorithm.h:90:29: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/home/anon/git/xmrig-cuda/src/crypto/common/Algorithm.h:98:12: error: ‘size_t’ does not name a type
98 | inline size_t l2() const { return l2(m_id); }
| ^~~~~~
/home/anon/git/xmrig-cuda/src/crypto/common/Algorithm.h:98:12: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/home/anon/git/xmrig-cuda/src/crypto/common/Algorithm.h:102:12: error: ‘size_t’ does not name a type
102 | inline size_t l3() const
| ^~~~~~
/home/anon/git/xmrig-cuda/src/crypto/common/Algorithm.h:102:12: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
make[2]: *** [CMakeFiles/xmrig-cuda.dir/build.make:90: CMakeFiles/xmrig-cuda.dir/src/crypto/common/Algorithm.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/xmrig-cuda.dir/all] Error 2
I am building with gcc 11.1.0-1
Edit: This happens with GCC 10 too.
Might this be related to #106?
Edit2: This also doesn't fix it make CC=gcc-9.4.0-1 CPP=g++-9.4.0-1 CXX=g++-9.4.0-1 LD=g++-9.4.0-1
Edit3: Adding #include <cstddef> to the Algorithms.h file worked! That is the fix for this!
The text was updated successfully, but these errors were encountered:
It fails to build with the following errors. Anyone have any idea what is wrong?
I am building with
gcc 11.1.0-1
Edit: This happens with GCC 10 too.
Might this be related to #106?
Edit2: This also doesn't fix it
make CC=gcc-9.4.0-1 CPP=g++-9.4.0-1 CXX=g++-9.4.0-1 LD=g++-9.4.0-1
Edit3: Adding
#include <cstddef>
to the Algorithms.h file worked! That is the fix for this!The text was updated successfully, but these errors were encountered: