Author

Topic: Help Compiling XMR Stak CPU (Read 390 times)

full member
Activity: 256
Merit: 102
September 29, 2017, 05:53:30 AM
#1
Hey guys,

I have been trying to compile the XMR Stak CPU miner but keep running into an error at the make install stage, this is what I get:

Quote
Scanning dependencies of target xmr-stak-c
[  5%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/c_blake256.c.o
[ 11%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/c_groestl.c.o
[ 16%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/c_jh.c.o
[ 22%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/c_keccak.c.o
[ 27%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/c_skein.c.o
[ 33%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/soft_aes.c.o
[ 38%] Linking C static library libxmr-stak-c.a
[ 38%] Built target xmr-stak-c
Scanning dependencies of target xmr-stak-cpu
[ 44%] Building CXX object CMakeFiles/xmr-stak-cpu.dir/cli-miner.cpp.o
[ 50%] Building CXX object CMakeFiles/xmr-stak-cpu.dir/console.cpp.o
[ 55%] Building CXX object CMakeFiles/xmr-stak-cpu.dir/executor.cpp.o
[ 61%] Building CXX object CMakeFiles/xmr-stak-cpu.dir/httpd.cpp.o
[ 66%] Building CXX object CMakeFiles/xmr-stak-cpu.dir/jconf.cpp.o
[ 72%] Building CXX object CMakeFiles/xmr-stak-cpu.dir/jpsock.cpp.o
[ 77%] Building CXX object CMakeFiles/xmr-stak-cpu.dir/minethd.cpp.o

/Users/Paul/Downloads/xmr-stak-cpu-master/minethd.cpp:51:66: error: expected ')'
void thd_setaffinity(std::thread::native_handle_type h, uint64_t static_...
                                                                 ^
/Users/Paul/Downloads/xmr-stak-cpu-master/minethd.cpp:51:21: note: to match this
      '('
void thd_setaffinity(std::thread::native_handle_type h, uint64_t static_...
                    ^
In file included from /Users/Paul/Downloads/xmr-stak-cpu-master/minethd.cpp:72:
/Users/Paul/Downloads/xmr-stak-cpu-master/executor.h:51:2: error: unknown type
      name 'thdq'
        thdq oEventQ;
        ^
/Users/Paul/Downloads/xmr-stak-cpu-master/executor.h:51:6: error: expected
      member name or ';' after declaration specifiers
        thdq oEventQ;
        ~~~~^
/Users/Paul/Downloads/xmr-stak-cpu-master/executor.h:54:7: error: no type named
      'vector' in namespace 'std'
        std::vector* pvThreads;
        ~~~~~^
/Users/Paul/Downloads/xmr-stak-cpu-master/executor.h:54:13: error: expected
      member name or ';' after declaration specifiers
        std::vector* pvThreads;
        ~~~~~~~~~~~^
/Users/Paul/Downloads/xmr-stak-cpu-master/executor.h:101:7: error: no type named
      'vector' in namespace 'std'
        std::vector vSocketLog;
        ~~~~~^
/Users/Paul/Downloads/xmr-stak-cpu-master/executor.h:101:13: error: expected
      member name or ';' after declaration specifiers
        std::vector vSocketLog;
        ~~~~~~~~~~~^
/Users/Paul/Downloads/xmr-stak-cpu-master/executor.h:135:7: error: no type named
      'vector' in namespace 'std'
        std::vector vMineResults;
        ~~~~~^
/Users/Paul/Downloads/xmr-stak-cpu-master/executor.h:135:13: error: expected
      member name or ';' after declaration specifiers
        std::vector vMineResults;
        ~~~~~~~~~~~^
/Users/Paul/Downloads/xmr-stak-cpu-master/executor.h:146:7: error: no type named
      'vector' in namespace 'std'
        std::vector iPoolCallTimes;
        ~~~~~^
/Users/Paul/Downloads/xmr-stak-cpu-master/executor.h:146:13: error: expected
      member name or ';' after declaration specifiers
        std::vector iPoolCallTimes;
        ~~~~~~~~~~~^
/Users/Paul/Downloads/xmr-stak-cpu-master/executor.h:26:42: error: use of
      undeclared identifier 'oEventQ'
        inline void push_event(ex_event&& ev) { oEventQ.push(std::move(ev)); }
                                                ^
/Users/Paul/Downloads/xmr-stak-cpu-master/executor.h:151:3: error: use of
      undeclared identifier 'iPoolCallTimes'
                iPoolCallTimes.clear();
                ^
In file included from /Users/Paul/Downloads/xmr-stak-cpu-master/minethd.cpp:73:
/Users/Paul/Downloads/xmr-stak-cpu-master/minethd.h:94:14: error: no type named
      'vector' in namespace 'std'
        static std::vector* thread_starter(miner_work& pWork);
               ~~~~~^
/Users/Paul/Downloads/xmr-stak-cpu-master/minethd.h:94:20: error: expected
      member name or ';' after declaration specifiers
        static std::vector* thread_starter(miner_work& pWork);
        ~~~~~~~~~~~~~~~~~~^
/Users/Paul/Downloads/xmr-stak-cpu-master/minethd.cpp:293:6: error: no type
      named 'vector' in namespace 'std'
std::vector* minethd::thread_starter(miner_work& pWork)
~~~~~^
/Users/Paul/Downloads/xmr-stak-cpu-master/minethd.cpp:293:12: error: expected
      unqualified-id
std::vector* minethd::thread_starter(miner_work& pWork)
           ^
17 errors generated.
make[2]: *** [CMakeFiles/xmr-stak-cpu.dir/minethd.cpp.o] Error 1
make[1]: *** [CMakeFiles/xmr-stak-cpu.dir/all] Error 2
make: *** [all] Error 2

I made the recommended change to minethd.cpp but nay joy.

Anyone got this working on a mac?

THanks
Jump to: