C ethminer

Comment

Author: Admin | 2025-04-28

I have some problem with the opencl compilation, which attached belowI think this is some include problem, I need some help how to solve it. (Ubuntu 16.04 box with Nvidia sdk 8.0)/usr/include/c++/5/tuple: In static member function ‘static constexpr unsigned int std::__tuple_compare::__eq(const _Tp&, const _Up&)’:/usr/include/c++/5/tuple:890:9: error: expected primary-expression before ‘attribute’return bool(std::get(__t) == std::get(__u))^/usr/include/c++/5/tuple:890:9: error: expected ‘;’ before ‘attribute’/usr/include/c++/5/tuple:890:9: error: expected primary-expression before ‘attribute’/usr/include/c++/5/tuple: In static member function ‘static constexpr unsigned int std::__tuple_compare::__less(const _Tp&, const _Up&)’:/usr/include/c++/5/tuple:897:9: error: expected primary-expression before ‘attribute’return bool(std::get(__t) (__u))^/usr/include/c++/5/tuple:897:9: error: expected ‘;’ before ‘attribute’/usr/include/c++/5/tuple:897:9: error: expected primary-expression before ‘attribute’In file included from /usr/include/c++/5/functional:53:0,from /usr/include/c++/5/mutex:42,from /home/cuttie/ethminer/libethash-cl/CL/cl.hpp:542,from /home/cuttie/ethminer/libethash-cl/ethash_cl_miner.h:15,from /home/cuttie/ethminer/libethash-cl/ethash_cl_miner.cpp:38:/usr/include/c++/5/typeinfo: In member function ‘__vector(4) __bool int std::type_info::before(const std::type_info&) const’:/usr/include/c++/5/typeinfo:118:46: error: cannot convert ‘bool’ to ‘__vector(4) __bool int’ in return: __builtin_strcmp (__name, __arg.__name) ^/usr/include/c++/5/typeinfo: In member function ‘__vector(4) __bool int std::type_info::operator==(const std::type_info&) const’:/usr/include/c++/5/typeinfo:124:50: error: cannot convert ‘bool’ to ‘__vector(4) __bool int’ in return__builtin_strcmp (__name, __arg.__name) == 0));^In file included from /usr/include/c++/5/mutex:42:0,from /home/cuttie/ethminer/libethash-cl/CL/cl.hpp:542,from /home/cuttie/ethminer/libethash-cl/ethash_cl_miner.h:15,from /home/cuttie/ethminer/libethash-cl/ethash_cl_miner.cpp:38:/usr/include/c++/5/functional: At global scope:/usr/include/c++/5/functional:1683:49: error: ‘constexpr’ needed for in-class initialization of static data member ‘const __vector(4) __bool int std::_Function_base::_Base_manager::__stored_locally’ of non-integral type [-fpermissive]&& (_M_max_align % alignof(_Functor) == 0));^/usr/include/c++/5/functional:1685:50: error: ‘__vector(4) __bool int’ is not a valid type for a template non-type parametertypedef integral_constant _Local_storage;^/usr/include/c++/5/functional: In member function ‘__vector(4) __bool int std::_Function_base::_M_empty() const’:/usr/include/c++/5/functional:1834:37: error: cannot convert ‘bool’ to ‘__vector(4) __bool int’ in returnbool _M_empty() const { return !_M_manager; }^In file included from /home/cuttie/ethminer/libethash-cl/CL/cl.hpp:542:0,from /home/cuttie/ethminer/libethash-cl/ethash_cl_miner.h:15,from /home/cuttie/ethminer/libethash-cl/ethash_cl_miner.cpp:38:/usr/include/c++/5/mutex: In member function ‘__vector(4) __bool int std::mutex::try_lock()’:/usr/include/c++/5/mutex:146:48: error: cannot convert ‘bool’ to ‘__vector(4) __bool int’ in returnreturn !__gthread_mutex_trylock(&_M_mutex);^/usr/include/c++/5/mutex: In member function ‘__vector(4) __bool int std::recursive_mutex::try_lock()’:/usr/include/c++/5/mutex:187:58: error: cannot convert ‘bool’ to ‘__vector(4) __bool int’ in returnreturn !_gthread_recursive_mutex_trylock(&M_mutex);^/usr/include/c++/5/mutex: In member function ‘vector(4) bool int std::timed_mutex::try_lock()’:/usr/include/c++/5/mutex:273:48: error: cannot convert ‘bool’ to ‘vector(4) bool int’ in returnreturn !gthread_mutex_trylock(&M_mutex);^/usr/include/c++/5/mutex: In member function ‘vector(4) bool int std::recursive_timed_mutex::try_lock()’:/usr/include/c++/5/mutex:326:58: error: cannot convert ‘bool’ to ‘vector(4) bool int’ in returnreturn !gthread_recursive_mutex_trylock(&M_mutex);^/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: At global scope:/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:567:11: error: expected identifier before ‘attribute’using vector = std::vector;^In file included from /home/cuttie/ethminer/libethash-cl/ethash_cl_miner.h:15:0,from /home/cuttie/ethminer/libethash-cl/ethash_cl_miner.cpp:38:/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:567:18: error: expected unqualified-id before ‘=’ tokenusing vector = std::vector;^/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:933:57: error: expected identifier before ‘inline cl_int getInfoHelper(Func f, cl_uint name, vector* param, int)^/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:933:57: error: expected ‘,’ or ‘...’ before ‘/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In function ‘cl_int cl::detail::getInfoHelper(Func, cl_uint, vector(4) int)’:/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:938:9: error:

Add Comment