I'm trying to build cgru.3.0.0 on an updated CentOS7 with previuosly sucessfully installed the required libraries (install_depends_devel.sh) but I'm getting these errors:
Code: Select all
./build.sh
CGRU_VERSION 3.0.0 : '/root/cgru'
CGRU_REVISION 7caf6627fd8f7e25207ecb327e7539a2e542e32f
Detecting UNIX distribution...
CentOS 7 x86_64
Building on 'CentOS'
PostgreSQL found. Building with SQL.
Using POSIX-EXTENDED regular expressions.
-- Qt version 5.9.7
-- Boost version: 1.53.0
-- Found the following Boost libraries:
-- filesystem
-- system
-- python
-- Configuring done
-- Generating done
-- Build files have been written to: /root/cgru/afanasy/src/project.cmake
[ 0%] Building CXX object libafanasy/CMakeFiles/afanasy.dir/root/cgru/afanasy/src/libafanasy/address.cpp.o
...
[ 38%] Building CXX object server/CMakeFiles/afserver.dir/root/cgru/afanasy/src/server/jobaf.cpp.o
/root/cgru/afanasy/src/server/jobaf.cpp: In member function ‘void JobAf::tryTaskNext(bool, int, int)’:
/root/cgru/afanasy/src/server/jobaf.cpp:960:34: error: no matching function for call to ‘std::vector<int>::erase(std::vector<int>::const_iterator&)’
m_try_this_tasks_num.erase(tIt);
^
/root/cgru/afanasy/src/server/jobaf.cpp:960:34: note: candidates are:
In file included from /usr/include/c++/4.8.2/vector:69:0,
from /usr/include/c++/4.8.2/bits/random.h:34,
from /usr/include/c++/4.8.2/random:50,
from /usr/include/c++/4.8.2/bits/stl_algo.h:65,
from /usr/include/c++/4.8.2/algorithm:62,
from /root/cgru/afanasy/src/server/../libafanasy/name_af.h:18,
from /root/cgru/afanasy/src/server/jobaf.h:3,
from /root/cgru/afanasy/src/server/jobaf.cpp:16:
/usr/include/c++/4.8.2/bits/vector.tcc:134:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = int*]
vector<_Tp, _Alloc>::
^
/usr/include/c++/4.8.2/bits/vector.tcc:134:5: note: no known conversion for argument 1 from ‘std::vector<int>::const_iterator {aka __gnu_cxx::__normal_iterator<const int*, std::vector<int> >}’ to ‘std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}’
/usr/include/c++/4.8.2/bits/vector.tcc:146:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::iterator) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = int*]
vector<_Tp, _Alloc>::
^
/usr/include/c++/4.8.2/bits/vector.tcc:146:5: note: candidate expects 2 arguments, 1 provided
/root/cgru/afanasy/src/server/jobaf.cpp:961:35: error: no matching function for call to ‘std::vector<int>::erase(std::vector<int>::const_iterator&)’
m_try_this_blocks_num.erase(bIt);
^
/root/cgru/afanasy/src/server/jobaf.cpp:961:35: note: candidates are:
In file included from /usr/include/c++/4.8.2/vector:69:0,
from /usr/include/c++/4.8.2/bits/random.h:34,
from /usr/include/c++/4.8.2/random:50,
from /usr/include/c++/4.8.2/bits/stl_algo.h:65,
from /usr/include/c++/4.8.2/algorithm:62,
from /root/cgru/afanasy/src/server/../libafanasy/name_af.h:18,
from /root/cgru/afanasy/src/server/jobaf.h:3,
from /root/cgru/afanasy/src/server/jobaf.cpp:16:
/usr/include/c++/4.8.2/bits/vector.tcc:134:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = int*]
vector<_Tp, _Alloc>::
^
/usr/include/c++/4.8.2/bits/vector.tcc:134:5: note: no known conversion for argument 1 from ‘std::vector<int>::const_iterator {aka __gnu_cxx::__normal_iterator<const int*, std::vector<int> >}’ to ‘std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}’
/usr/include/c++/4.8.2/bits/vector.tcc:146:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::iterator) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = int*]
vector<_Tp, _Alloc>::
^
/usr/include/c++/4.8.2/bits/vector.tcc:146:5: note: candidate expects 2 arguments, 1 provided
make[2]: *** [server/CMakeFiles/afserver.dir/root/cgru/afanasy/src/server/jobaf.cpp.o] Error 1
make[1]: *** [server/CMakeFiles/afserver.dir/all] Error 2
make: *** [all] Error 2
Thanks in advance!