RandomX icon indicating copy to clipboard operation
RandomX copied to clipboard

ctenos7 build error

Open perrornet opened this issue 4 years ago • 1 comments

logs:

n file included from /usr/include/c++/4.8.2/cstdint:35:0,
                 from /date_hdd/tools/.redis/RandomX/src/intrin_portable.h:31,
                 from /date_hdd/tools/.redis/RandomX/src/soft_aes.h:32,
                 from /date_hdd/tools/.redis/RandomX/src/aes_hash.cpp:29:
/usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
In file included from /date_hdd/tools/.redis/RandomX/src/soft_aes.h:32:0,
                 from /date_hdd/tools/.redis/RandomX/src/aes_hash.cpp:29:
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h:34:1: error: ‘constexpr’ does not name a type
 constexpr int32_t unsigned32ToSigned2sCompl(uint32_t x) {
 ^
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h:34:1: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h:38:1: error: ‘constexpr’ does not name a type
 constexpr int64_t unsigned64ToSigned2sCompl(uint64_t x) {
 ^
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h:38:1: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h:42:1: error: ‘constexpr’ does not name a type
 constexpr uint64_t signExtend2sCompl(uint32_t x) {
 ^
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h:42:1: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h:46:1: error: ‘constexpr’ does not name a type
 constexpr int RoundToNearest = 0;
 ^
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h:46:1: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h:47:1: error: ‘constexpr’ does not name a type
 constexpr int RoundDown = 1;
 ^
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h:47:1: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h:48:1: error: ‘constexpr’ does not name a type
 constexpr int RoundUp = 2;
 ^
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h:48:1: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h:49:1: error: ‘constexpr’ does not name a type
 constexpr int RoundToZero = 3;
 ^
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h:49:1: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
In file included from /date_hdd/tools/.redis/RandomX/src/soft_aes.h:32:0,
                 from /date_hdd/tools/.redis/RandomX/src/aes_hash.cpp:29:
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h:166:1: error: ‘constexpr’ does not name a type
 constexpr uint32_t rx_mxcsr_default = 0x9FC0; //Flush to zero, denormals are zero, default rounding mode, all exceptions disabled
 ^
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h:166:1: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
In file included from /date_hdd/tools/.redis/RandomX/src/soft_aes.h:32:0,
                 from /date_hdd/tools/.redis/RandomX/src/aes_hash.cpp:29:
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h: In function ‘void rx_reset_float_state()’:
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h:169:13: error: ‘rx_mxcsr_default’ was not declared in this scope
  _mm_setcsr(rx_mxcsr_default);
             ^
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h: In function ‘void rx_set_rounding_mode(uint32_t)’:
/date_hdd/tools/.redis/RandomX/src/intrin_portable.h:173:13: error: ‘rx_mxcsr_default’ was not declared in this scope
  _mm_setcsr(rx_mxcsr_default | (mode << 13));
             ^
/date_hdd/tools/.redis/RandomX/src/aes_hash.cpp: In function ‘void hashAndFillAes1Rx4(void*, size_t, void*, void*)’:
/date_hdd/tools/.redis/RandomX/src/aes_hash.cpp:264:2: error: ‘constexpr’ was not declared in this scope
  constexpr int PREFETCH_DISTANCE = 4096;
  ^
/date_hdd/tools/.redis/RandomX/src/aes_hash.cpp:264:12: error: expected ‘;’ before ‘int’
  constexpr int PREFETCH_DISTANCE = 4096;
            ^
/date_hdd/tools/.redis/RandomX/src/aes_hash.cpp:265:56: error: ‘PREFETCH_DISTANCE’ was not declared in this scope
  const char* prefetchPtr = ((const char*)scratchpad) + PREFETCH_DISTANCE;
                                                        ^
make[2]: *** [CMakeFiles/randomx.dir/src/aes_hash.cpp.o] Error 1
make[1]: *** [CMakeFiles/randomx.dir/all] Error 2

perrornet avatar Aug 22 '21 08:08 perrornet

cmake version: cmake version 3.16.6 make version: GNU Make 3.82 gcc version: gcc version 5.5.0 (GCC) system: ctenos7

perrornet avatar Aug 22 '21 09:08 perrornet

Please reopen if the issue is still relevant.

tevador avatar Oct 09 '23 17:10 tevador