Describe the bug
I had an error when I tried to cross compiling ethminer.
To Reproduce
run command:
$ cd build
$ cmake .. -DETHASHCUDA=ON -DETHASHCL=OFF -DCOMPUTE=61
$ vi CMakeCache.txt
//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING=-fPIC
//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=-fPIC
$ cmake --build .
Expected behavior
log info:
-- [cable ] Cable 0.2.12 initialized
-- [cable ] Build type: Release
-- [hunter] Calculating Toolchain-SHA1
-- [hunter] Calculating Config-SHA1
-- [hunter] HUNTER_ROOT: /home/users/.hunter
-- [hunter] [ Hunter-ID: 951e8da | Toolchain-ID: d092851 | Config-ID: 4a08a2c ]
-- [hunter] BOOST_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.66.0)
-- [hunter] BOOST_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.66.0)
-- [hunter] BOOST_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.66.0)
-- Boost version: 1.66.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- [hunter] JSONCPP_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.8.0)
-- [hunter] LIBJSON-RPC-CPP_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 0.7.0-p3)
-- [hunter] ETHASH_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 0.3.0)
------------------------------------------------------------------------
-- CMake 3.10.2
-- Build Release / Linux
------------------------------------------------------------- components
-- ETHASHCL Build OpenCL components OFF
-- ETHASHCUDA Build CUDA components ON
-- ETHDBUS Build D-Bus components OFF
-- APICORE Build API Server components ON
-- BINKERN Install AMD binary kernels ON
------------------------------------------------------------------------
-- [hunter] OPENSSL_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.1.0h)
-- [hunter] MONGOOSE_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 6.10)
-- [hunter] CLI11_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.6.1)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/users/ethminer/build
users@mining-macine:~/ethminer/build$ cmake --build .
[ 0%] Built target ethminer-buildinfo-git
Scanning dependencies of target ethminer-buildinfo
[ 3%] Building C object CMakeFiles/ethminer-buildinfo.dir/ethminer/buildinfo.c.o
[ 6%] Linking C static library ethminer/libethminer-buildinfo.a
[ 9%] Built target ethminer-buildinfo
[ 28%] Built target devcore
[ 43%] Built target hwmon
[ 46%] Building NVCC (Device) object libethash-cuda/CMakeFiles/ethash-cuda.dir/ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o
ptxas info : 0 bytes gmem, 264 bytes cmem[3]
ptxas info : Compiling entry function '_Z25ethash_calculate_dag_itemj' for 'sm_61'
ptxas info : Function properties for _Z25ethash_calculate_dag_itemj
272 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 96 registers, 324 bytes cmem[0], 4 bytes cmem[2]
ptxas info : Compiling entry function '_Z13ethash_searchILj8EEvPV14Search_resultsm' for 'sm_61'
ptxas info : Function properties for _Z13ethash_searchILj8EEvPV14Search_resultsm
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 107 registers, 336 bytes cmem[0], 96 bytes cmem[2]
ptxas info : Compiling entry function '_Z13ethash_searchILj4EEvPV14Search_resultsm' for 'sm_61'
ptxas info : Function properties for _Z13ethash_searchILj4EEvPV14Search_resultsm
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 80 registers, 336 bytes cmem[0]
ptxas info : Compiling entry function '_Z13ethash_searchILj2EEvPV14Search_resultsm' for 'sm_61'
ptxas info : Function properties for _Z13ethash_searchILj2EEvPV14Search_resultsm
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 80 registers, 336 bytes cmem[0]
ptxas info : Compiling entry function '_Z13ethash_searchILj1EEvPV14Search_resultsm' for 'sm_61'
ptxas info : Function properties for _Z13ethash_searchILj1EEvPV14Search_resultsm
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 78 registers, 336 bytes cmem[0]
[ 50%] Linking CXX static library libethash-cuda.a
[ 53%] Built target ethash-cuda
[ 65%] Built target ethcore
Scanning dependencies of target poolprotocols
[ 68%] Building CXX object libpoolprotocols/CMakeFiles/poolprotocols.dir/stratum/EthStratumClient.cpp.o
[ 71%] Linking CXX static library libpoolprotocols.a
[ 84%] Built target poolprotocols
Scanning dependencies of target apicore
[ 87%] Building CXX object libapicore/CMakeFiles/apicore.dir/ApiServer.cpp.o
[ 90%] Building CXX object libapicore/CMakeFiles/apicore.dir/httpServer.cpp.o
[ 93%] Linking CXX static library libapicore.a
[ 93%] Built target apicore
Scanning dependencies of target ethminer
[ 96%] Building CXX object ethminer/CMakeFiles/ethminer.dir/main.cpp.o
[100%] Linking CXX executable ethminer
CMakeFiles/ethminer.dir/main.cpp.o: 関数 `std::thread::_State_impl<std::thread::_Invoker<std::tuple<boost::_bi::bind_t<unsigned long, boost::_mfi::mf0<unsigned long, boost::asio::io_context>, boost::_bi::list1<boost::_bi::value<boost::asio::io_context*> > > > > >::~_State_impl()' 内:
main.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tImNS3_4_mfi3mf0ImNS3_4asio10io_contextEEENS4_5list1INS4_5valueIPS9_EEEEEEEEEEED2Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tImNS3_4_mfi3mf0ImNS3_4asio10io_contextEEENS4_5list1INS4_5valueIPS9_EEEEEEEEEEED5Ev]+0xf): `std::thread::_State::~_State()' に対する定義されていない参照です
CMakeFiles/ethminer.dir/main.cpp.o: 関数 `std::thread::_State_impl<std::thread::_Invoker<std::tuple<boost::_bi::bind_t<unsigned long, boost::_mfi::mf0<unsigned long, boost::asio::io_context>, boost::_bi::list1<boost::_bi::value<boost::asio::io_context*> > > > > >::~_State_impl()' 内:
main.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tImNS3_4_mfi3mf0ImNS3_4asio10io_contextEEENS4_5list1INS4_5valueIPS9_EEEEEEEEEEED0Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tImNS3_4_mfi3mf0ImNS3_4asio10io_contextEEENS4_5list1INS4_5valueIPS9_EEEEEEEEEEED5Ev]+0x13): `std::thread::_State::~_State()' に対する定義されていない参照です
CMakeFiles/ethminer.dir/main.cpp.o: 関数 `MinerCLI::MinerCLI()' 内:
main.cpp:(.text._ZN8MinerCLIC2Ev[_ZN8MinerCLIC5Ev]+0x3d6): `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())' に対する定義されていない参照です
CMakeFiles/ethminer.dir/main.cpp.o:(.data.rel.ro._ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tImNS3_4_mfi3mf0ImNS3_4asio10io_contextEEENS4_5list1INS4_5valueIPS9_EEEEEEEEEEEE[_ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tImNS3_4_mfi3mf0ImNS3_4asio10io_contextEEENS4_5list1INS4_5valueIPS9_EEEEEEEEEEEE]+0x10): `typeinfo for std::thread::_State' に対する定義されていない参照です
../libpoolprotocols/libpoolprotocols.a(PoolManager.cpp.o): 関数 `std::thread::_State_impl<std::thread::_Invoker<std::tuple<boost::_bi::bind_t<void, boost::_mfi::mf0<void, dev::eth::PoolManager>, boost::_bi::list1<boost::_bi::value<dev::eth::PoolManager*> > > > > >::~_State_impl()' 内:
PoolManager.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0IvN3dev3eth11PoolManagerEEENS4_5list1INS4_5valueIPSA_EEEEEEEEEEED2Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0IvN3dev3eth11PoolManagerEEENS4_5list1INS4_5valueIPSA_EEEEEEEEEEED5Ev]+0xf): `std::thread::_State::~_State()' に対する定義されていない参照です
../libpoolprotocols/libpoolprotocols.a(PoolManager.cpp.o): 関数 `std::thread::_State_impl<std::thread::_Invoker<std::tuple<boost::_bi::bind_t<void, boost::_mfi::mf0<void, dev::eth::PoolManager>, boost::_bi::list1<boost::_bi::value<dev::eth::PoolManager*> > > > > >::~_State_impl()' 内:
PoolManager.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0IvN3dev3eth11PoolManagerEEENS4_5list1INS4_5valueIPSA_EEEEEEEEEEED0Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0IvN3dev3eth11PoolManagerEEENS4_5list1INS4_5valueIPSA_EEEEEEEEEEED5Ev]+0x13): `std::thread::_State::~_State()' に対する定義されていない参照です
../libpoolprotocols/libpoolprotocols.a(PoolManager.cpp.o): 関数 `dev::eth::PoolManager::start()' 内:
PoolManager.cpp:(.text._ZN3dev3eth11PoolManager5startEv+0xa1): `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())' に対する定義されていない参照です
../libpoolprotocols/libpoolprotocols.a(PoolManager.cpp.o):(.data.rel.ro._ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0IvN3dev3eth11PoolManagerEEENS4_5list1INS4_5valueIPSA_EEEEEEEEEEEE[_ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0IvN3dev3eth11PoolManagerEEENS4_5list1INS4_5valueIPSA_EEEEEEEEEEEE]+0x10): `typeinfo for std::thread::_State' に対する定義されていない参照です
../libapicore/libapicore.a(ApiServer.cpp.o): 関数 `std::thread::_State_impl<std::thread::_Invoker<std::tuple<boost::_bi::bind_t<void, boost::_mfi::mf0<void, ApiServer>, boost::_bi::list1<boost::_bi::value<ApiServer*> > > > > >::~_State_impl()' 内:
ApiServer.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0Iv9ApiServerEENS4_5list1INS4_5valueIPS8_EEEEEEEEEEED2Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0Iv9ApiServerEENS4_5list1INS4_5valueIPS8_EEEEEEEEEEED5Ev]+0xf): `std::thread::_State::~_State()' に対する定義されていない参照です
../libapicore/libapicore.a(ApiServer.cpp.o): 関数 `std::thread::_State_impl<std::thread::_Invoker<std::tuple<boost::_bi::bind_t<void, boost::_mfi::mf0<void, ApiServer>, boost::_bi::list1<boost::_bi::value<ApiServer*> > > > > >::~_State_impl()' 内:
ApiServer.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0Iv9ApiServerEENS4_5list1INS4_5valueIPS8_EEEEEEEEEEED0Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0Iv9ApiServerEENS4_5list1INS4_5valueIPS8_EEEEEEEEEEED5Ev]+0x13): `std::thread::_State::~_State()' に対する定義されていない参照です
../libapicore/libapicore.a(ApiServer.cpp.o): 関数 `ApiServer::start()' 内:
ApiServer.cpp:(.text._ZN9ApiServer5startEv+0x6fb): `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())' に対する定義されていない参照です
../libapicore/libapicore.a(ApiServer.cpp.o):(.data.rel.ro._ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0Iv9ApiServerEENS4_5list1INS4_5valueIPS8_EEEEEEEEEEEE[_ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0Iv9ApiServerEENS4_5list1INS4_5valueIPS8_EEEEEEEEEEEE]+0x10): `typeinfo for std::thread::_State' に対する定義されていない 参照です
../libdevcore/libdevcore.a(Worker.cpp.o): 関数 `std::thread::_State_impl<std::thread::_Invoker<std::tuple<dev::Worker::startWorking()::{lambda()#1}> > >::~_State_impl()' 内:
Worker.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN3dev6Worker12startWorkingEvEUlvE_EEEEED2Ev+0xb): `std::thread::_State::~_State()' に対する 定義されていない参照です
../libdevcore/libdevcore.a(Worker.cpp.o): 関数 `std::thread::_State_impl<std::thread::_Invoker<std::tuple<dev::Worker::startWorking()::{lambda()#1}> > >::~_State_impl()' 内:
Worker.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN3dev6Worker12startWorkingEvEUlvE_EEEEED0Ev+0xf): `std::thread::_State::~_State()' に対する 定義されていない参照です
../libdevcore/libdevcore.a(Worker.cpp.o): 関数 `dev::Worker::startWorking()' 内:
Worker.cpp:(.text._ZN3dev6Worker12startWorkingEv+0x109): `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())' に対する定義されていない参照です
../libdevcore/libdevcore.a(Worker.cpp.o):(.data.rel.ro._ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJZN3dev6Worker12startWorkingEvEUlvE_EEEEEE+0x10): `typeinfo for std::thread::_State' に対する定義されていない参照です
../libapicore/libapicore.a(httpServer.cpp.o): 関数 `std::thread::_State_impl<std::thread::_Invoker<std::tuple<std::_Bind<void (httpServer::*(httpServer*))()> > > >::~_State_impl()' 内:
httpServer.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJSt5_BindIFM10httpServerFvvEPS4_EEEEEEED2Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJSt5_BindIFM10httpServerFvvEPS4_EEEEEEED5Ev]+0xf): `std::thread::_State::~_State()' に対する定義されていない参照です
../libapicore/libapicore.a(httpServer.cpp.o): 関数 `std::thread::_State_impl<std::thread::_Invoker<std::tuple<std::_Bind<void (httpServer::*(httpServer*))()> > > >::~_State_impl()' 内:
httpServer.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJSt5_BindIFM10httpServerFvvEPS4_EEEEEEED0Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJSt5_BindIFM10httpServerFvvEPS4_EEEEEEED5Ev]+0x13): `std::thread::_State::~_State()' に対する定義されていない参照です
../libapicore/libapicore.a(httpServer.cpp.o): 関数 `httpServer::run(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned short, dev::eth::Farm*, dev::eth::PoolManager*, bool, bool)' 内:
httpServer.cpp:(.text._ZN10httpServer3runENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtPN3dev3eth4FarmEPNS7_11PoolManagerEbb+0x373): `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())' に対する定義されていない参照です
../libapicore/libapicore.a(httpServer.cpp.o):(.data.rel.ro._ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJSt5_BindIFM10httpServerFvvEPS4_EEEEEEEE[_ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJSt5_BindIFM10httpServerFvvEPS4_EEEEEEEE]+0x10): `typeinfo for std::thread::_State' に対する定義されていない参照です
collect2: error: ld returned 1 exit status
ethminer/CMakeFiles/ethminer.dir/build.make:120: recipe for target 'ethminer/ethminer' failed
make[2]: *** [ethminer/ethminer] Error 1
CMakeFiles/Makefile2:494: recipe for target 'ethminer/CMakeFiles/ethminer.dir/all' failed
make[1]: *** [ethminer/CMakeFiles/ethminer.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
Desktop (please complete the following information):
Compile environment:
Try removing directory ~/.hunter and resubmit build.
Try removing directory ~/.hunter and resubmit build.
I tried but the contents of the error did not change.
Thank you,
Why do you do this ?
//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING=-fPIC
//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=-fPIC
Have you tried not altering Linker flags ?
Problem is at linker step not a compilation level.
And please use output in plain english as we can't read the errors reported.
To Reproduce
run command:
$ rm -r ~/.hunter
$ cd build
$ rm CMakeCache.txt cmake_install.cmake && rm -r CMakeFiles && rm Makefile
$ cmake .. -DETHASHCUDA=ON -DETHASHCL=OFF -DCOMPUTE=61
$ cmake --build .
Expected behavior
log info:
-- [cable ] Cable 0.2.12 initialized
-- [hunter] Initializing Hunter workspace (951e8daf57a51708b0e6a00cab342a042db57a2f)
-- [hunter] https://github.com/ruslo/hunter/archive/v0.23.6.tar.gz
-- [hunter] -> /home/users/.hunter/_Base/Download/Hunter/0.23.6/951e8da
-- The C compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- [cable ] Build type: Release
-- [hunter] Calculating Toolchain-SHA1
-- [hunter] Calculating Config-SHA1
-- [hunter] HUNTER_ROOT: /home/users/.hunter
-- [hunter] [ Hunter-ID: 951e8da | Toolchain-ID: d092851 | Config-ID: 4a08a2c ]
-- [hunter] BOOST_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.66.0)
-- [hunter] Cache HIT: Boost
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/Boost/1.66.0/075d0b4/da39a3e/a23c16c/6934061/da39a3e/cache.sha1
-- [hunter] BOOST_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.66.0)
-- [hunter] Cache HIT: Boost (comp.: system)
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/Boost/__system/1.66.0/075d0b4/da39a3e/a23c16c/6934061/da39a3e/cache.sha1
-- [hunter] BOOST_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.66.0)
-- [hunter] Cache HIT: Boost (comp.: filesystem)
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/Boost/__filesystem/1.66.0/075d0b4/da39a3e/a23c16c/6934061/da39a3e/cache.sha1
-- Boost version: 1.66.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- [hunter] JSONCPP_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.8.0)
-- [hunter] Cache HIT: jsoncpp
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/jsoncpp/1.8.0/40f7f34/ad44e31/a23c16c/da39a3e/da39a3e/cache.sha1
-- [hunter] LIBJSON-RPC-CPP_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 0.7.0-p3)
-- [hunter] Cache HIT: libjson-rpc-cpp
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/libjson-rpc-cpp/0.7.0-p3/f2c7e2f/9ab6cf7/a23c16c/da39a3e/3362a00/cache.sha1
-- [hunter] CURL_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 7.60.0-p0)
-- [hunter] Cache HIT: CURL
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/CURL/7.60.0-p0/53b5065/7305a1e/a23c16c/da39a3e/2528bec/cache.sha1
-- [hunter] ZLIB_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.2.8-p3)
-- [hunter] Cache HIT: ZLIB
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/ZLIB/1.2.8-p3/573dc28/da39a3e/a23c16c/da39a3e/da39a3e/cache.sha1
-- [hunter] INTSIZEOF_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 2.0.2)
-- [hunter] Cache HIT: intsizeof
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/intsizeof/2.0.2/729d725/da39a3e/a23c16c/da39a3e/da39a3e/cache.sha1
-- [hunter] JSONCPP_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.8.0)
-- Looking for pthread.h
-- Looking for 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
-- [hunter] ETHASH_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 0.3.0)
-- [hunter] Cache HIT: ethash
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/ethash/0.3.0/42597f3/8f51230/a23c16c/da39a3e/da39a3e/cache.sha1
------------------------------------------------------------------------
-- CMake 3.10.2
-- Build Release / Linux
------------------------------------------------------------- components
-- ETHASHCL Build OpenCL components OFF
-- ETHASHCUDA Build CUDA components ON
-- ETHDBUS Build D-Bus components OFF
-- APICORE Build API Server components ON
-- BINKERN Install AMD binary kernels ON
------------------------------------------------------------------------
-- Performing Test ffunction-sections
-- Performing Test ffunction-sections - Success
-- Performing Test fdata-sections
-- Performing Test fdata-sections - Success
-- Performing Test Wl,--gc-sections
-- Performing Test Wl,--gc-sections - Success
-- Found Git: /usr/bin/git (found version "2.17.1")
-- Found CUDA: /usr/local/cuda (found version "9.1")
-- [hunter] OPENSSL_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.1.0h)
-- [hunter] Cache HIT: OpenSSL
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/OpenSSL/1.1.0h/2168c88/da39a3e/a23c16c/aec46dc/da39a3e/cache.sha1
-- Found OpenSSL: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install/lib/libssl.a;/home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install/lib/libcrypto.a;dl (found version "1.1.0h")
-- [hunter] MONGOOSE_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 6.10)
-- [hunter] Cache HIT: mongoose
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/mongoose/6.10/7f2af8d/da39a3e/a23c16c/da39a3e/da39a3e/cache.sha1
-- [hunter] CLI11_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.6.1)
-- [hunter] Cache HIT: CLI11
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/CLI11/1.6.1/4d900c5/2baeebe/a23c16c/da39a3e/da39a3e/cache.sha1
-- Configuring done
-- Generating done
-- Build files have been written to: /home/users/ethminer/build
users@mining-macine:~/ethminer/build$ cmake --build.
CMake Error: The source directory "/home/users/ethminer/build/--build." does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
users@mining-macine:~/ethminer/build$ cmake --build .
Scanning dependencies of target ethminer-buildinfo-git
[ 0%] Built target ethminer-buildinfo-git
Scanning dependencies of target ethminer-buildinfo
[ 3%] Building C object CMakeFiles/ethminer-buildinfo.dir/ethminer/buildinfo.c.o
[ 6%] Linking C static library ethminer/libethminer-buildinfo.a
[ 9%] Built target ethminer-buildinfo
[ 12%] Building CXX object libdevcore/CMakeFiles/devcore.dir/CommonData.cpp.o
[ 15%] Building CXX object libdevcore/CMakeFiles/devcore.dir/FixedHash.cpp.o
[ 18%] Building CXX object libdevcore/CMakeFiles/devcore.dir/Log.cpp.o
[ 21%] Building CXX object libdevcore/CMakeFiles/devcore.dir/RLP.cpp.o
[ 25%] Building CXX object libdevcore/CMakeFiles/devcore.dir/Worker.cpp.o
[ 28%] Linking CXX static library libdevcore.a
[ 28%] Built target devcore
[ 31%] Building CXX object libhwmon/CMakeFiles/hwmon.dir/wraphelper.cpp.o
[ 34%] Building CXX object libhwmon/CMakeFiles/hwmon.dir/wrapnvml.cpp.o
[ 37%] Building CXX object libhwmon/CMakeFiles/hwmon.dir/wrapadl.cpp.o
[ 40%] Building CXX object libhwmon/CMakeFiles/hwmon.dir/wrapamdsysfs.cpp.o
[ 43%] Linking CXX static library libhwmon.a
[ 43%] Built target hwmon
[ 46%] Building NVCC (Device) object libethash-cuda/CMakeFiles/ethash-cuda.dir/ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o
ptxas info : 0 bytes gmem, 264 bytes cmem[3]
ptxas info : Compiling entry function '_Z25ethash_calculate_dag_itemj' for 'sm_61'
ptxas info : Function properties for _Z25ethash_calculate_dag_itemj
272 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 96 registers, 324 bytes cmem[0], 4 bytes cmem[2]
ptxas info : Compiling entry function '_Z13ethash_searchILj8EEvPV14Search_resultsm' for 'sm_61'
ptxas info : Function properties for _Z13ethash_searchILj8EEvPV14Search_resultsm
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 107 registers, 336 bytes cmem[0], 96 bytes cmem[2]
ptxas info : Compiling entry function '_Z13ethash_searchILj4EEvPV14Search_resultsm' for 'sm_61'
ptxas info : Function properties for _Z13ethash_searchILj4EEvPV14Search_resultsm
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 80 registers, 336 bytes cmem[0]
ptxas info : Compiling entry function '_Z13ethash_searchILj2EEvPV14Search_resultsm' for 'sm_61'
ptxas info : Function properties for _Z13ethash_searchILj2EEvPV14Search_resultsm
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 80 registers, 336 bytes cmem[0]
ptxas info : Compiling entry function '_Z13ethash_searchILj1EEvPV14Search_resultsm' for 'sm_61'
ptxas info : Function properties for _Z13ethash_searchILj1EEvPV14Search_resultsm
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 78 registers, 336 bytes cmem[0]
[ 50%] Building CXX object libethash-cuda/CMakeFiles/ethash-cuda.dir/CUDAMiner.cpp.o
[ 53%] Linking CXX static library libethash-cuda.a
[ 53%] Built target ethash-cuda
[ 56%] Building CXX object libethcore/CMakeFiles/ethcore.dir/BlockHeader.cpp.o
[ 59%] Building CXX object libethcore/CMakeFiles/ethcore.dir/EthashAux.cpp.o
[ 62%] Building CXX object libethcore/CMakeFiles/ethcore.dir/Miner.cpp.o
[ 65%] Linking CXX static library libethcore.a
[ 65%] Built target ethcore
Scanning dependencies of target poolprotocols
[ 68%] Building CXX object libpoolprotocols/CMakeFiles/poolprotocols.dir/PoolURI.cpp.o
[ 71%] Building CXX object libpoolprotocols/CMakeFiles/poolprotocols.dir/PoolManager.cpp.o
[ 75%] Building CXX object libpoolprotocols/CMakeFiles/poolprotocols.dir/testing/SimulateClient.cpp.o
[ 78%] Building CXX object libpoolprotocols/CMakeFiles/poolprotocols.dir/stratum/EthStratumClient.cpp.o
[ 81%] Building CXX object libpoolprotocols/CMakeFiles/poolprotocols.dir/getwork/EthGetworkClient.cpp.o
[ 84%] Linking CXX static library libpoolprotocols.a
[ 84%] Built target poolprotocols
Scanning dependencies of target apicore
[ 87%] Building CXX object libapicore/CMakeFiles/apicore.dir/ApiServer.cpp.o
[ 90%] Building CXX object libapicore/CMakeFiles/apicore.dir/httpServer.cpp.o
[ 93%] Linking CXX static library libapicore.a
[ 93%] Built target apicore
Scanning dependencies of target ethminer
[ 96%] Building CXX object ethminer/CMakeFiles/ethminer.dir/main.cpp.o
[100%] Linking CXX executable ethminer
CMakeFiles/ethminer.dir/main.cpp.o: in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<boost::_bi::bind_t<unsigned long, boost::_mfi::mf0<unsigned long, boost::asio::io_context>, boost::_bi::list1<boost::_bi::value<boost::asio::io_context*> > > > > >::~_State_impl()' :
main.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tImNS3_4_mfi3mf0ImNS3_4asio10io_contextEEENS4_5list1INS4_5valueIPS9_EEEEEEEEEEED2Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tImNS3_4_mfi3mf0ImNS3_4asio10io_contextEEENS4_5list1INS4_5valueIPS9_EEEEEEEEEEED5Ev]+0xb): undefined reference to `std::thread::_State::~_State()'
CMakeFiles/ethminer.dir/main.cpp.o: in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<boost::_bi::bind_t<unsigned long, boost::_mfi::mf0<unsigned long, boost::asio::io_context>, boost::_bi::list1<boost::_bi::value<boost::asio::io_context*> > > > > >::~_State_impl()' :
main.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tImNS3_4_mfi3mf0ImNS3_4asio10io_contextEEENS4_5list1INS4_5valueIPS9_EEEEEEEEEEED0Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tImNS3_4_mfi3mf0ImNS3_4asio10io_contextEEENS4_5list1INS4_5valueIPS9_EEEEEEEEEEED5Ev]+0xf): undefined reference to `std::thread::_State::~_State()'
CMakeFiles/ethminer.dir/main.cpp.o: in function `MinerCLI::MinerCLI()' :
main.cpp:(.text._ZN8MinerCLIC2Ev[_ZN8MinerCLIC5Ev]+0x3c9): undefined reference to `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())'
CMakeFiles/ethminer.dir/main.cpp.o:(.data.rel.ro._ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tImNS3_4_mfi3mf0ImNS3_4asio10io_contextEEENS4_5list1INS4_5valueIPS9_EEEEEEEEEEEE[_ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tImNS3_4_mfi3mf0ImNS3_4asio10io_contextEEENS4_5list1INS4_5valueIPS9_EEEEEEEEEEEE]+0x10): undefined reference to `typeinfo for std::thread::_State'
../libpoolprotocols/libpoolprotocols.a(PoolManager.cpp.o): in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<boost::_bi::bind_t<void, boost::_mfi::mf0<void, dev::eth::PoolManager>, boost::_bi::list1<boost::_bi::value<dev::eth::PoolManager*> > > > > >::~_State_impl()' :
PoolManager.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0IvN3dev3eth11PoolManagerEEENS4_5list1INS4_5valueIPSA_EEEEEEEEEEED2Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0IvN3dev3eth11PoolManagerEEENS4_5list1INS4_5valueIPSA_EEEEEEEEEEED5Ev]+0xb): undefined reference to `std::thread::_State::~_State()'
../libpoolprotocols/libpoolprotocols.a(PoolManager.cpp.o): in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<boost::_bi::bind_t<void, boost::_mfi::mf0<void, dev::eth::PoolManager>, boost::_bi::list1<boost::_bi::value<dev::eth::PoolManager*> > > > > >::~_State_impl()' :
PoolManager.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0IvN3dev3eth11PoolManagerEEENS4_5list1INS4_5valueIPSA_EEEEEEEEEEED0Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0IvN3dev3eth11PoolManagerEEENS4_5list1INS4_5valueIPSA_EEEEEEEEEEED5Ev]+0xf): undefined reference to `std::thread::_State::~_State()'
../libpoolprotocols/libpoolprotocols.a(PoolManager.cpp.o): in function `dev::eth::PoolManager::start()' :
PoolManager.cpp:(.text._ZN3dev3eth11PoolManager5startEv+0x9d): undefined reference to `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())'
../libpoolprotocols/libpoolprotocols.a(PoolManager.cpp.o):(.data.rel.ro._ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0IvN3dev3eth11PoolManagerEEENS4_5list1INS4_5valueIPSA_EEEEEEEEEEEE[_ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0IvN3dev3eth11PoolManagerEEENS4_5list1INS4_5valueIPSA_EEEEEEEEEEEE]+0x10): undefined reference to `typeinfo for std::thread::_State'
../libapicore/libapicore.a(ApiServer.cpp.o): in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<boost::_bi::bind_t<void, boost::_mfi::mf0<void, ApiServer>, boost::_bi::list1<boost::_bi::value<ApiServer*> > > > > >::~_State_impl()' :
ApiServer.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0Iv9ApiServerEENS4_5list1INS4_5valueIPS8_EEEEEEEEEEED2Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0Iv9ApiServerEENS4_5list1INS4_5valueIPS8_EEEEEEEEEEED5Ev]+0xb): undefined reference to `std::thread::_State::~_State()'
../libapicore/libapicore.a(ApiServer.cpp.o): in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<boost::_bi::bind_t<void, boost::_mfi::mf0<void, ApiServer>, boost::_bi::list1<boost::_bi::value<ApiServer*> > > > > >::~_State_impl()' :
ApiServer.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0Iv9ApiServerEENS4_5list1INS4_5valueIPS8_EEEEEEEEEEED0Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0Iv9ApiServerEENS4_5list1INS4_5valueIPS8_EEEEEEEEEEED5Ev]+0xf): undefined reference to `std::thread::_State::~_State()'
../libapicore/libapicore.a(ApiServer.cpp.o): in function `ApiServer::start()' :
ApiServer.cpp:(.text._ZN9ApiServer5startEv+0x6f7): undefined reference to `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())'
../libapicore/libapicore.a(ApiServer.cpp.o):(.data.rel.ro._ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0Iv9ApiServerEENS4_5list1INS4_5valueIPS8_EEEEEEEEEEEE[_ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0Iv9ApiServerEENS4_5list1INS4_5valueIPS8_EEEEEEEEEEEE]+0x10): undefined reference to `typeinfo for std::thread::_State'
../libdevcore/libdevcore.a(Worker.cpp.o): in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<dev::Worker::startWorking()::{lambda()#1}> > >::~_State_impl()' :
Worker.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN3dev6Worker12startWorkingEvEUlvE_EEEEED2Ev+0xb): undefined reference to `std::thread::_State::~_State()'
../libdevcore/libdevcore.a(Worker.cpp.o): in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<dev::Worker::startWorking()::{lambda()#1}> > >::~_State_impl()' :
Worker.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN3dev6Worker12startWorkingEvEUlvE_EEEEED0Ev+0xf): undefined reference to `std::thread::_State::~_State()'
../libdevcore/libdevcore.a(Worker.cpp.o): in function `dev::Worker::startWorking()' :
Worker.cpp:(.text._ZN3dev6Worker12startWorkingEv+0x109): undefined reference to `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())'
../libdevcore/libdevcore.a(Worker.cpp.o):(.data.rel.ro._ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJZN3dev6Worker12startWorkingEvEUlvE_EEEEEE+0x10): undefined reference to `typeinfo for std::thread::_State'
../libapicore/libapicore.a(httpServer.cpp.o): in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<std::_Bind<void (httpServer::*(httpServer*))()> > > >::~_State_impl()' :
httpServer.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJSt5_BindIFM10httpServerFvvEPS4_EEEEEEED2Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJSt5_BindIFM10httpServerFvvEPS4_EEEEEEED5Ev]+0xb): undefined reference to `std::thread::_State::~_State()'
../libapicore/libapicore.a(httpServer.cpp.o): in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<std::_Bind<void (httpServer::*(httpServer*))()> > > >::~_State_impl()' :
httpServer.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJSt5_BindIFM10httpServerFvvEPS4_EEEEEEED0Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJSt5_BindIFM10httpServerFvvEPS4_EEEEEEED5Ev]+0xf): undefined reference to `std::thread::_State::~_State()'
../libapicore/libapicore.a(httpServer.cpp.o): in function `httpServer::run(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned short, dev::eth::Farm*, dev::eth::PoolManager*, bool, bool)' :
httpServer.cpp:(.text._ZN10httpServer3runENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtPN3dev3eth4FarmEPNS7_11PoolManagerEbb+0x36f): undefined reference to `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())'
../libapicore/libapicore.a(httpServer.cpp.o):(.data.rel.ro._ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJSt5_BindIFM10httpServerFvvEPS4_EEEEEEEE[_ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJSt5_BindIFM10httpServerFvvEPS4_EEEEEEEE]+0x10): undefined reference to `typeinfo for std::thread::_State'
collect2: error: ld returned 1 exit status
ethminer/CMakeFiles/ethminer.dir/build.make:120: recipe for target 'ethminer/ethminer' failed
make[2]: *** [ethminer/ethminer] Error 1
CMakeFiles/Makefile2:494: recipe for target 'ethminer/CMakeFiles/ethminer.dir/all' failed
make[1]: *** [ethminer/CMakeFiles/ethminer.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
Thank you,
Appears something slightly changed.
Please do the following :
git submodule update --init --recursivemkdir build && cd build/Please report results
To Reproduce
run command:
$ rm -rf ethminer
$ rm -rf ~/.hunter
$ git clone https://github.com/ethereum-mining/ethminer.git
Expected behavior
log info:
Cloning into 'ethminer'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 78747 (delta 0), reused 1 (delta 0), pack-reused 78741
Receiving objects: 100% (78747/78747), 52.85 MiB | 89.00 KiB/s, done.
Resolving deltas: 100% (58464/58464), done.
To Reproduce
run command:
$ cd ethminer/
$ git submodule update --init --recursive
Expected behavior
log info:
Submodule 'cmake/Hunter/disabled-mode' (https://github.com/hunter-packages/disabled-mode) registered for path 'cmake/Hunter/disabled-mode'
Submodule 'cmake/cable' (https://github.com/ethereum/cable) registered for path 'cmake/cable'
Cloning into '/home/users/ethminer/cmake/Hunter/disabled-mode'...
Cloning into '/home/users/ethminer/cmake/cable'...
Submodule path 'cmake/Hunter/disabled-mode': checked out '5f88a3d7565e8e2d61f7d2a3247068a9a9fe2c4b'
Submodule path 'cmake/cable': checked out 'd4de52118b0947e22a2bc93ba9be148da82fc6c5'
To Reproduce
run command:
$ mkdir build
$ cd build
$ cmake .. -DETHASHCUDA=ON -DETHASHCL=OFF -DCOMPUTE=61
Expected behavior
log info:
-- [cable ] Cable 0.2.12 initialized
-- [hunter] Initializing Hunter workspace (951e8daf57a51708b0e6a00cab342a042db57a2f)
-- [hunter] https://github.com/ruslo/hunter/archive/v0.23.6.tar.gz
-- [hunter] -> /home/users/.hunter/_Base/Download/Hunter/0.23.6/951e8da
-- The C compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- [cable ] Build type: Release
-- [hunter] Calculating Toolchain-SHA1
-- [hunter] Calculating Config-SHA1
-- [hunter] HUNTER_ROOT: /home/users/.hunter
-- [hunter] [ Hunter-ID: 951e8da | Toolchain-ID: d092851 | Config-ID: 4a08a2c ]
-- [hunter] BOOST_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.66.0)
-- [hunter] Cache HIT: Boost
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/Boost/1.66.0/075d0b4/da39a3e/a23c16c/6934061/da39a3e/cache.sha1
-- [hunter] BOOST_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.66.0)
-- [hunter] Cache HIT: Boost (comp.: system)
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/Boost/__system/1.66.0/075d0b4/da39a3e/a23c16c/6934061/da39a3e/cache.sha1
-- [hunter] BOOST_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.66.0)
-- [hunter] Cache HIT: Boost (comp.: filesystem)
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/Boost/__filesystem/1.66.0/075d0b4/da39a3e/a23c16c/6934061/da39a3e/cache.sha1
-- Boost version: 1.66.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- [hunter] JSONCPP_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.8.0)
-- [hunter] Cache HIT: jsoncpp
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/jsoncpp/1.8.0/40f7f34/ad44e31/a23c16c/da39a3e/da39a3e/cache.sha1
-- [hunter] LIBJSON-RPC-CPP_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 0.7.0-p3)
-- [hunter] Cache HIT: libjson-rpc-cpp
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/libjson-rpc-cpp/0.7.0-p3/f2c7e2f/9ab6cf7/a23c16c/da39a3e/3362a00/cache.sha1
-- [hunter] CURL_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 7.60.0-p0)
-- [hunter] Cache HIT: CURL
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/CURL/7.60.0-p0/53b5065/7305a1e/a23c16c/da39a3e/2528bec/cache.sha1
-- [hunter] ZLIB_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.2.8-p3)
-- [hunter] Cache HIT: ZLIB
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/ZLIB/1.2.8-p3/573dc28/da39a3e/a23c16c/da39a3e/da39a3e/cache.sha1
-- [hunter] INTSIZEOF_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 2.0.2)
-- [hunter] Cache HIT: intsizeof
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/intsizeof/2.0.2/729d725/da39a3e/a23c16c/da39a3e/da39a3e/cache.sha1
-- [hunter] JSONCPP_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.8.0)
-- Looking for pthread.h
-- Looking for 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
-- [hunter] ETHASH_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 0.3.0)
-- [hunter] Cache HIT: ethash
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/ethash/0.3.0/42597f3/8f51230/a23c16c/da39a3e/da39a3e/cache.sha1
------------------------------------------------------------------------
-- CMake 3.10.2
-- Build Release / Linux
------------------------------------------------------------- components
-- ETHASHCL Build OpenCL components OFF
-- ETHASHCUDA Build CUDA components ON
-- ETHDBUS Build D-Bus components OFF
-- APICORE Build API Server components ON
-- BINKERN Install AMD binary kernels ON
-- DEVBUILD Build with dev logging OFF
------------------------------------------------------------------------
-- Performing Test ffunction-sections
-- Performing Test ffunction-sections - Success
-- Performing Test fdata-sections
-- Performing Test fdata-sections - Success
-- Performing Test Wl,--gc-sections
-- Performing Test Wl,--gc-sections - Success
-- Found Git: /usr/bin/git (found version "2.17.1")
-- Found CUDA: /usr/local/cuda (found version "9.1")
-- [hunter] OPENSSL_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.1.0h)
-- [hunter] Cache HIT: OpenSSL
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/OpenSSL/1.1.0h/2168c88/da39a3e/a23c16c/aec46dc/da39a3e/cache.sha1
-- Found OpenSSL: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install/lib/libssl.a;/home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install/lib/libcrypto.a;dl (found version "1.1.0h")
-- [hunter] MONGOOSE_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 6.10)
-- [hunter] Cache HIT: mongoose
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/mongoose/6.10/7f2af8d/da39a3e/a23c16c/da39a3e/da39a3e/cache.sha1
-- [hunter] CLI11_ROOT: /home/users/.hunter/_Base/951e8da/d092851/4a08a2c/Install (ver.: 1.6.1)
-- [hunter] Cache HIT: CLI11
-- [hunter] Cache info: /home/users/.hunter/_Base/Cache/meta/d092851/CLI11/1.6.1/4d900c5/2baeebe/a23c16c/da39a3e/da39a3e/cache.sha1
-- Configuring done
-- Generating done
-- Build files have been written to: /home/users/ethminer/build
To Reproduce
run command:
$ cmake --build .
Expected behavior
log info:
Scanning dependencies of target ethminer-buildinfo-git
[ 0%] Built target ethminer-buildinfo-git
[ 3%] Updating ethminer-buildinfo:
Project Version: 0.17.0.dev0-3+commit.83f626aa (prerelease)
System Name: linux
System Processor: x86_64
Compiler ID: gnu
Compiler Version: 7.3.0
Build Type: release
Git Info: 0.17.0.dev0 3 83f626aabf22af815c5017285746d71f1c04a970
Timestamp: 2018-09-20T23:06:27
Scanning dependencies of target ethminer-buildinfo
[ 6%] Building C object CMakeFiles/ethminer-buildinfo.dir/ethminer/buildinfo.c.o
[ 9%] Linking C static library ethminer/libethminer-buildinfo.a
[ 9%] Built target ethminer-buildinfo
Scanning dependencies of target devcore
[ 12%] Building CXX object libdevcore/CMakeFiles/devcore.dir/CommonData.cpp.o
[ 15%] Building CXX object libdevcore/CMakeFiles/devcore.dir/FixedHash.cpp.o
[ 18%] Building CXX object libdevcore/CMakeFiles/devcore.dir/Log.cpp.o
[ 21%] Building CXX object libdevcore/CMakeFiles/devcore.dir/RLP.cpp.o
[ 24%] Building CXX object libdevcore/CMakeFiles/devcore.dir/Worker.cpp.o
[ 27%] Linking CXX static library libdevcore.a
[ 27%] Built target devcore
Scanning dependencies of target hwmon
[ 30%] Building CXX object libhwmon/CMakeFiles/hwmon.dir/wraphelper.cpp.o
[ 33%] Building CXX object libhwmon/CMakeFiles/hwmon.dir/wrapnvml.cpp.o
[ 36%] Building CXX object libhwmon/CMakeFiles/hwmon.dir/wrapadl.cpp.o
[ 39%] Building CXX object libhwmon/CMakeFiles/hwmon.dir/wrapamdsysfs.cpp.o
[ 42%] Linking CXX static library libhwmon.a
[ 42%] Built target hwmon
[ 45%] Building NVCC (Device) object libethash-cuda/CMakeFiles/ethash-cuda.dir/ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o
ptxas info : 0 bytes gmem, 264 bytes cmem[3]
ptxas info : Compiling entry function '_Z25ethash_calculate_dag_itemj' for 'sm_61'
ptxas info : Function properties for _Z25ethash_calculate_dag_itemj
272 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 96 registers, 324 bytes cmem[0], 4 bytes cmem[2]
ptxas info : Compiling entry function '_Z13ethash_searchILj8EEvPV14Search_resultsm' for 'sm_61'
ptxas info : Function properties for _Z13ethash_searchILj8EEvPV14Search_resultsm
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 107 registers, 336 bytes cmem[0], 96 bytes cmem[2]
ptxas info : Compiling entry function '_Z13ethash_searchILj4EEvPV14Search_resultsm' for 'sm_61'
ptxas info : Function properties for _Z13ethash_searchILj4EEvPV14Search_resultsm
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 80 registers, 336 bytes cmem[0]
ptxas info : Compiling entry function '_Z13ethash_searchILj2EEvPV14Search_resultsm' for 'sm_61'
ptxas info : Function properties for _Z13ethash_searchILj2EEvPV14Search_resultsm
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 80 registers, 336 bytes cmem[0]
ptxas info : Compiling entry function '_Z13ethash_searchILj1EEvPV14Search_resultsm' for 'sm_61'
ptxas info : Function properties for _Z13ethash_searchILj1EEvPV14Search_resultsm
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 78 registers, 336 bytes cmem[0]
Scanning dependencies of target ethash-cuda
[ 48%] Building CXX object libethash-cuda/CMakeFiles/ethash-cuda.dir/CUDAMiner.cpp.o
[ 51%] Linking CXX static library libethash-cuda.a
[ 51%] Built target ethash-cuda
Scanning dependencies of target ethcore
[ 54%] Building CXX object libethcore/CMakeFiles/ethcore.dir/BlockHeader.cpp.o
[ 57%] Building CXX object libethcore/CMakeFiles/ethcore.dir/EthashAux.cpp.o
[ 60%] Building CXX object libethcore/CMakeFiles/ethcore.dir/Farm.cpp.o
[ 63%] Building CXX object libethcore/CMakeFiles/ethcore.dir/Miner.cpp.o
[ 66%] Linking CXX static library libethcore.a
[ 66%] Built target ethcore
Scanning dependencies of target poolprotocols
[ 69%] Building CXX object libpoolprotocols/CMakeFiles/poolprotocols.dir/PoolURI.cpp.o
[ 72%] Building CXX object libpoolprotocols/CMakeFiles/poolprotocols.dir/PoolManager.cpp.o
[ 75%] Building CXX object libpoolprotocols/CMakeFiles/poolprotocols.dir/testing/SimulateClient.cpp.o
[ 78%] Building CXX object libpoolprotocols/CMakeFiles/poolprotocols.dir/stratum/EthStratumClient.cpp.o
[ 81%] Building CXX object libpoolprotocols/CMakeFiles/poolprotocols.dir/getwork/EthGetworkClient.cpp.o
[ 84%] Linking CXX static library libpoolprotocols.a
[ 84%] Built target poolprotocols
Scanning dependencies of target apicore
[ 87%] Building CXX object libapicore/CMakeFiles/apicore.dir/ApiServer.cpp.o
[ 90%] Building CXX object libapicore/CMakeFiles/apicore.dir/httpServer.cpp.o
[ 93%] Linking CXX static library libapicore.a
[ 93%] Built target apicore
Scanning dependencies of target ethminer
[ 96%] Building CXX object ethminer/CMakeFiles/ethminer.dir/main.cpp.o
[100%] Linking CXX executable ethminer
CMakeFiles/ethminer.dir/main.cpp.o: in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<boost::_bi::bind_t<unsigned long, boost::_mfi::mf0<unsigned long, boost::asio::io_context>, boost::_bi::list1<boost::_bi::value<boost::asio::io_context*> > > > > >::~_State_impl()' :
main.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tImNS3_4_mfi3mf0ImNS3_4asio10io_contextEEENS4_5list1INS4_5valueIPS9_EEEEEEEEEEED2Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tImNS3_4_mfi3mf0ImNS3_4asio10io_contextEEENS4_5list1INS4_5valueIPS9_EEEEEEEEEEED5Ev]+0xb): undefined reference to `std::thread::_State::~_State()'
CMakeFiles/ethminer.dir/main.cpp.o: in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<boost::_bi::bind_t<unsigned long, boost::_mfi::mf0<unsigned long, boost::asio::io_context>, boost::_bi::list1<boost::_bi::value<boost::asio::io_context*> > > > > >::~_State_impl()' :
main.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tImNS3_4_mfi3mf0ImNS3_4asio10io_contextEEENS4_5list1INS4_5valueIPS9_EEEEEEEEEEED0Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tImNS3_4_mfi3mf0ImNS3_4asio10io_contextEEENS4_5list1INS4_5valueIPS9_EEEEEEEEEEED5Ev]+0xf): undefined reference to `std::thread::_State::~_State()'
CMakeFiles/ethminer.dir/main.cpp.o: in function `MinerCLI::MinerCLI()' :
main.cpp:(.text._ZN8MinerCLIC2Ev[_ZN8MinerCLIC5Ev]+0x41a): undefined reference to `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())'
CMakeFiles/ethminer.dir/main.cpp.o:(.data.rel.ro._ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tImNS3_4_mfi3mf0ImNS3_4asio10io_contextEEENS4_5list1INS4_5valueIPS9_EEEEEEEEEEEE[_ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tImNS3_4_mfi3mf0ImNS3_4asio10io_contextEEENS4_5list1INS4_5valueIPS9_EEEEEEEEEEEE]+0x10): undefined reference to `typeinfo for std::thread::_State'
../libpoolprotocols/libpoolprotocols.a(PoolManager.cpp.o): in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<boost::_bi::bind_t<void, boost::_mfi::mf0<void, dev::eth::PoolManager>, boost::_bi::list1<boost::_bi::value<dev::eth::PoolManager*> > > > > >::~_State_impl()' :
PoolManager.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0IvN3dev3eth11PoolManagerEEENS4_5list1INS4_5valueIPSA_EEEEEEEEEEED2Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0IvN3dev3eth11PoolManagerEEENS4_5list1INS4_5valueIPSA_EEEEEEEEEEED5Ev]+0xb): undefined reference to `std::thread::_State::~_State()'
../libpoolprotocols/libpoolprotocols.a(PoolManager.cpp.o): in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<boost::_bi::bind_t<void, boost::_mfi::mf0<void, dev::eth::PoolManager>, boost::_bi::list1<boost::_bi::value<dev::eth::PoolManager*> > > > > >::~_State_impl()' :
PoolManager.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0IvN3dev3eth11PoolManagerEEENS4_5list1INS4_5valueIPSA_EEEEEEEEEEED0Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0IvN3dev3eth11PoolManagerEEENS4_5list1INS4_5valueIPSA_EEEEEEEEEEED5Ev]+0xf): undefined reference to `std::thread::_State::~_State()'
../libpoolprotocols/libpoolprotocols.a(PoolManager.cpp.o): in function `dev::eth::PoolManager::start()' :
PoolManager.cpp:(.text._ZN3dev3eth11PoolManager5startEv+0x9d): undefined reference to `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())'
../libpoolprotocols/libpoolprotocols.a(PoolManager.cpp.o):(.data.rel.ro._ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0IvN3dev3eth11PoolManagerEEENS4_5list1INS4_5valueIPSA_EEEEEEEEEEEE[_ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0IvN3dev3eth11PoolManagerEEENS4_5list1INS4_5valueIPSA_EEEEEEEEEEEE]+0x10): undefined reference to `typeinfo for std::thread::_State'
../libapicore/libapicore.a(ApiServer.cpp.o): in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<boost::_bi::bind_t<void, boost::_mfi::mf0<void, ApiServer>, boost::_bi::list1<boost::_bi::value<ApiServer*> > > > > >::~_State_impl()' :
ApiServer.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0Iv9ApiServerEENS4_5list1INS4_5valueIPS8_EEEEEEEEEEED2Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0Iv9ApiServerEENS4_5list1INS4_5valueIPS8_EEEEEEEEEEED5Ev]+0xb): undefined reference to `std::thread::_State::~_State()'
../libapicore/libapicore.a(ApiServer.cpp.o): in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<boost::_bi::bind_t<void, boost::_mfi::mf0<void, ApiServer>, boost::_bi::list1<boost::_bi::value<ApiServer*> > > > > >::~_State_impl()' :
ApiServer.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0Iv9ApiServerEENS4_5list1INS4_5valueIPS8_EEEEEEEEEEED0Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0Iv9ApiServerEENS4_5list1INS4_5valueIPS8_EEEEEEEEEEED5Ev]+0xf): undefined reference to `std::thread::_State::~_State()'
../libapicore/libapicore.a(ApiServer.cpp.o): in function `ApiServer::start()' :
ApiServer.cpp:(.text._ZN9ApiServer5startEv+0x6f7): undefined reference to `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())'
../libapicore/libapicore.a(ApiServer.cpp.o):(.data.rel.ro._ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0Iv9ApiServerEENS4_5list1INS4_5valueIPS8_EEEEEEEEEEEE[_ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJN5boost3_bi6bind_tIvNS3_4_mfi3mf0Iv9ApiServerEENS4_5list1INS4_5valueIPS8_EEEEEEEEEEEE]+0x10): undefined reference to `typeinfo for std::thread::_State'
../libdevcore/libdevcore.a(Worker.cpp.o): in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<dev::Worker::startWorking()::{lambda()#1}> > >::~_State_impl()' :
Worker.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN3dev6Worker12startWorkingEvEUlvE_EEEEED2Ev+0xb): undefined reference to `std::thread::_State::~_State()'
../libdevcore/libdevcore.a(Worker.cpp.o): in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<dev::Worker::startWorking()::{lambda()#1}> > >::~_State_impl()' :
Worker.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN3dev6Worker12startWorkingEvEUlvE_EEEEED0Ev+0xf): undefined reference to `std::thread::_State::~_State()'
../libdevcore/libdevcore.a(Worker.cpp.o): in function `dev::Worker::startWorking()' :
Worker.cpp:(.text._ZN3dev6Worker12startWorkingEv+0x109): undefined reference to `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())'
../libdevcore/libdevcore.a(Worker.cpp.o):(.data.rel.ro._ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJZN3dev6Worker12startWorkingEvEUlvE_EEEEEE+0x10): undefined reference to `typeinfo for std::thread::_State'
../libapicore/libapicore.a(httpServer.cpp.o): in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<std::_Bind<void (httpServer::*(httpServer*))()> > > >::~_State_impl()' :
httpServer.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJSt5_BindIFM10httpServerFvvEPS4_EEEEEEED2Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJSt5_BindIFM10httpServerFvvEPS4_EEEEEEED5Ev]+0xb): undefined reference to `std::thread::_State::~_State()'
../libapicore/libapicore.a(httpServer.cpp.o): in function `std::thread::_State_impl<std::thread::_Invoker<std::tuple<std::_Bind<void (httpServer::*(httpServer*))()> > > >::~_State_impl()' :
httpServer.cpp:(.text._ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJSt5_BindIFM10httpServerFvvEPS4_EEEEEEED0Ev[_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJSt5_BindIFM10httpServerFvvEPS4_EEEEEEED5Ev]+0xf): undefined reference to `std::thread::_State::~_State()'
../libapicore/libapicore.a(httpServer.cpp.o): in function `httpServer::run(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned short, bool, bool)' :
httpServer.cpp:(.text._ZN10httpServer3runENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtbb+0x359): undefined reference to `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())'
../libapicore/libapicore.a(httpServer.cpp.o):(.data.rel.ro._ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJSt5_BindIFM10httpServerFvvEPS4_EEEEEEEE[_ZTINSt6thread11_State_implINS_8_InvokerISt5tupleIJSt5_BindIFM10httpServerFvvEPS4_EEEEEEEE]+0x10): undefined reference to `typeinfo for std::thread::_State'
collect2: error: ld returned 1 exit status
ethminer/CMakeFiles/ethminer.dir/build.make:120: recipe for target 'ethminer/ethminer' failed
make[2]: *** [ethminer/ethminer] Error 1
CMakeFiles/Makefile2:494: recipe for target 'ethminer/CMakeFiles/ethminer.dir/all' failed
make[1]: *** [ethminer/CMakeFiles/ethminer.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
Thank you,
Sorry to ask for all these tests.
Please retry with cmake .. -DETHASHCUDA=ON -DETHASHCL=ON -DCOMPUTE=61
It seems there is a problem with the pthread library (different (gcc/pthread) versions installed?)
Try VERBOSE=1 cmake .. -DETHASHCUDA=ON -DETHASHCL=OFF -DCOMPUTE=61
Then you should get full output of gcc commands are issued to get more details about libdirs and includedirs.
Also check https://stackoverflow.com/questions/38226993/getting-undefined-reference-to-stdthread-m-start-thread - maybe you find something using the nm and fgrep as shown there
use gcc-6 and remove 5. It works for me.
Any news here ?
No feed back.
Closing.