Open eltech35 opened 5 years ago
Ubuntu 14.04 you probably have too old a version of GCC. You need GCC 5 or above.
Type in terminal: gcc --version
gcc (Ubuntu 5.5.0-12ubuntu1~16.04) 5.5.0 20171010
^ if it's less than 5.x, you need to upgrade it. You can use GCC 7, install it with the terminal commands listed below:
sudo add-apt-repository ppa:jonathonf/gcc sudo apt-get update -y sudo apt-get install gcc-7 g++-7 sudo apt-get update -y && apt-get upgrade -y
Then go to your build directory and run cmake with these flags (plus any other flags you want like -DWITH_HTTPD=OFF or -DWITH_TLS=OFF
cmake .. -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7
make -j 2 --keep-going
This should work, if not then you have some other issue. You didn't give much info about your system so I just assumed because it's old 14.04 that you have an old compiler.
Note: you will probably get "-Wno-class-memaccess" warning from cmake, but it's just warning you can ignore, not an error.
Yes GCC was v4.8.5.
Nice ! Compilation worked perfectly, no errors.
But with default config.json, error calibrating the cn/2 algo: (errors are random, after some success on cn/2, it faulted on cn/1)
tried to compile out of the rig, in a dev server, ubuntu 16 / Gcc/++ 7, same random errors
tried to compile on rig with GCC/++ 7.3.0 LibUV 1.22 / OpenCL/2.0 / OpenSSL/1.0.1f / Microhttpd 0.9.33, same random errors
2018-11-02 03:13:49] found OpenCL GPU: Radeon RX 570 Series, cu: 32 [2018-11-02 03:13:49] #0, GPU #0 Radeon RX 570 Series, intensity: 768 (8/256), unroll: 8, cu: 32 [2018-11-02 03:13:49] GPU #0 compiling... [2018-11-02 03:13:58] GPU #0 compilation completed, elapsed time 9.26s [2018-11-02 03:13:58] #1, GPU #1 Radeon RX 570 Series, intensity: 768 (8/256), unroll: 8, cu: 32 [2018-11-02 03:13:59] #2, GPU #2 Radeon RX 570 Series, intensity: 768 (8/256), unroll: 8, cu: 32 [2018-11-02 03:13:59] #3, GPU #3 Radeon RX 570 Series, intensity: 768 (8/256), unroll: 8, cu: 32 [2018-11-02 03:13:59] #4, GPU #4 Radeon RX 570 Series, intensity: 768 (8/256), unroll: 8, cu: 32 [2018-11-02 03:13:59] #5, GPU #5 Radeon RX 570 Series, intensity: 768 (8/256), unroll: 8, cu: 32 [2018-11-02 03:13:59] #6, GPU #6 Radeon RX 570 Series, intensity: 768 (8/256), unroll: 8, cu: 32 [2018-11-02 03:13:59] configuration saved to: "/home/ethos/xmrig-amd/build/config.json"
STARTING ALGO PERFORMANCE CALIBRATION (with 60 seconds round) [2018-11-02 03:14:52] speed 10s/60s/15m 4556.0 n/a n/a H/s max 4557.0 H/s ===> cn hashrate: 4437.854980 ALGO CHANGE: cryptonight/2 [2018-11-02 03:15:02] #0, GPU #0 Radeon RX 570 Series, intensity: 768 (8/256), unroll: 8, cu: 32 [2018-11-02 03:15:02] #1, GPU #1 Radeon RX 570 Series, intensity: 768 (8/256), unroll: 8, cu: 32 Error in `./xmrig-amd': corrupted double-linked list: 0x0000000001d5d3b0 Aborted
Trying to compilate 2.8.4-om on Ethos 1.3.3 (Ubuntu 14.04), got errors related to OpenCL.
At global scope: cc1plus: warning: unrecognized command line option "-Wno-class-memaccess" [enabled by default] make[2]: [CMakeFiles/xmrig-amd.dir/src/amd/OclGPU.cpp.o] Error 1 make[1]: [CMakeFiles/xmrig-amd.dir/all] Error 2 make: *** [all] Error 2