Closed jfikar closed 4 years ago
I also have the same issues with recent versions on my arm64 Jetson TX2 with gcc 7.5 on ubuntu 18.04.5. Still a problem with version v6.4.0-mo2, while base xmrig v6.4.0 successfully compiles.
... [ 91%] Building C object CMakeFiles/xmrig.dir/src/crypto/randomx/defyx/yescrypt-best.c.o [ 92%] Building C object CMakeFiles/xmrig.dir/src/crypto/randomx/panthera/sha256.c.o [ 92%] Building C object CMakeFiles/xmrig.dir/src/crypto/randomx/panthera/yespower-opt.c.o /home/turtlejas/mining/xmrigmo640/src/crypto/randomx/panthera/yespower-opt.c:61:2: warning: #warning "Note: building generic code for non-x86. That's OK." [-Wcpp]
^~~
[ 93%] Building C object CMakeFiles/xmrig.dir/src/crypto/randomx/jit_compiler_a64_static.S.o
[ 93%] Building CXX object CMakeFiles/xmrig.dir/src/crypto/randomx/jit_compiler_a64.cpp.o
/home/turtlejas/mining/xmrigmo640/src/crypto/randomx/jit_compiler_a64.cpp: In function âsize_t randomx::CalcDatasetItemSize()â:
/home/turtlejas/mining/xmrigmo640/src/crypto/randomx/jit_compiler_a64.cpp:85:29: error: invalid use of non-static data member âRandomX_ConfigurationBase::CacheAccessesâ
RandomX_ConfigurationBase::CacheAccesses * (
^~~~~
In file included from /home/turtlejas/mining/xmrigmo640/src/crypto/randomx/common.hpp:36:0,
from /home/turtlejas/mining/xmrigmo640/src/crypto/randomx/jit_compiler_a64.hpp:35,
from /home/turtlejas/mining/xmrigmo640/src/crypto/randomx/jit_compiler_a64.cpp:30:
/home/turtlejas/mining/xmrigmo640/src/crypto/randomx/randomx.h:80:18: note: declared here
uint32_t CacheAccesses;
^~~~~
/home/turtlejas/mining/xmrigmo640/src/crypto/randomx/jit_compiler_a64.cpp: In instantiation of âvoid randomx::JitCompilerA64::generateSuperscalarHash(randomx::SuperscalarProgram (&)[N], std::vector~~~~~~~~
In file included from /home/turtlejas/mining/xmrigmo640/src/crypto/randomx/common.hpp:36:0,
from /home/turtlejas/mining/xmrigmo640/src/crypto/randomx/jit_compiler_a64.hpp:35,
from /home/turtlejas/mining/xmrigmo640/src/crypto/randomx/jit_compiler_a64.cpp:30:
/home/turtlejas/mining/xmrigmo640/src/crypto/randomx/randomx.h:80:18: note: declared here
uint32_t CacheAccesses;
^~~~~
At global scope:
cc1plus: warning: unrecognized command line option â-Wno-class-memaccessâ
CMakeFiles/xmrig.dir/build.make:4766: recipe for target 'CMakeFiles/xmrig.dir/src/crypto/randomx/jit_compiler_a64.cpp.o' failed
make[2]: *** [CMakeFiles/xmrig.dir/src/crypto/randomx/jit_compiler_a64.cpp.o] Error 1
CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/xmrig.dir/all' failed
This should be fixed in v6.4.0-mo3 release.
Thank you for report!
Fixed for me, thanks!
I can confirm, it works now. Good job!
The building of 6.3.5-mo1 fails on ARM64 with:
The problem seems to be that
src/crypto/randomx/randomx.h
does not play correctly withsrc/crypto/randomx/jit_compiler_a64.cpp
.v6.3.3-mo1 and original xmrig-6.3.5 work as expected.