I have some problem with the opencl compilation, which attached below
I 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<_Tp, _Up, __i, __size>::__eq(const _Tp&, const _Up&)’:
/usr/include/c++/5/tuple:890:9: error: expected primary-expression before ‘attribute’
return bool(std::get<__i>(__t) == std::get<__i>(__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<_Tp, _Up, __i, __size>::__less(const _Tp&, const _Up&)’:
/usr/include/c++/5/tuple:897:9: error: expected primary-expression before ‘attribute’
return bool(std::get<__i>(__t) < std::get<__i>(__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) < 0; }
^
/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<_Functor>::__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 parameter
typedef integral_constant<bool, __stored_locally> _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 return
bool _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 return
return !__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 return
return !_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 return
return !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 return
return !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<T, Alloc>;
^
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 ‘=’ token
using vector = std::vector<T, Alloc>;
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:933:57: error: expected identifier before ‘<’ token
inline cl_int getInfoHelper(Func f, cl_uint name, vector<vector>* param, int)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:933:57: error: expected ‘,’ or ‘...’ before ‘<’ token
/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: ‘param’ was not declared in this scope
if (param) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:941:9: error: expected primary-expression before ‘attribute’
vector<unsigned char*> binariesPointers(numBinaries);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:945:13: error: ‘binariesPointers’ was not declared in this scope
binariesPointers[i] = (param)[i].data();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:948:68: error: ‘binariesPointers’ was not declared in this scope
cl_int err = f(name, numBinaries * sizeof(unsigned char), binariesPointers.data(), NULL);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: At global scope:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:961:57: error: expected identifier before ‘<’ token
inline cl_int getInfoHelper(Func f, cl_uint name, vector* param, long)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:961:57: error: expected ‘,’ or ‘...’ before ‘<’ token
/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:971:5: error: expected primary-expression before ‘attribute’
vector localData(elements);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:972:29: error: ‘localData’ was not declared in this scope
err = f(name, required, localData.data(), NULL);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:976:9: error: ‘param’ was not declared in this scope
if (param) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: At global scope:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:991:33: error: expected identifier before ‘<’ token
Func f, cl_uint name, vector* param, int, typename T::cl_type = 0)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:991:33: error: expected ‘,’ or ‘...’ before ‘<’ token
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:990:15: error: redefinition of ‘template<class Func, class T> cl_int cl::detail::getInfoHelper(Func, cl_uint, vector(4) int)’
inline cl_int getInfoHelper(
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:961:15: note: ‘template<class Func, class T> cl_int cl::detail::getInfoHelper(Func, cl_uint, vector(4) int)’ previously declared here
inline cl_int getInfoHelper(Func f, cl_uint name, vector* param, long)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In function ‘cl_int cl::detail::getInfoHelper(Func, cl_uint, cl::string*, long int)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1033:9: error: expected primary-expression before ‘attribute’
vector value(required);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1034:33: error: ‘value’ was not declared in this scope
err = f(name, required, value.data(), NULL);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1039:38: error: there are no arguments to ‘begin’ that depend on a template parameter, so a declaration of ‘begin’ must be available [-fpermissive]
param->assign(begin(value), prev(end(value)));
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1039:38: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1039:55: error: there are no arguments to ‘end’ that depend on a template parameter, so a declaration of ‘end’ must be available [-fpermissive]
param->assign(begin(value), prev(end(value)));
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In function ‘cl_int cl::detail::getInfoHelper(Func, cl_uint, cl::array<long unsigned int, N>*, long int)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1059:5: error: expected primary-expression before ‘attribute’
vector<size_type> value(elements, 0);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1061:29: error: ‘value’ was not declared in this scope
err = f(name, required, value.data(), NULL);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: At global scope:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1117:58: error: expected unqualified-id before ‘attribute’
F(cl_device_info, CL_DEVICE_MAX_WORK_ITEM_SIZES, cl::vector<size_type>)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1310:13: note: in definition of macro ‘CL_HPP_DECLARE_PARAM_TRAITS’
typedef T param_type;
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1313:1: note: in expansion of macro ‘CL_HPP_PARAM_NAME_INFO_1_0’
CL_HPP_PARAM_NAME_INFO_1_0(CL_HPP_DECLARE_PARAM_TRAITS)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1163:48: error: expected unqualified-id before ‘attribute’
F(cl_context_info, CL_CONTEXT_DEVICES, cl::vector)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1310:13: note: in definition of macro ‘CL_HPP_DECLARE_PARAM_TRAITS’
typedef T param_type;
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1313:1: note: in expansion of macro ‘CL_HPP_PARAM_NAME_INFO_1_0’
CL_HPP_PARAM_NAME_INFO_1_0(CL_HPP_DECLARE_PARAM_TRAITS)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1164:51: error: expected unqualified-id before ‘attribute’
F(cl_context_info, CL_CONTEXT_PROPERTIES, cl::vector<cl_context_properties>)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1310:13: note: in definition of macro ‘CL_HPP_DECLARE_PARAM_TRAITS’
typedef T param_type;
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1313:1: note: in expansion of macro ‘CL_HPP_PARAM_NAME_INFO_1_0’
CL_HPP_PARAM_NAME_INFO_1_0(CL_HPP_DECLARE_PARAM_TRAITS)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1201:48: error: expected unqualified-id before ‘attribute’
F(cl_program_info, CL_PROGRAM_DEVICES, cl::vector)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1310:13: note: in definition of macro ‘CL_HPP_DECLARE_PARAM_TRAITS’
typedef T param_type;
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1313:1: note: in expansion of macro ‘CL_HPP_PARAM_NAME_INFO_1_0’
CL_HPP_PARAM_NAME_INFO_1_0(CL_HPP_DECLARE_PARAM_TRAITS)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1203:53: error: expected unqualified-id before ‘attribute’
F(cl_program_info, CL_PROGRAM_BINARY_SIZES, cl::vector<size_type>)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1310:13: note: in definition of macro ‘CL_HPP_DECLARE_PARAM_TRAITS’
typedef T param_type;
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1313:1: note: in expansion of macro ‘CL_HPP_PARAM_NAME_INFO_1_0’
CL_HPP_PARAM_NAME_INFO_1_0(CL_HPP_DECLARE_PARAM_TRAITS)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1204:49: error: expected unqualified-id before ‘attribute’
F(cl_program_info, CL_PROGRAM_BINARIES, cl::vector<cl::vector>)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1310:13: note: in definition of macro ‘CL_HPP_DECLARE_PARAM_TRAITS’
typedef T param_type;
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1313:1: note: in expansion of macro ‘CL_HPP_PARAM_NAME_INFO_1_0’
CL_HPP_PARAM_NAME_INFO_1_0(CL_HPP_DECLARE_PARAM_TRAITS)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1263:59: error: expected unqualified-id before ‘attribute’
F(cl_device_info, CL_DEVICE_PARTITION_PROPERTIES, cl::vector<cl_device_partition_property>)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1310:13: note: in definition of macro ‘CL_HPP_DECLARE_PARAM_TRAITS’
typedef T param_type;
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1318:1: note: in expansion of macro ‘CL_HPP_PARAM_NAME_INFO_1_2’
CL_HPP_PARAM_NAME_INFO_1_2(CL_HPP_DECLARE_PARAM_TRAITS)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1264:53: error: expected unqualified-id before ‘attribute’
F(cl_device_info, CL_DEVICE_PARTITION_TYPE, cl::vector<cl_device_partition_property>)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1310:13: note: in definition of macro ‘CL_HPP_DECLARE_PARAM_TRAITS’
typedef T param_type;
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1318:1: note: in expansion of macro ‘CL_HPP_PARAM_NAME_INFO_1_2’
CL_HPP_PARAM_NAME_INFO_1_2(CL_HPP_DECLARE_PARAM_TRAITS)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1583:39: error: expected ‘,’ or ‘...’ before ‘<’ token
static cl_uint getVersion(const vector &versionInfo)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In function ‘cl_uint cl::detail::getVersion(__vector(4) int)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1588:11: error: ‘versionInfo’ was not declared in this scope
while(versionInfo[index] != '.' ) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1594:11: error: ‘versionInfo’ was not declared in this scope
while(versionInfo[index] != ' ' && versionInfo[index] != '\0') {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In function ‘cl_uint cl::detail::getPlatformVersion(cl_platform_id)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1607:5: error: expected primary-expression before ‘attribute’
vector versionInfo(size);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1608:60: error: ‘versionInfo’ was not declared in this scope
clGetPlatformInfo(platform, CL_PLATFORM_VERSION, size, versionInfo.data(), &size);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In function ‘cl_uint cl::detail::getContextPlatformVersion(cl_context)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1627:5: error: expected primary-expression before ‘attribute’
vector<cl_device_id> devices(size/sizeof(cl_device_id));
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1628:57: error: ‘devices’ was not declared in this scope
clGetContextInfo(context, CL_CONTEXT_DEVICES, size, devices.data(), NULL);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: At global scope:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1838:61: error: expected identifier before ‘<’ token
friend inline cl_int getInfoHelper(Func, cl_uint, vector, int, typename U::cl_type);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1838:61: error: expected ‘,’ or ‘...’ before ‘<’ token
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In static member function ‘static __vector(4) __bool int cl::detail::Wrapper<_cl_device_id>::isReferenceCountable(cl_device_id)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1742:23: error: cannot convert ‘bool’ to ‘__vector(4) __bool int’ in initialization
bool retVal = false;
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1748:24: error: cannot convert ‘bool’ to ‘__vector(4) __bool int’ in assignment
retVal = true;
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In constructor ‘cl::detail::Wrapper<_cl_device_id*>::Wrapper()’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1759:57: error: cannot convert ‘bool’ to ‘__vector(4) bool int’ in initialization
Wrapper() : object(NULL), referenceCountable(false)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In constructor ‘cl::detail::Wrapper<_cl_device_id*>::Wrapper(_cl_device_id* const&, __vector(4) __bool int)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1765:34: error: cannot convert ‘bool’ to ‘__vector(4) _bool int’ in initialization
referenceCountable(false)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1769:25: error: could not convert ‘retainObject’ from ‘__vector(4) __bool int’ to ‘bool’
if (retainObject) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In constructor ‘cl::detail::Wrapper<_cl_device_id*>::Wrapper(cl::detail::Wrapper<_cl_device_id*>&&)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1791:33: error: cannot convert ‘bool’ to ‘__vector(4) _bool int’ in assignment
rhs.referenceCountable = false;
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In member function ‘cl::detail::Wrapper<_cl_device_id*>& cl::detail::Wrapper<_cl_device_id*>::operator=(cl::detail::Wrapper<_cl_device_id*>&&)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1812:37: error: cannot convert ‘bool’ to ‘__vector(4) _bool int’ in assignment
rhs.referenceCountable = false;
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In member function ‘cl_int cl::detail::Wrapper<_cl_device_id*>::retain() const’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1842:32: error: could not convert ‘((((cl::detail::Wrapper<_cl_device_id*>::cl_type)((const cl::detail::Wrapper<cl_device_id*>)this)->cl::detail::Wrapper<_cl_device_id>::object) != 0u) ? (((__vector(4) __bool int)((const cl::detail::Wrapper<cl_device_id*>)this)->cl::detail::Wrapper<_cl_device_id>::referenceCountable) != (__vector(4) __bool int){0u, 0u, 0u, 0u}) : (__vector(4) int){0, 0, 0, 0})’ from ‘vector(4) int’ to ‘bool’
if( object != nullptr && referenceCountable ) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In member function ‘cl_int cl::detail::Wrapper<_cl_device_id*>::release() const’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1852:32: error: could not convert ‘((((cl::detail::Wrapper<_cl_device_id*>::cl_type)((const cl::detail::Wrapper<cl_device_id*>)this)->cl::detail::Wrapper<_cl_device_id>::object) != 0u) ? (((__vector(4) __bool int)((const cl::detail::Wrapper<cl_device_id*>)this)->cl::detail::Wrapper<_cl_device_id>::referenceCountable) != (__vector(4) __bool int){0u, 0u, 0u, 0u}) : (__vector(4) int){0, 0, 0, 0})’ from ‘vector(4) int’ to ‘bool’
if (object != nullptr && referenceCountable) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: At global scope:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1877:28: error: expected type-specifier before ‘<’ token
using BuildLogType = vector<std::pair<cl::Device, typename detail::param_traits<detail::cl_program_build_info, CL_PROGRAM_BUILD_LOG>::param_type>>;
^
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:1885:5: error: ‘BuildLogType’ does not name a type
BuildLogType buildLogs;
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1887:55: error: ‘BuildLogType’ does not name a type
BuildError(cl_int err, const char * errStr, const BuildLogType &vec) : Error(err, errStr), buildLogs(vec)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1891:5: error: ‘BuildLogType’ does not name a type
BuildLogType getBuildLog() const
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In constructor ‘cl::BuildError::BuildError(cl_int, const char*, const int&)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1887:96: error: class ‘cl::BuildError’ does not have any field named ‘buildLogs’
BuildError(cl_int err, const char * errStr, const BuildLogType &vec) : Error(err, errStr), buildLogs(vec)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: At global scope:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1900:15: error: ‘BuildLogType’ does not name a type
const BuildLogType &buildLogs)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2102:15: error: expected identifier before ‘<’ token
vector* devices)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2102:15: error: expected ‘,’ or ‘...’ before ‘<’ token
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2002:69: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit Device(const cl_device_id &device, bool retainObject = false) :
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In member function ‘cl_int cl::Device::createSubDevices(const cl_device_partition_property*, _vector(4) int)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2110:9: error: expected primary-expression before ‘attribute’
vector<cl_device_id> ids(n);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2111:58: error: ‘ids’ was not declared in this scope
err = clCreateSubDevices(object, properties, n, ids.data(), NULL);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2118:13: error: ‘devices’ was not declared in this scope
if (devices) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: At global scope:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2340:15: error: expected identifier before ‘<’ token
vector* devices) const
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2340:15: error: expected ‘,’ or ‘...’ before ‘<’ token
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2467:15: error: expected identifier before ‘<’ token
vector* platforms)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2467:15: error: expected ‘,’ or ‘...’ before ‘<’ token
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2274:75: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit Platform(const cl_platform_id &platform, bool retainObject = false) :
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In static member function ‘static void cl::Platform::makeDefault()’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2226:13: error: expected primary-expression before ‘attribute’
vector<cl_platform_id> ids(n);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2227:41: error: ‘ids’ was not declared in this scope
err = ::clGetPlatformIDs(n, ids.data(), NULL);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In member function ‘cl_int cl::Platform::getDevices(cl_device_type, _vector(4) int) const’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2343:13: error: ‘devices’ was not declared in this scope
if( devices == NULL ) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2351:9: error: expected primary-expression before ‘attribute’
vector<cl_device_id> ids(n);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2352:50: error: ‘ids’ was not declared in this scope
err = ::clGetDeviceIDs(object, type, n, ids.data(), NULL);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2361:13: error: ‘devices’ was not declared in this scope
if (devices) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In static member function ‘static cl_int cl::Platform::get(__vector(4) int)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2471:13: error: ‘platforms’ was not declared in this scope
if( platforms == NULL ) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2480:9: error: expected primary-expression before ‘attribute’
vector<cl_platform_id> ids(n);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2481:37: error: ‘ids’ was not declared in this scope
err = ::clGetPlatformIDs(n, ids.data(), NULL);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2486:13: error: ‘platforms’ was not declared in this scope
if (platforms) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: At global scope:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2644:21: error: expected ‘,’ or ‘...’ before ‘<’ token
const vector& devices,
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2894:15: error: expected identifier before ‘<’ token
vector* formats) const
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2894:15: error: expected ‘,’ or ‘...’ before ‘<’ token
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2850:69: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit Context(const cl_context& context, bool retainObject = false) :
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In constructor ‘cl::Context::Context(__vector(4) int)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2656:32: error: ‘devices’ was not declared in this scope
size_type numDevices = devices.size();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2657:9: error: expected primary-expression before ‘attribute’
vector<cl_device_id> deviceIDs(numDevices);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2660:13: error: ‘deviceIDs’ was not declared in this scope
deviceIDs[deviceIndex] = (devices[deviceIndex])();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2664:13: error: ‘properties’ was not declared in this scope
properties, (cl_uint) numDevices,
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2665:13: error: ‘deviceIDs’ was not declared in this scope
deviceIDs.data(),
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2666:13: error: ‘notifyFptr’ was not declared in this scope
notifyFptr, data, &error);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2666:25: error: ‘data’ was not declared in this scope
notifyFptr, data, &error);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2669:13: error: ‘err’ was not declared in this scope
if (err != NULL) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In constructor ‘cl::Context::Context(cl_device_type, cl_context_properties*, void ()(const char, const void*, cl::size_type, void*), void*, cl_int*)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2722:13: error: expected primary-expression before ‘attribute’
vector platforms;
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2723:36: error: ‘platforms’ was not declared in this scope
error = Platform::get(&platforms);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2736:17: error: expected primary-expression before ‘attribute’
vector devices;
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2742:60: error: ‘devices’ was not declared in this scope
error = platforms[i].getDevices(type, &devices);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2758:21: error: ‘devices’ was not declared in this scope
if (devices.size() > 0) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In member function ‘cl_int cl::Context::getSupportedImageFormats(cl_mem_flags, cl_mem_object_type, __vector(4) int) const’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2898:14: error: ‘formats’ was not declared in this scope
if (!formats) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2914:13: error: expected primary-expression before ‘attribute’
vector value(numEntries);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2920:35: error: ‘value’ was not declared in this scope
(cl_image_format*)value.data(),
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2926:13: error: ‘formats’ was not declared in this scope
formats->assign(begin(value), end(value));
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2926:40: error: ‘begin’ was not declared in this scope
formats->assign(begin(value), end(value));
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2926:40: note: suggested alternative:
In file included from /usr/include/c++/5/string:51:0,
from /usr/include/c++/5/bits/locale_classes.h:40,
from /usr/include/c++/5/bits/ios_base.h:41,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/istream:38,
from /usr/include/c++/5/fstream:38,
from /home/cuttie/ethminer/libethash-cl/ethash_cl_miner.cpp:28:
/usr/include/c++/5/bits/range_access.h:87:5: note: ‘std::begin’
begin(_Tp (&__arr)[_Nm])
^
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:2926:52: error: ‘end’ was not declared in this scope
formats->assign(begin(value), end(value));
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2926:52: note: suggested alternative:
In file included from /usr/include/c++/5/string:51:0,
from /usr/include/c++/5/bits/locale_classes.h:40,
from /usr/include/c++/5/bits/ios_base.h:41,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/istream:38,
from /usr/include/c++/5/fstream:38,
from /home/cuttie/ethminer/libethash-cl/ethash_cl_miner.cpp:28:
/usr/include/c++/5/bits/range_access.h:97:5: note: ‘std::end’
end(_Tp (&__arr)[Nm])
^
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:2930:13: error: ‘formats’ was not declared in this scope
formats->clear();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In static member function ‘static void cl::Device::makeDefault()’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2955:60: error: no matching function for call to ‘cl::Context::getInfo()’
default = context.getInfo<CL_CONTEXT_DEVICES>()[0];
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2866:12: note: candidate: template cl_int cl::Context::getInfo(cl_context_info, T*) const
cl_int getInfo(cl_context_info name, T* param) const
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2866:12: note: template argument deduction/substitution failed:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2876:5: note: candidate: template typename cl::detail::param_traits<cl::detail::cl_context_info, name>::param_type cl::Context::getInfo(cl_int*) const
getInfo(cl_int* err = NULL) const
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2876:5: note: template argument deduction/substitution failed:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In substitution of ‘template typename cl::detail::param_traits<cl::detail::cl_context_info, name>::param_type cl::Context::getInfo(cl_int*) const [with int name = 4225]’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2955:60: required from here
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2876:5: error: no type named ‘param_type’ in ‘struct cl::detail::param_traits<cl::detail::cl_context_info, 4225>’
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: At global scope:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:3088:31: error: expected ‘,’ or ‘...’ before ‘<’ token
waitForEvents(const vector& events)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2992:63: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit Event(const cl_event& event, bool retainObject = false) :
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In static member function ‘static cl_int cl::Event::waitForEvents(__vector(4) int)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:3092:27: error: ‘events’ was not declared in this scope
(cl_uint) events.size(), (events.size() > 0) ? (cl_event*)&events.front() : NULL),
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: At global scope:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:3145:27: error: expected ‘,’ or ‘...’ before ‘<’ token
WaitForEvents(const vector& events)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In function ‘cl_int cl::WaitForEvents(__vector(4) int)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:3149:23: error: ‘events’ was not declared in this scope
(cl_uint) events.size(), (events.size() > 0) ? (cl_event*)&events.front() : NULL),
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: At global scope:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:3783:63: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit Buffer(const cl_mem& buffer, bool retainObject = false) :
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:4008:65: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit BufferGL(const cl_mem& buffer, bool retainObject = false) :
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:4105:71: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit BufferRenderGL(const cl_mem& buffer, bool retainObject = false) :
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:4176:61: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit Image(const cl_mem& image, bool retainObject = false) :
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:4296:65: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit Image1D(const cl_mem& image1D, bool retainObject = false) :
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:4384:71: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit Image1DBuffer(const cl_mem& image1D, bool retainObject = false) :
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:4472:73: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit Image1DArray(const cl_mem& imageArray, bool retainObject = false) :
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:4711:65: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit Image2D(const cl_mem& image2D, bool retainObject = false) :
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In constructor ‘cl::Image2D::Image2D(const cl::Context&, cl_mem_flags, cl::ImageFormat, cl::size_type, cl::size_type, cl::size_type, void*, cl_int*)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:4544:28: error: cannot convert ‘bool’ to ‘__vector(4) __bool int’ in assignment
useCreateImage = (version >= 0x10002); // OpenCL 1.2 or above
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:4553:27: error: could not convert ‘useCreateImage’ from ‘__vector(4) __bool int’ to ‘bool’
if (useCreateImage)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:4579:28: error: could not convert ‘(useCreateImage == (__vector(4) __bool int){0u, 0u, 0u, 0u})’ from ‘__vector(4) int’ to ‘bool’
if (!useCreateImage)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: At global scope:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:4807:65: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit Image2DGL(const cl_mem& image, bool retainObject = false) :
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:4905:73: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit Image2DArray(const cl_mem& imageArray, bool retainObject = false) : Image(imageArray, retainObject) { }
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:5036:65: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit Image3D(const cl_mem& image3D, bool retainObject = false) :
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In constructor ‘cl::Image3D::Image3D(const cl::Context&, cl_mem_flags, cl::ImageFormat, cl::size_type, cl::size_type, cl::size_type, cl::size_type, cl::size_type, void*, cl_int*)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:4975:28: error: cannot convert ‘bool’ to ‘__vector(4) __bool int’ in assignment
useCreateImage = (version >= 0x10002); // OpenCL 1.2 or above
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:4984:27: error: could not convert ‘useCreateImage’ from ‘__vector(4) __bool int’ to ‘bool’
if (useCreateImage)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:5012:28: error: could not convert ‘(useCreateImage == (__vector(4) __bool int){0u, 0u, 0u, 0u})’ from ‘__vector(4) int’ to ‘bool’
if (!useCreateImage)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: At global scope:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:5128:65: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit Image3DGL(const cl_mem& image, bool retainObject = false) :
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:5213:63: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit ImageGL(const cl_mem& image, bool retainObject = false) :
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:5459:69: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit Sampler(const cl_sampler& sampler, bool retainObject = false) :
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:5684:66: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit Kernel(const cl_kernel& kernel, bool retainObject = false) :
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:5979:19: error: expected unqualified-id before ‘<’ token
typedef vector<vector> Binaries;
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:5980:19: error: expected unqualified-id before ‘<’ token
typedef vector Sources;
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6067:15: error: ‘Sources’ does not name a type
const Sources& sources,
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6103:15: error: ‘Sources’ does not name a type
const Sources& sources,
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6153:21: error: expected ‘,’ or ‘...’ before ‘<’ token
const vector& devices,
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6217:21: error: expected ‘,’ or ‘...’ before ‘<’ token
const vector& devices,
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6215:5: error: ‘cl::Program::Program(const cl::Context&, __vector(4) int)’ cannot be overloaded
Program(
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6151:5: error: with ‘cl::Program::Program(const cl::Context&, __vector(4) int)’
Program(
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6291:21: error: expected ‘,’ or ‘...’ before ‘<’ token
const vector& devices,
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6402:11: error: expected unqualified-id before ‘<’ token
vector<std::pair<cl::Device, typename detail::param_traits<detail::cl_program_build_info, name>::param_type>>
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6440:32: error: expected identifier before ‘<’ token
cl_int createKernels(vector* kernels)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6440:32: error: expected ‘,’ or ‘...’ before ‘<’ token
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:5988:22: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
bool build = false,
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6028:22: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
bool build = false,
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6253:69: error: could not convert ‘false’ from ‘bool’ to ‘__vector(4) __bool int’
explicit Program(const cl_program& program, bool retainObject = false) :
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In constructor ‘cl::Program::Program(const string&, __vector(4) __bool int, cl_int*)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6003:33: error: could not convert ‘((error == 0) ? (build != (__vector(4) __bool int){0u, 0u, 0u, 0u}) : (__vector(4) int){0, 0, 0, 0})’ from ‘__vector(4) int’ to ‘bool’
if (error == CL_SUCCESS && build) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6017:100: error: no matching function for call to ‘cl::Program::getBuildInfo()’
detail::buildErrHandler(error, __BUILD_PROGRAM_ERR, getBuildInfo<CL_PROGRAM_BUILD_LOG>());
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6374:12: note: candidate: template cl_int cl::Program::getBuildInfo(const cl::Device&, cl_program_build_info, T*) const
cl_int getBuildInfo(
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6374:12: note: template argument deduction/substitution failed:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6385:5: note: candidate: template typename cl::detail::param_traits<cl::detail::cl_program_build_info, name>::param_type cl::Program::getBuildInfo(const cl::Device&, cl_int*) const
getBuildInfo(const Device& device, cl_int* err = NULL) const
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6385:5: note: template argument deduction/substitution failed:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6017:100: note: candidate expects 2 arguments, 0 provided
detail::buildErrHandler(error, __BUILD_PROGRAM_ERR, getBuildInfo<CL_PROGRAM_BUILD_LOG>());
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In constructor ‘cl::Program::Program(const cl::Context&, const string&, __vector(4) __bool int, cl_int*)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6041:33: error: could not convert ‘((error == 0) ? (build != (__vector(4) __bool int){0u, 0u, 0u, 0u}) : (__vector(4) int){0, 0, 0, 0})’ from ‘__vector(4) int’ to ‘bool’
if (error == CL_SUCCESS && build) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6054:100: error: no matching function for call to ‘cl::Program::getBuildInfo()’
detail::buildErrHandler(error, __BUILD_PROGRAM_ERR, getBuildInfo<CL_PROGRAM_BUILD_LOG>());
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6374:12: note: candidate: template cl_int cl::Program::getBuildInfo(const cl::Device&, cl_program_build_info, T*) const
cl_int getBuildInfo(
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6374:12: note: template argument deduction/substitution failed:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6385:5: note: candidate: template typename cl::detail::param_traits<cl::detail::cl_program_build_info, name>::param_type cl::Program::getBuildInfo(const cl::Device&, cl_int*) const
getBuildInfo(const Device& device, cl_int* err = NULL) const
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6385:5: note: template argument deduction/substitution failed:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6054:100: note: candidate expects 2 arguments, 0 provided
detail::buildErrHandler(error, __BUILD_PROGRAM_ERR, getBuildInfo<CL_PROGRAM_BUILD_LOG>());
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In constructor ‘cl::Program::Program(const int&, cl_int*)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6073:48: error: request for member ‘size’ in ‘sources’, which is of non-class type ‘const int’
const size_type n = (size_type)sources.size();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6075:9: error: expected primary-expression before ‘attribute’
vector<size_type> lengths(n);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6076:9: error: expected primary-expression before ‘attribute’
vector<const char*> strings(n);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6080:13: error: ‘strings’ was not declared in this scope
strings[i] = sources[(int)i].data();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6080:40: error: invalid types ‘const int[int]’ for array subscript
strings[i] = sources[(int)i].data();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6081:13: error: ‘lengths’ was not declared in this scope
lengths[i] = sources[(int)i].length();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6081:40: error: invalid types ‘const int[int]’ for array subscript
lengths[i] = sources[(int)i].length();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6089:36: error: ‘strings’ was not declared in this scope
context(), (cl_uint)n, strings.data(), lengths.data(), &error);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6089:52: error: ‘lengths’ was not declared in this scope
context(), (cl_uint)n, strings.data(), lengths.data(), &error);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In constructor ‘cl::Program::Program(const cl::Context&, const int&, cl_int*)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6108:48: error: request for member ‘size’ in ‘sources’, which is of non-class type ‘const int’
const size_type n = (size_type)sources.size();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6110:9: error: expected primary-expression before ‘attribute’
vector<size_type> lengths(n);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6111:9: error: expected primary-expression before ‘attribute’
vector<const char*> strings(n);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6115:13: error: ‘strings’ was not declared in this scope
strings[i] = sources[(int)i].data();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6115:40: error: invalid types ‘const int[int]’ for array subscript
strings[i] = sources[(int)i].data();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6116:13: error: ‘lengths’ was not declared in this scope
lengths[i] = sources[(int)i].length();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6116:40: error: invalid types ‘const int[int]’ for array subscript
lengths[i] = sources[(int)i].length();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6124:36: error: ‘strings’ was not declared in this scope
context(), (cl_uint)n, strings.data(), lengths.data(), &error);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6124:52: error: ‘lengths’ was not declared in this scope
context(), (cl_uint)n, strings.data(), lengths.data(), &error);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In constructor ‘cl::Program::Program(const cl::Context&, __vector(4) int)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6160:38: error: ‘devices’ was not declared in this scope
const size_type numDevices = devices.size();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6163:12: error: ‘binaries’ was not declared in this scope
if(binaries.size() != numDevices) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6166:17: error: ‘err’ was not declared in this scope
if (err != NULL) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6173:9: error: expected primary-expression before ‘attribute’
vector<size_type> lengths(numDevices);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6174:9: error: expected primary-expression before ‘attribute’
vector<const unsigned char*> images(numDevices);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6177:13: error: ‘images’ was not declared in this scope
images[i] = binaries[i].data();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6177:25: error: ‘binaries’ was not declared in this scope
images[i] = binaries[i].data();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6178:13: error: ‘lengths’ was not declared in this scope
lengths[i] = binaries[(int)i].size();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6187:9: error: expected primary-expression before ‘attribute’
vector<cl_device_id> deviceIDs(numDevices);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6189:13: error: ‘deviceIDs’ was not declared in this scope
deviceIDs[deviceIndex] = (devices[deviceIndex])();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6192:12: error: ‘binaryStatus’ was not declared in this scope
if(binaryStatus) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6198:13: error: ‘deviceIDs’ was not declared in this scope
deviceIDs.data(),
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6199:13: error: ‘lengths’ was not declared in this scope
lengths.data(), images.data(), (binaryStatus != NULL && numDevices > 0)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6199:29: error: ‘images’ was not declared in this scope
lengths.data(), images.data(), (binaryStatus != NULL && numDevices > 0)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6199:45: error: ‘binaryStatus’ was not declared in this scope
lengths.data(), images.data(), (binaryStatus != NULL && numDevices > 0)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6204:13: error: ‘err’ was not declared in this scope
if (err != NULL) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In constructor ‘cl::Program::Program(const cl::Context&, __vector(4) int)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6224:32: error: ‘devices’ was not declared in this scope
size_type numDevices = devices.size();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6225:9: error: expected primary-expression before ‘attribute’
vector<cl_device_id> deviceIDs(numDevices);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6227:13: error: ‘deviceIDs’ was not declared in this scope
deviceIDs[deviceIndex] = (devices[deviceIndex])();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6233:13: error: ‘deviceIDs’ was not declared in this scope
deviceIDs.data(),
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6234:13: error: ‘kernelNames’ was not declared in this scope
kernelNames.c_str(),
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6238:13: error: ‘err’ was not declared in this scope
if (err != NULL) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In member function ‘cl_int cl::Program::build(__vector(4) int) const’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6296:32: error: ‘devices’ was not declared in this scope
size_type numDevices = devices.size();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6297:9: error: expected primary-expression before ‘attribute’
vector<cl_device_id> deviceIDs(numDevices);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6300:13: error: ‘deviceIDs’ was not declared in this scope
deviceIDs[deviceIndex] = (devices[deviceIndex])();
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6307:13: error: ‘deviceIDs’ was not declared in this scope
deviceIDs.data(),
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6308:13: error: ‘options’ was not declared in this scope
options,
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6309:13: error: ‘notifyFptr’ was not declared in this scope
notifyFptr,
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6310:13: error: ‘data’ was not declared in this scope
data);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6312:108: error: no matching function for call to ‘cl::Program::getBuildInfo() const’
return detail::buildErrHandler(buildError, __BUILD_PROGRAM_ERR, getBuildInfo<CL_PROGRAM_BUILD_LOG>());
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6374:12: note: candidate: template cl_int cl::Program::getBuildInfo(const cl::Device&, cl_program_build_info, T*) const
cl_int getBuildInfo(
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6374:12: note: template argument deduction/substitution failed:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6385:5: note: candidate: template typename cl::detail::param_traits<cl::detail::cl_program_build_info, name>::param_type cl::Program::getBuildInfo(const cl::Device&, cl_int*) const
getBuildInfo(const Device& device, cl_int* err = NULL) const
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6385:5: note: template argument deduction/substitution failed:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6312:108: note: candidate expects 2 arguments, 0 provided
return detail::buildErrHandler(buildError, __BUILD_PROGRAM_ERR, getBuildInfo<CL_PROGRAM_BUILD_LOG>());
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In member function ‘cl_int cl::Program::build(const char*, void ()(cl_program, void), void*) const’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6329:108: error: no matching function for call to ‘cl::Program::getBuildInfo() const’
return detail::buildErrHandler(buildError, __BUILD_PROGRAM_ERR, getBuildInfo<CL_PROGRAM_BUILD_LOG>());
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6374:12: note: candidate: template cl_int cl::Program::getBuildInfo(const cl::Device&, cl_program_build_info, T*) const
cl_int getBuildInfo(
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6374:12: note: template argument deduction/substitution failed:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6385:5: note: candidate: template typename cl::detail::param_traits<cl::detail::cl_program_build_info, name>::param_type cl::Program::getBuildInfo(const cl::Device&, cl_int*) const
getBuildInfo(const Device& device, cl_int* err = NULL) const
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6385:5: note: template argument deduction/substitution failed:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6329:108: note: candidate expects 2 arguments, 0 provided
return detail::buildErrHandler(buildError, __BUILD_PROGRAM_ERR, getBuildInfo<CL_PROGRAM_BUILD_LOG>());
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In member function ‘cl_int cl::Program::compile(const char*, void ()(cl_program, void), void*) const’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6348:105: error: no matching function for call to ‘cl::Program::getBuildInfo() const’
return detail::buildErrHandler(error, __COMPILE_PROGRAM_ERR, getBuildInfo<CL_PROGRAM_BUILD_LOG>());
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6374:12: note: candidate: template cl_int cl::Program::getBuildInfo(const cl::Device&, cl_program_build_info, T*) const
cl_int getBuildInfo(
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6374:12: note: template argument deduction/substitution failed:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6385:5: note: candidate: template typename cl::detail::param_traits<cl::detail::cl_program_build_info, name>::param_type cl::Program::getBuildInfo(const cl::Device&, cl_int*) const
getBuildInfo(const Device& device, cl_int* err = NULL) const
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6385:5: note: template argument deduction/substitution failed:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6348:105: note: candidate expects 2 arguments, 0 provided
return detail::buildErrHandler(error, __COMPILE_PROGRAM_ERR, getBuildInfo<CL_PROGRAM_BUILD_LOG>());
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In member function ‘cl_int cl::Program::createKernels(_vector(4) int)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6448:9: error: expected primary-expression before ‘attribute’
vector<cl_kernel> value(numKernels);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6451:34: error: ‘value’ was not declared in this scope
object, numKernels, value.data(), NULL);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6456:13: error: ‘kernels’ was not declared in this scope
if (kernels) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In function ‘cl::Program cl::linkProgram(cl::Program, cl::Program, const char*, void ()(cl_program, void), void*, cl_int*)’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6505:24: error: cannot convert ‘bool’ to ‘__vector(4) __bool int’ for argument ‘2’ to ‘cl::Program::Program(_cl_program* const&, __vector(4) __bool int)’
return Program(prog);
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: At global scope:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6509:5: error: ‘cl::linkProgram’ declared as an ‘inline’ variable
vector inputPrograms,
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6509:5: error: ‘cl::Program cl::linkProgram’ redeclared as different kind of symbol
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6472:16: note: previous declaration ‘cl::Program cl::linkProgram(cl::Program, cl::Program, const char*, void ()(cl_program, void), void*, cl_int*)’
inline Program linkProgram(
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6509:5: error: expected primary-expression before ‘attribute’
vector inputPrograms,
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6510:5: error: expected primary-expression before ‘const’
const char* options = NULL,
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6511:25: error: ‘notifyFptr’ was not declared in this scope
void (CL_CALLBACK * notifyFptr)(cl_program, void ) = NULL,
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6511:47: error: expected primary-expression before ‘,’ token
void (CL_CALLBACK * notifyFptr)(cl_program, void ) = NULL,
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6511:49: error: expected primary-expression before ‘void’
void (CL_CALLBACK * notifyFptr)(cl_program, void ) = NULL,
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6512:5: error: expected primary-expression before ‘void’
void data = NULL,
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6513:11: error: expected primary-expression before ‘’ token
cl_int err = NULL)
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6513:13: error: ‘err’ was not declared in this scope
cl_int* err = NULL)
^
In file included from /home/cuttie/ethminer/libethash-cl/ethash_cl_miner.cpp:38:0:
/home/cuttie/ethminer/libethash-cl/ethash_cl_miner.h:20:27: error: expected ‘}’ before end of line
/home/cuttie/ethminer/libethash-cl/ethash_cl_miner.h:20:27: error: expected declaration before end of line
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: In instantiation of ‘cl::detail::Wrapper::Wrapper(const cl_type&, __vector(4) __bool int) [with T = _cl_platform_id*; cl::detail::Wrapper::cl_type = _cl_platform_id*]’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2275:56: required from here
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1647:9: error: could not convert ‘retainObject’ from ‘__vector(4) __bool int’ to ‘bool’
if (retainObject) {
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In instantiation of ‘cl::detail::Wrapper::Wrapper(const cl_type&, __vector(4) __bool int) [with T = _cl_context*; cl::detail::Wrapper::cl_type = _cl_context*]’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2851:55: required from here
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1647:9: error: could not convert ‘retainObject’ from ‘__vector(4) __bool int’ to ‘bool’
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In instantiation of ‘cl::detail::Wrapper::Wrapper(const cl_type&, __vector(4) __bool int) [with T = _cl_event*; cl::detail::Wrapper::cl_type = _cl_event*]’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2993:53: required from here
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1647:9: error: could not convert ‘retainObject’ from ‘__vector(4) __bool int’ to ‘bool’
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In instantiation of ‘cl::detail::Wrapper::Wrapper(const cl_type&, __vector(4) __bool int) [with T = _cl_mem*; cl::detail::Wrapper::cl_type = _cl_mem*]’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:3179:54: required from here
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1647:9: error: could not convert ‘retainObject’ from ‘__vector(4) __bool int’ to ‘bool’
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In instantiation of ‘cl::detail::Wrapper::Wrapper(const cl_type&, __vector(4) __bool int) [with T = _cl_sampler*; cl::detail::Wrapper::cl_type = _cl_sampler*]’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:5460:55: required from here
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1647:9: error: could not convert ‘retainObject’ from ‘__vector(4) __bool int’ to ‘bool’
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In instantiation of ‘cl::detail::Wrapper::Wrapper(const cl_type&, __vector(4) __bool int) [with T = _cl_kernel*; cl::detail::Wrapper::cl_type = _cl_kernel*]’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:5685:54: required from here
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1647:9: error: could not convert ‘retainObject’ from ‘__vector(4) __bool int’ to ‘bool’
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In instantiation of ‘cl::detail::Wrapper::Wrapper(const cl_type&, __vector(4) __bool int) [with T = _cl_program*; cl::detail::Wrapper::cl_type = _cl_program*]’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:6254:55: required from here
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1647:9: error: could not convert ‘retainObject’ from ‘__vector(4) __bool int’ to ‘bool’
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp: In instantiation of ‘cl_int cl::detail::getInfoHelper(Func, cl_uint, cl::string*, long int) [with Func = cl::detail::GetInfoFunctor0<int ()(_cl_platform_id, unsigned int, long unsigned int, void*, long unsigned int*), _cl_platform_id*>; cl_int = int; cl_uint = unsigned int; cl::string = std::__cxx11::basic_string]’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1444:25: required from ‘cl_int cl::detail::getInfo(Func, const Arg0&, cl_uint, T*) [with Func = int ()(_cl_platform_id, unsigned int, long unsigned int, void*, long unsigned int*); Arg0 = _cl_platform_id*; T = std::__cxx11::basic_string; cl_int = int; cl_uint = unsigned int]’
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:2316:71: required from here
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1039:32: error: ‘begin’ was not declared in this scope
param->assign(begin(value), prev(end(value)));
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1039:32: note: suggested alternative:
In file included from /usr/include/c++/5/string:51:0,
from /usr/include/c++/5/bits/locale_classes.h:40,
from /usr/include/c++/5/bits/ios_base.h:41,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/istream:38,
from /usr/include/c++/5/fstream:38,
from /home/cuttie/ethminer/libethash-cl/ethash_cl_miner.cpp:28:
/usr/include/c++/5/bits/range_access.h:87:5: note: ‘std::begin’
begin(_Tp (&__arr)[_Nm])
^
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:1039:49: error: ‘end’ was not declared in this scope
param->assign(begin(value), prev(end(value)));
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1039:49: note: suggested alternative:
In file included from /usr/include/c++/5/string:51:0,
from /usr/include/c++/5/bits/locale_classes.h:40,
from /usr/include/c++/5/bits/ios_base.h:41,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/istream:38,
from /usr/include/c++/5/fstream:38,
from /home/cuttie/ethminer/libethash-cl/ethash_cl_miner.cpp:28:
/usr/include/c++/5/bits/range_access.h:97:5: note: ‘std::end’
end(_Tp (&__arr)[_Nm])
^
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:1039:45: error: ‘prev’ was not declared in this scope
param->assign(begin(value), prev(end(value)));
^
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1039:45: note: suggested alternative:
In file included from /usr/include/c++/5/bits/stl_algobase.h:66:0,
from /usr/include/c++/5/bits/char_traits.h:39,
from /usr/include/c++/5/ios:40,
from /usr/include/c++/5/istream:38,
from /usr/include/c++/5/fstream:38,
from /home/cuttie/ethminer/libethash-cl/ethash_cl_miner.cpp:28:
/usr/include/c++/5/bits/stl_iterator_base_funcs.h:193:5: note: ‘std::prev’
prev(_BidirectionalIterator __x, typename
^
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: In member function ‘cl_int cl::detail::Wrapper<_cl_device_id*>::release() const’:
/home/cuttie/ethminer/libethash-cl/CL/cl.hpp:1858:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
libethash-cl/CMakeFiles/ethash-cl.dir/build.make:66: recipe for target 'libethash-cl/CMakeFiles/ethash-cl.dir/ethash_cl_miner.cpp.o' failed
make[2]: *** [libethash-cl/CMakeFiles/ethash-cl.dir/ethash_cl_miner.cpp.o] Error 1
CMakeFiles/Makefile2:265: recipe for target 'libethash-cl/CMakeFiles/ethash-cl.dir/all' failed
make[1]: *** [libethash-cl/CMakeFiles/ethash-cl.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2