fireice-uk / xmr-stak-cpu

Monero CPU miner
GNU General Public License v3.0
1.11k stars 478 forks source link

gcc 5.1 does not make #339

Open reijin90 opened 7 years ago

reijin90 commented 7 years ago

I set the compiler manually: cmake . -DCMAKE_C_COMPILER=/usr/bin/gcc-5 -DCMAKE_CXX_COMPILER=/usr/bin/g++-5

This works:

-- Configuring done You have changed variables that require your cache to be deleted. Configure will be re-run and you may have to reset some variables. The following variables have changed: CMAKE_C_COMPILER= /usr/bin/gcc-5 CMAKE_CXX_COMPILER= /usr/bin/g++-5

-- The C compiler identification is GNU 5.1.1 -- The CXX compiler identification is GNU 5.1.1 -- Check for working C compiler: /usr/bin/gcc-5 -- Check for working C compiler: /usr/bin/gcc-5 -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/g++-5 -- Check for working CXX compiler: /usr/bin/g++-5 -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.1f") -- Configuring done -- Generating done -- Build files have been written to: /home/xmr/xmr-stak-cpu

But trying to make fails:

Scanning dependencies of target xmr-stak-c [ 6%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/c_blake256.c.o [ 12%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/c_jh.c.o [ 18%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/c_skein.c.o [ 25%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/soft_aes.c.o [ 31%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/c_keccak.c.o [ 37%] Building C object CMakeFiles/xmr-stak-c.dir/crypto/c_groestl.c.o Linking C static library libxmr-stak-c.a [ 37%] Built target xmr-stak-c Scanning dependencies of target xmr-stak-cpu [ 43%] Building CXX object CMakeFiles/xmr-stak-cpu.dir/socket.cpp.o In file included from /usr/include/c++/5/mutex:35:0, from /home/xmr/xmr-stak-cpu/jpsock.h:2, from /home/xmr/xmr-stak-cpu/socket.cpp:25: /usr/include/c++/5/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 /home/xmr/xmr-stak-cpu/socket.cpp:24:0: /home/xmr/xmr-stak-cpu/socket.h:54:17: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 SSL_CTX ctx = nullptr; ^ /home/xmr/xmr-stak-cpu/socket.h:55:13: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 BIO bio = nullptr; ^ /home/xmr/xmr-stak-cpu/socket.h:56:13: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 SSL ssl = nullptr; ^ /home/xmr/xmr-stak-cpu/socket.h:54:17: error: 'nullptr' was not declared in this scope SSL_CTX ctx = nullptr; ^ /home/xmr/xmr-stak-cpu/socket.h:55:13: error: 'nullptr' was not declared in this scope BIO bio = nullptr; ^ /home/xmr/xmr-stak-cpu/socket.h:56:13: error: 'nullptr' was not declared in this scope SSL ssl = nullptr; ^ In file included from /home/xmr/xmr-stak-cpu/jpsock.h:8:0, from /home/xmr/xmr-stak-cpu/socket.cpp:25: /home/xmr/xmr-stak-cpu/msgstruct.h:63:12: error: member 'pool_job ex_event::::oPoolJob' with constructor not allowed in union pool_job oPoolJob; ^ /home/xmr/xmr-stak-cpu/msgstruct.h:63:12: note: unrestricted unions only available with -std=c++11 or -std=gnu++11 /home/xmr/xmr-stak-cpu/msgstruct.h:64:14: error: member 'job_result ex_event::::oJobResult' with constructor not allowed in union job_result oJobResult; ^ /home/xmr/xmr-stak-cpu/msgstruct.h:65:15: error: member 'std::cxx11::string ex_event::::sSocketError' with constructor not allowed in union std::string sSocketError; ^ /home/xmr/xmr-stak-cpu/msgstruct.h:65:15: error: member 'std::__cxx11::string ex_event::::sSocketError' with destructor not allowed in union /home/xmr/xmr-stak-cpu/msgstruct.h:65:15: error: member 'std::cxx11::string ex_event::::sSocketError' with copy assignment operator not allowed in union /home/xmr/xmr-stak-cpu/msgstruct.h:69:22: error: expected ',' or '...' before '&&' token ex_event(std::string&& err, size_t id) : iName(EV_SOCK_ERROR), iPoolId(id), sSocketError(std::move(err)) { } ^ /home/xmr/xmr-stak-cpu/msgstruct.h:75:30: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 ex_event(ex_event const&) = delete; ^ /home/xmr/xmr-stak-cpu/msgstruct.h:76:41: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 ex_event& operator=(ex_event const&) = delete; ^ /home/xmr/xmr-stak-cpu/msgstruct.h:78:19: error: expected ',' or '...' before '&&' token ex_event(ex_event&& from) ^ /home/xmr/xmr-stak-cpu/msgstruct.h:78:26: error: invalid constructor; you probably meant 'ex_event (const ex_event&)' ex_event(ex_event&& from) ^ /home/xmr/xmr-stak-cpu/msgstruct.h:99:30: error: expected ',' or '...' before '&&' token ex_event& operator=(ex_event&& from) ^ /home/xmr/xmr-stak-cpu/msgstruct.h: In constructor 'ex_event::ex_event(std::__cxx11::string)': /home/xmr/xmr-stak-cpu/msgstruct.h:69:73: error: 'id' was not declared in this scope ex_event(std::string&& err, size_t id) : iName(EV_SOCK_ERROR), iPoolId(id), sSocketError(std::move(err)) { } ^ /home/xmr/xmr-stak-cpu/msgstruct.h:69:91: error: 'move' is not a member of 'std' ex_event(std::string&& err, size_t id) : iName(EV_SOCK_ERROR), iPoolId(id), sSocketError(std::move(err)) { } ^ /home/xmr/xmr-stak-cpu/msgstruct.h:69:101: error: 'err' was not declared in this scope ex_event(std::string&& err, size_t id) : iName(EV_SOCK_ERROR), iPoolId(id), sSocketError(std::move(err)) { } ^ /home/xmr/xmr-stak-cpu/msgstruct.h: In member function 'ex_event& ex_event::operator=(ex_event)': /home/xmr/xmr-stak-cpu/msgstruct.h:106:11: error: 'from' was not declared in this scope iName = from.iName; ^ /home/xmr/xmr-stak-cpu/msgstruct.h:113:19: error: 'move' is not a member of 'std' sSocketError = std::move(from.sSocketError); ^ In file included from /home/xmr/xmr-stak-cpu/socket.cpp:25:0: /home/xmr/xmr-stak-cpu/jpsock.h: At global scope: /home/xmr/xmr-stak-cpu/jpsock.h:42:13: error: expected unqualified-id before '&&' token std::string&& get_call_error(); ^ /home/xmr/xmr-stak-cpu/jpsock.h:62:7: error: 'atomic' in namespace 'std' does not name a template type std::atomic bRunning; ^ /home/xmr/xmr-stak-cpu/jpsock.h:63:7: error: 'atomic' in namespace 'std' does not name a template type std::atomic bLoggedIn; ^ /home/xmr/xmr-stak-cpu/jpsock.h:69:9: error: 'constexpr' does not name a type static constexpr size_t iJsonMemSize = 4096; ^ /home/xmr/xmr-stak-cpu/jpsock.h:69:9: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /home/xmr/xmr-stak-cpu/jpsock.h:70:9: error: 'constexpr' does not name a type static constexpr size_t iSockBufferSize = 4096; ^ /home/xmr/xmr-stak-cpu/jpsock.h:70:9: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /home/xmr/xmr-stak-cpu/jpsock.h:83:7: error: 'atomic' in namespace 'std' does not name a template type std::atomic iJobDiff; ^ /home/xmr/xmr-stak-cpu/jpsock.h:86:7: error: 'atomic' in namespace 'std' does not name a template type std::atomic bHaveSocketError; ^ /home/xmr/xmr-stak-cpu/jpsock.h:88:7: error: 'mutex' in namespace 'std' does not name a type std::mutex call_mutex; ^ /home/xmr/xmr-stak-cpu/jpsock.h:89:7: error: 'condition_variable' in namespace 'std' does not name a type std::condition_variable call_cond; ^ /home/xmr/xmr-stak-cpu/jpsock.h:90:7: error: 'thread' in namespace 'std' does not name a type std::thread oRecvThd; ^ /home/xmr/xmr-stak-cpu/jpsock.h:92:7: error: 'mutex' in namespace 'std' does not name a type std::mutex job_mutex; ^ /home/xmr/xmr-stak-cpu/jpsock.h: In member function 'bool jpsock::is_running()': /home/xmr/xmr-stak-cpu/jpsock.h:39:36: error: 'bRunning' was not declared in this scope inline bool is_running() { return bRunning; } ^ /home/xmr/xmr-stak-cpu/jpsock.h: In member function 'bool jpsock::is_logged_in()': /home/xmr/xmr-stak-cpu/jpsock.h:40:38: error: 'bLoggedIn' was not declared in this scope inline bool is_logged_in() { return bLoggedIn; } ^ /home/xmr/xmr-stak-cpu/jpsock.h: In member function 'bool jpsock::have_sock_error()': /home/xmr/xmr-stak-cpu/jpsock.h:43:34: error: 'bHaveSocketError' was not declared in this scope bool have_sock_error() { return bHaveSocketError; } ^ /home/xmr/xmr-stak-cpu/jpsock.h: In member function 'uint64_t jpsock::get_current_diff()': /home/xmr/xmr-stak-cpu/jpsock.h:49:46: error: 'iJobDiff' was not declared in this scope inline uint64_t get_current_diff() { return iJobDiff; } ^ In file included from /home/xmr/xmr-stak-cpu/socket.cpp:26:0: /home/xmr/xmr-stak-cpu/jconf.h: In static member function 'static jconf jconf::inst()': /home/xmr/xmr-stak-cpu/jconf.h:10:16: error: 'nullptr' was not declared in this scope if (oInst == nullptr) oInst = new jconf; ^ In file included from /home/xmr/xmr-stak-cpu/socket.cpp:27:0: /home/xmr/xmr-stak-cpu/console.h: At global scope: /home/xmr/xmr-stak-cpu/console.h:20:18: warning: scoped enums only available with -std=c++11 or -std=gnu++11 enum verbosity : size_t { L0 = 0, L1 = 1, L2 = 2, L3 = 3, L4 = 4, LINF = 100}; ^ /home/xmr/xmr-stak-cpu/console.h:40:7: error: 'mutex' in namespace 'std' does not name a type std::mutex printmutex; ^ /home/xmr/xmr-stak-cpu/console.h: In static member function 'static printer* printer::inst()': /home/xmr/xmr-stak-cpu/console.h:27:16: error: 'nullptr' was not declared in this scope if (oInst == nullptr) oInst = new printer; ^ In file included from /home/xmr/xmr-stak-cpu/executor.h:2:0, from /home/xmr/xmr-stak-cpu/socket.cpp:28: /home/xmr/xmr-stak-cpu/thdq.hpp: At global scope: /home/xmr/xmr-stak-cpu/thdq.hpp:37:13: error: expected ',' or '...' before '&&' token void push(T&& item) ^ /home/xmr/xmr-stak-cpu/thdq.hpp:47:7: error: 'mutex' in namespace 'std' does not name a type std::mutex mutex; ^ /home/xmr/xmr-stak-cpu/thdq.hpp:48:7: error: 'condition_variable' in namespace 'std' does not name a type std::conditionvariable cond; ^ /home/xmr/xmr-stak-cpu/thdq.hpp: In member function 'T thdq::pop()': /home/xmr/xmr-stak-cpu/thdq.hpp:14:3: error: 'unique_lock' is not a member of 'std' std::uniquelock mlock(mutex); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:14:20: error: 'mutex' is not a member of 'std' std::uniquelock mlock(mutex); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:14:38: error: 'mutex_' was not declared in this scope std::uniquelock mlock(mutex); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:14:44: error: there are no arguments to 'mlock' that depend on a template parameter, so a declaration of 'mlock' must be available [-fpermissive] std::uniquelock mlock(mutex); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:14:44: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) /home/xmr/xmr-stak-cpu/thdq.hpp:15:28: error: 'cond' was not declared in this scope while (queue.empty()) { cond.wait(mlock); } ^ /home/xmr/xmr-stak-cpu/thdq.hpp:15:39: error: 'mlock' was not declared in this scope while (queue.empty()) { cond.wait(mlock); } ^ /home/xmr/xmr-stak-cpu/thdq.hpp:16:8: error: 'item' does not name a type auto item = std::move(queue.front()); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:18:10: error: 'item' was not declared in this scope return item; ^ /home/xmr/xmr-stak-cpu/thdq.hpp: In member function 'void thdq::pop(T&)': /home/xmr/xmr-stak-cpu/thdq.hpp:23:3: error: 'unique_lock' is not a member of 'std' std::uniquelock mlock(mutex); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:23:20: error: 'mutex' is not a member of 'std' std::uniquelock mlock(mutex); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:23:38: error: 'mutex_' was not declared in this scope std::uniquelock mlock(mutex); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:23:44: error: there are no arguments to 'mlock' that depend on a template parameter, so a declaration of 'mlock' must be available [-fpermissive] std::uniquelock mlock(mutex); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:24:28: error: 'cond' was not declared in this scope while (queue.empty()) { cond.wait(mlock); } ^ /home/xmr/xmr-stak-cpu/thdq.hpp:24:39: error: 'mlock' was not declared in this scope while (queue.empty()) { cond_.wait(mlock); } ^ /home/xmr/xmr-stak-cpu/thdq.hpp: In member function 'void thdq::push(const T&)': /home/xmr/xmr-stak-cpu/thdq.hpp:31:3: error: 'unique_lock' is not a member of 'std' std::uniquelock mlock(mutex); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:31:20: error: 'mutex' is not a member of 'std' std::uniquelock mlock(mutex); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:31:38: error: 'mutex_' was not declared in this scope std::uniquelock mlock(mutex); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:31:44: error: there are no arguments to 'mlock' that depend on a template parameter, so a declaration of 'mlock' must be available [-fpermissive] std::uniquelock mlock(mutex); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:33:3: error: 'mlock' was not declared in this scope mlock.unlock(); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:34:3: error: 'cond' was not declared in this scope cond.notify_one(); ^ /home/xmr/xmr-stak-cpu/thdq.hpp: In member function 'void thdq::push(T)': /home/xmr/xmr-stak-cpu/thdq.hpp:39:3: error: 'unique_lock' is not a member of 'std' std::uniquelock mlock(mutex); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:39:20: error: 'mutex' is not a member of 'std' std::uniquelock mlock(mutex); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:39:38: error: 'mutex_' was not declared in this scope std::uniquelock mlock(mutex); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:39:44: error: there are no arguments to 'mlock' that depend on a template parameter, so a declaration of 'mlock' must be available [-fpermissive] std::uniquelock mlock(mutex); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:40:15: error: 'move' is not a member of 'std' queue.push(std::move(item)); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:40:25: error: 'item' was not declared in this scope queue.push(std::move(item)); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:41:3: error: 'mlock' was not declared in this scope mlock.unlock(); ^ /home/xmr/xmr-stak-cpu/thdq.hpp:42:3: error: 'cond' was not declared in this scope cond.notify_one(); ^ In file included from /home/xmr/xmr-stak-cpu/socket.cpp:28:0: /home/xmr/xmr-stak-cpu/executor.h: At global scope: /home/xmr/xmr-stak-cpu/executor.h:26:33: error: expected ',' or '...' before '&&' token inline void push_event(ex_event&& ev) { oEventQ.push(std::move(ev)); } ^ /home/xmr/xmr-stak-cpu/executor.h:27:32: error: expected ',' or '...' before '&&' token void push_timed_event(ex_event&& ev, size_t sec); ^ /home/xmr/xmr-stak-cpu/executor.h:29:2: error: 'constexpr' does not name a type constexpr static size_t invalid_pool_id = 0; ^ /home/xmr/xmr-stak-cpu/executor.h:29:2: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /home/xmr/xmr-stak-cpu/executor.h:30:2: error: 'constexpr' does not name a type constexpr static size_t dev_pool_id = 1; ^ /home/xmr/xmr-stak-cpu/executor.h:30:2: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /home/xmr/xmr-stak-cpu/executor.h:31:2: error: 'constexpr' does not name a type constexpr static size_t usr_pool_id = 2; ^ /home/xmr/xmr-stak-cpu/executor.h:31:2: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /home/xmr/xmr-stak-cpu/executor.h:39:23: error: expected ',' or '...' before '&&' token timed_event(ex_event&& ev, size_t ticks) : event(std::move(ev)), ticks_left(ticks) {} ^ /home/xmr/xmr-stak-cpu/executor.h:43:2: error: 'constexpr' does not name a type constexpr static size_t iTickTime = 500; ^ /home/xmr/xmr-stak-cpu/executor.h:43:2: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /home/xmr/xmr-stak-cpu/executor.h:47:2: error: 'constexpr' does not name a type constexpr static size_t iDevDonatePeriod = 100 60; ^ /home/xmr/xmr-stak-cpu/executor.h:47:2: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /home/xmr/xmr-stak-cpu/executor.h:50:7: error: 'mutex' in namespace 'std' does not name a type std::mutex timed_event_mutex; ^ /home/xmr/xmr-stak-cpu/executor.h:85:29: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 std::string pHttpString = nullptr; ^ /home/xmr/xmr-stak-cpu/executor.h:86:7: error: 'promise' in namespace 'std' does not name a template type std::promise httpReady; ^ /home/xmr/xmr-stak-cpu/executor.h:87:7: error: 'mutex' in namespace 'std' does not name a type std::mutex httpMutex; ^ /home/xmr/xmr-stak-cpu/executor.h:89:30: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 size_t iReconnectAttempts = 0; ^ /home/xmr/xmr-stak-cpu/executor.h:93:8: error: 'chrono' in namespace 'std' does not name a type std::chrono::system_clock::time_point time; ^ /home/xmr/xmr-stak-cpu/executor.h:96:28: error: expected ',' or '...' before '&&' token sck_error_log(std::string&& err) : msg(std::move(err)) ^ /home/xmr/xmr-stak-cpu/executor.h:107:8: error: 'chrono' in namespace 'std' does not name a type std::chrono::system_clock::time_point time; ^ /home/xmr/xmr-stak-cpu/executor.h:116:27: error: expected ',' or '...' before '&&' token result_tally(std::string&& err) : msg(std::move(err)), count(1) ^ /home/xmr/xmr-stak-cpu/executor.h:138:7: error: 'array' in namespace 'std' does not name a template type std::array<size_t, 10> iTopDiff { { } }; //Initialize to zero ^ /home/xmr/xmr-stak-cpu/executor.h:140:7: error: 'chrono' in namespace 'std' does not name a type std::chrono::system_clock::time_point tPoolConnTime; ^ /home/xmr/xmr-stak-cpu/executor.h:141:23: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 size_t iPoolHashes = 0; ^ /home/xmr/xmr-stak-cpu/executor.h:142:23: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 uint64_t iPoolDiff = 0; ^ /home/xmr/xmr-stak-cpu/executor.h:157:23: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 double fHighestHps = 0.0; ^ /home/xmr/xmr-stak-cpu/executor.h:159:35: error: expected ',' or '...' before '&&' token void log_socket_error(std::string&& sError); ^ /home/xmr/xmr-stak-cpu/executor.h:160:35: error: expected ',' or '...' before '&&' token void log_result_error(std::string&& sError); ^ /home/xmr/xmr-stak-cpu/executor.h:166:48: error: expected ',' or '...' before '&&' token void on_sock_error(size_t pool_id, std::string&& sError); ^ /home/xmr/xmr-stak-cpu/executor.h:85:29: error: 'nullptr' was not declared in this scope std::string pHttpString = nullptr; ^ /home/xmr/xmr-stak-cpu/executor.h: In static member function 'static executor executor::inst()': /home/xmr/xmr-stak-cpu/executor.h:18:16: error: 'nullptr' was not declared in this scope if (oInst == nullptr) oInst = new executor; ^ /home/xmr/xmr-stak-cpu/executor.h: In member function 'void executor::ex_start(bool)': /home/xmr/xmr-stak-cpu/executor.h:22:52: error: 'thread' is not a member of 'std' void ex_start(bool daemon) { daemon ? ex_main() : std::thread(&executor::ex_main, this).detach(); } ^ /home/xmr/xmr-stak-cpu/executor.h: In member function 'void executor::push_event(ex_event)': /home/xmr/xmr-stak-cpu/executor.h:26:55: error: 'move' is not a member of 'std' inline void push_event(ex_event&& ev) { oEventQ.push(std::move(ev)); } ^ /home/xmr/xmr-stak-cpu/executor.h:26:65: error: 'ev' was not declared in this scope inline void push_event(ex_event&& ev) { oEventQ.push(std::move(ev)); } ^ /home/xmr/xmr-stak-cpu/executor.h: In constructor 'executor::timed_event::timed_event(ex_event)': /home/xmr/xmr-stak-cpu/executor.h:39:52: error: 'move' is not a member of 'std' timed_event(ex_event&& ev, size_t ticks) : event(std::move(ev)), ticks_left(ticks) {} ^ /home/xmr/xmr-stak-cpu/executor.h:39:62: error: 'ev' was not declared in this scope timed_event(ex_event&& ev, size_t ticks) : event(std::move(ev)), ticks_left(ticks) {} ^ /home/xmr/xmr-stak-cpu/executor.h:39:79: error: 'ticks' was not declared in this scope timed_event(ex_event&& ev, size_t ticks) : event(std::move(ev)), ticks_left(ticks) {} ^ /home/xmr/xmr-stak-cpu/executor.h: In constructor 'executor::sck_error_log::sck_error_log(std::cxx11::string)': /home/xmr/xmr-stak-cpu/executor.h:96:42: error: 'move' is not a member of 'std' sck_error_log(std::string&& err) : msg(std::move(err)) ^ /home/xmr/xmr-stak-cpu/executor.h:96:52: error: 'err' was not declared in this scope sck_error_log(std::string&& err) : msg(std::move(err)) ^ /home/xmr/xmr-stak-cpu/executor.h:98:16: error: 'std::chrono' has not been declared time = std::chrono::system_clock::now(); ^ /home/xmr/xmr-stak-cpu/executor.h: In constructor 'executor::result_tally::result_tally()': /home/xmr/xmr-stak-cpu/executor.h:113:16: error: 'std::chrono' has not been declared time = std::chrono::system_clock::now(); ^ /home/xmr/xmr-stak-cpu/executor.h: In constructor 'executor::result_tally::result_tally(std::cxx11::string)': /home/xmr/xmr-stak-cpu/executor.h:116:41: error: 'move' is not a member of 'std' result_tally(std::string&& err) : msg(std::move(err)), count(1) ^ /home/xmr/xmr-stak-cpu/executor.h:116:51: error: 'err' was not declared in this scope result_tally(std::string&& err) : msg(std::move(err)), count(1) ^ /home/xmr/xmr-stak-cpu/executor.h:118:16: error: 'std::chrono' has not been declared time = std::chrono::system_clock::now(); ^ /home/xmr/xmr-stak-cpu/executor.h: In member function 'void executor::result_tally::increment()': /home/xmr/xmr-stak-cpu/executor.h:124:16: error: 'std::chrono' has not been declared time = std::chrono::system_clock::now(); ^ /home/xmr/xmr-stak-cpu/executor.h: In member function 'void executor::reset_stats()': /home/xmr/xmr-stak-cpu/executor.h:152:3: error: 'tPoolConnTime' was not declared in this scope tPoolConnTime = std::chrono::system_clock::now(); ^ /home/xmr/xmr-stak-cpu/executor.h:152:24: error: 'std::chrono' has not been declared tPoolConnTime = std::chrono::system_clock::now(); ^ /home/xmr/xmr-stak-cpu/executor.h: In member function 'size_t executor::sec_to_ticks(size_t)': /home/xmr/xmr-stak-cpu/executor.h:172:64: error: 'iTickTime' was not declared in this scope inline size_t sec_to_ticks(size_t sec) { return sec (1000 / iTickTime); } ^ /home/xmr/xmr-stak-cpu/socket.cpp: In constructor 'plain_socket::plain_socket(jpsock)': /home/xmr/xmr-stak-cpu/socket.cpp:43:14: error: 'nullptr' was not declared in this scope pSockAddr = nullptr; ^ /home/xmr/xmr-stak-cpu/socket.cpp: In member function 'virtual bool plain_socket::set_hostname(const char)': /home/xmr/xmr-stak-cpu/socket.cpp:58:40: error: 'nullptr' was not declared in this scope if ((sTmp = strstr(sAddrMb, "//")) != nullptr) ^ /home/xmr/xmr-stak-cpu/socket.cpp:64:40: error: 'nullptr' was not declared in this scope if ((sPort = strchr(sAddrMb, ':')) == nullptr) ^ /home/xmr/xmr-stak-cpu/socket.cpp:75:14: error: 'nullptr' was not declared in this scope pAddrRoot = nullptr; ^ /home/xmr/xmr-stak-cpu/socket.cpp: In member function 'virtual bool plain_socket::connect()': /home/xmr/xmr-stak-cpu/socket.cpp:128:14: error: 'nullptr' was not declared in this scope pAddrRoot = nullptr; ^ /home/xmr/xmr-stak-cpu/socket.cpp: In member function 'void tls_socket::print_error()': /home/xmr/xmr-stak-cpu/socket.cpp:185:14: error: 'nullptr' was not declared in this scope char buf = nullptr; ^ /home/xmr/xmr-stak-cpu/socket.cpp: In member function 'void tls_socket::init_ctx()': /home/xmr/xmr-stak-cpu/socket.cpp:197:15: error: 'nullptr' was not declared in this scope if(method == nullptr) ^ /home/xmr/xmr-stak-cpu/socket.cpp:201:12: error: 'nullptr' was not declared in this scope if(ctx == nullptr) ^ /home/xmr/xmr-stak-cpu/socket.cpp: In member function 'virtual bool tls_socket::set_hostname(const char)': /home/xmr/xmr-stak-cpu/socket.cpp:212:12: error: 'nullptr' was not declared in this scope if(ctx == nullptr) ^ /home/xmr/xmr-stak-cpu/socket.cpp:222:41: error: 'nullptr' was not declared in this scope if((bio = BIO_new_ssl_connect(ctx)) == nullptr) ^ /home/xmr/xmr-stak-cpu/socket.cpp:235:12: error: 'nullptr' was not declared in this scope if(ssl == nullptr) ^ /home/xmr/xmr-stak-cpu/socket.cpp: In member function 'virtual bool tls_socket::connect()': /home/xmr/xmr-stak-cpu/socket.cpp:269:13: error: 'nullptr' was not declared in this scope if(cert == nullptr) ^ /home/xmr/xmr-stak-cpu/socket.cpp:280:15: error: 'nullptr' was not declared in this scope if(digest == nullptr) ^ /home/xmr/xmr-stak-cpu/socket.cpp:293:27: error: 'dev_pool_id' is not a member of 'executor' if(pCallback->pool_id != executor::dev_pool_id) ^ /home/xmr/xmr-stak-cpu/socket.cpp:307:18: error: 'nullptr' was not declared in this scope char b64_md = nullptr; ^ /home/xmr/xmr-stak-cpu/socket.cpp: In member function 'virtual void tls_socket::close(bool)': /home/xmr/xmr-stak-cpu/socket.cpp:351:12: error: 'nullptr' was not declared in this scope if(bio == nullptr || ssl == nullptr) ^ In file included from /usr/include/openssl/ssl.h:152:0, from /home/xmr/xmr-stak-cpu/socket.cpp:31: /home/xmr/xmr-stak-cpu/socket.cpp:356:30: error: 'nullptr' was not declared in this scope sock_close(BIO_get_fd(bio, nullptr)); ^ /home/xmr/xmr-stak-cpu/socket.cpp:361:9: error: 'nullptr' was not declared in this scope ssl = nullptr; ^ CMakeFiles/xmr-stak-cpu.dir/build.make:54: recipe for target 'CMakeFiles/xmr-stak-cpu.dir/socket.cpp.o' failed make[2]: [CMakeFiles/xmr-stak-cpu.dir/socket.cpp.o] Error 1 CMakeFiles/Makefile2:95: recipe for target 'CMakeFiles/xmr-stak-cpu.dir/all' failed make[1]: [CMakeFiles/xmr-stak-cpu.dir/all] Error 2 Makefile:117: recipe for target 'all' failed make: *** [all] Error 2

It seems to be a similar problem like (for nvidia): https://github.com/fireice-uk/xmr-stak-nvidia/issues/94

psychocrypt commented 7 years ago

Have you changed something in the cmake file? Please run cmake . -L within the build folder.

reijin90 commented 7 years ago

-- Configuring done -- Generating done -- Build files have been written to: /home/xmr/xmr-stak-cpu -- Cache values CMAKE_BUILD_TYPE:STRING=Release CMAKE_INSTALL_PREFIX:PATH=/home/xmr/xmr-stak-cpu CMAKE_LINK_STATIC:BOOL=OFF HWLOC:FILEPATH=/usr/lib/x86_64-linux-gnu/libhwloc.so HWLOC_ENABLE:BOOL=ON HWLOC_INCLUDE_DIR:PATH=/usr/include MHTD:FILEPATH=/usr/lib/x86_64-linux-gnu/libmicrohttpd.so MICROHTTPD_ENABLE:BOOL=ON MTHD_INCLUDE_DIR:PATH=/usr/include OpenSSL_ENABLE:BOOL=ON

fireice-uk commented 7 years ago

@psychocrypt

This is the tell tale error :

/home/xmr/xmr-stak-cpu/jpsock.h:70:9: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11

For some reason @reijin90 is building without that flag.

psychocrypt commented 7 years ago

Yes thats the problem but we compile the full project with c++11 expect all C files in crypto.

Am 22.09.2017 3:41 Nachm. schrieb "fireice-uk" notifications@github.com:

@psychocrypt https://github.com/psychocrypt

This is the tell tale error :

/home/xmr/xmr-stak-cpu/jpsock.h:70:9: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11

For some reason @reijin90 https://github.com/reijin90 is building without that flag.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fireice-uk/xmr-stak-cpu/issues/339#issuecomment-331449737, or mute the thread https://github.com/notifications/unsubscribe-auth/AYsxtsadh-tz6ywR19M8xyQwBQQvPOwLks5sk7kAgaJpZM4Pcq4g .

Ogy commented 6 years ago

do anybody have a solution for this?

reijin90 commented 6 years ago

Ok, I redownloaded everything after I made sure the correct gcc version was installed and then tried it again. But: I didn't follow the Linux instructions, and instead of "make install" I only issued "make" this time and it worked! :)

cooler0918 commented 6 years ago

I have a similar issue trying to run 'make'

I had to specify the compiler manually since it would not find it on it's own.

`root@XMR_Miner:~/xmr-stak # make [ 24%] Built target xmr-stak-c [ 28%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o In file included from /root/xmr-stak/xmrstak/version.cpp:1:0: /root/xmr-stak/xmrstak/version.hpp: In function 'std::__cxx11::string get_version_str()': /root/xmr-stak/xmrstak/version.hpp:13:33: error: 'to_string' is not a member of 'std' return std::string(ver_long) + std::to_string(uint32_t(fDevDonationLevel * 1000)) ; ^ *** [CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o] Error code 1

Stop in /root/xmr-stak. *** [CMakeFiles/xmr-stak-backend.dir/all] Error code 1

Stop in /root/xmr-stak. *** [all] Error code 1

Stop in /root/xmr-stak.`

root@XMR_Miner:~/xmr-stak # cmake . -L -- Set miner currency to 'monero' and 'aeon' -- Configuring done -- Generating done -- Build files have been written to: /root/xmr-stak -- Cache values CMAKE_BUILD_TYPE:STRING=Release CMAKE_INSTALL_PREFIX:PATH=/root/xmr-stak CMAKE_LINK_STATIC:BOOL=OFF CPU_ENABLE:BOOL=ON CUDA_ENABLE:BOOL=OFF HWLOC:FILEPATH=/usr/local/lib/libhwloc.so HWLOC_ENABLE:BOOL=ON HWLOC_INCLUDE_DIR:PATH=/usr/local/include MHTD:FILEPATH=/usr/local/lib/libmicrohttpd.so MICROHTTPD_ENABLE:BOOL=ON MTHD_INCLUDE_DIR:PATH=/usr/local/include OpenCL_ENABLE:BOOL=OFF OpenSSL_ENABLE:BOOL=ON WIN_UAC:BOOL=ON XMR-STAK_COMPILE:STRING=native XMR-STAK_CURRENCY:STRING=all