pyqparse compilation error (SMtoM21) - Linux
(monoparse was successfully compiled)
make pyqparse
[ 97%] Building CXX object CMakeFiles/pyqparse.dir/src/scoremodel/export/M21/SMtoM21.cpp.o
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33:0,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/bits/forward_list.h:40,
from /usr/include/c++/7/forward_list:38,
from /home/scorelibadmin/qparselib/extern/pybind11/include/pybind11/detail/common.h:246,
from /home/scorelibadmin/qparselib/extern/pybind11/include/pybind11/attr.h:13,
from /home/scorelibadmin/qparselib/extern/pybind11/include/pybind11/detail/class.h:12,
from /home/scorelibadmin/qparselib/extern/pybind11/include/pybind11/pybind11.h:13,
from /home/scorelibadmin/qparselib/src/scoremodel/export/M21/SMtoM21.hpp:16,
from /home/scorelibadmin/qparselib/src/scoremodel/export/M21/SMtoM21.cpp:1:
/usr/include/c++/7/ext/new_allocator.h: In instantiation of ‘class __gnu_cxx::new_allocator<const scoremodel::Clef>’:
/usr/include/c++/7/bits/allocator.h:108:11: required from ‘class std::allocator<const scoremodel::Clef>’
/usr/include/c++/7/bits/stl_vector.h:81:14: required from ‘struct std::_Vector_base<const scoremodel::Clef, std::allocator<const scoremodel::Clef> >::_Vector_impl’
/usr/include/c++/7/bits/stl_vector.h:166:20: required from ‘struct std::_Vector_base<const scoremodel::Clef, std::allocator<const scoremodel::Clef> >’
/usr/include/c++/7/bits/stl_vector.h:216:11: required from ‘class std::vector<const scoremodel::Clef>’
/home/scorelibadmin/qparselib/src/scoremodel/export/M21/SMtoM21.cpp:50:19: required from here
/usr/include/c++/7/ext/new_allocator.h:93:7: error: ‘const _Tp* __gnu_cxx::new_allocator<_Tp>::address(__gnu_cxx::new_allocator<_Tp>::const_reference) const [with _Tp = const scoremodel::Clef; __gnu_cxx::new_allocator<_Tp>::const_pointer = const scoremodel::Clef*; __gnu_cxx::new_allocator<_Tp>::const_reference = const scoremodel::Clef&]’ cannot be overloaded
address(const_reference __x) const _GLIBCXX_NOEXCEPT
^~~~~~~
/usr/include/c++/7/ext/new_allocator.h:89:7: error: with ‘_Tp* __gnu_cxx::new_allocator<_Tp>::address(__gnu_cxx::new_allocator<_Tp>::reference) const [with _Tp = const scoremodel::Clef; __gnu_cxx::new_allocator<_Tp>::pointer = const scoremodel::Clef*; __gnu_cxx::new_allocator<_Tp>::reference = const scoremodel::Clef&]’
address(reference __x) const _GLIBCXX_NOEXCEPT
^~~~~~~
/usr/include/c++/7/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::deallocate(__gnu_cxx::new_allocator<_Tp>::pointer, __gnu_cxx::new_allocator<_Tp>::size_type) [with _Tp = const scoremodel::Clef; __gnu_cxx::new_allocator<_Tp>::pointer = const scoremodel::Clef*; __gnu_cxx::new_allocator<_Tp>::size_type = long unsigned int]’:
/usr/include/c++/7/bits/alloc_traits.h:462:9: required from ‘static void std::allocator_traits<std::allocator<_Tp1> >::deallocate(std::allocator_traits<std::allocator<_Tp1> >::allocator_type&, std::allocator_traits<std::allocator<_Tp1> >::pointer, std::allocator_traits<std::allocator<_Tp1> >::size_type) [with _Tp = const scoremodel::Clef; std::allocator_traits<std::allocator<_Tp1> >::allocator_type = std::allocator<const scoremodel::Clef>; std::allocator_traits<std::allocator<_Tp1> >::pointer = const scoremodel::Clef*; std::allocator_traits<std::allocator<_Tp1> >::size_type = long unsigned int]’
/usr/include/c++/7/bits/stl_vector.h:180:19: required from ‘void std::_Vector_base<_Tp, _Alloc>::_M_deallocate(std::_Vector_base<_Tp, _Alloc>::pointer, std::size_t) [with _Tp = const scoremodel::Clef; _Alloc = std::allocator<const scoremodel::Clef>; std::_Vector_base<_Tp, _Alloc>::pointer = const scoremodel::Clef*; std::size_t = long unsigned int]’
/usr/include/c++/7/bits/vector.tcc:443:17: required from ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const scoremodel::Clef&}; _Tp = const scoremodel::Clef; _Alloc = std::allocator<const scoremodel::Clef>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<const scoremodel::Clef*, std::vector<const scoremodel::Clef> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = const scoremodel::Clef*]’
/usr/include/c++/7/bits/stl_vector.h:948:21: required from ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = const scoremodel::Clef; _Alloc = std::allocator<const scoremodel::Clef>; std::vector<_Tp, _Alloc>::value_type = const scoremodel::Clef]’
/home/scorelibadmin/qparselib/src/scoremodel/export/M21/SMtoM21.cpp:50:43: required from here
/usr/include/c++/7/ext/new_allocator.h:125:19: error: invalid conversion from ‘const void*’ to ‘void*’ [-fpermissive]
::operator delete(__p);
~~~~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/7/bits/exception_ptr.h:40:0,
from /usr/include/c++/7/exception:142,
from /home/scorelibadmin/qparselib/extern/pybind11/include/pybind11/detail/common.h:245,
from /home/scorelibadmin/qparselib/extern/pybind11/include/pybind11/attr.h:13,
from /home/scorelibadmin/qparselib/extern/pybind11/include/pybind11/detail/class.h:12,
from /home/scorelibadmin/qparselib/extern/pybind11/include/pybind11/pybind11.h:13,
from /home/scorelibadmin/qparselib/src/scoremodel/export/M21/SMtoM21.hpp:16,
from /home/scorelibadmin/qparselib/src/scoremodel/export/M21/SMtoM21.cpp:1:
/usr/include/c++/7/new:124:6: note: initializing argument 1 of ‘void operator delete(void*)’
void operator delete(void*) _GLIBCXX_USE_NOEXCEPT
^~~~~~~~
In file included from /usr/include/c++/7/memory:64:0,
from /home/scorelibadmin/qparselib/extern/pybind11/include/pybind11/detail/common.h:247,
from /home/scorelibadmin/qparselib/extern/pybind11/include/pybind11/attr.h:13,
from /home/scorelibadmin/qparselib/extern/pybind11/include/pybind11/detail/class.h:12,
from /home/scorelibadmin/qparselib/extern/pybind11/include/pybind11/pybind11.h:13,
from /home/scorelibadmin/qparselib/src/scoremodel/export/M21/SMtoM21.hpp:16,
from /home/scorelibadmin/qparselib/src/scoremodel/export/M21/SMtoM21.cpp:1:
/usr/include/c++/7/bits/stl_construct.h: In instantiation of ‘void std::_Construct(_T1*, _Args&& ...) [with _T1 = const scoremodel::Clef; _Args = {const scoremodel::Clef&}]’:
/usr/include/c++/7/bits/stl_uninitialized.h:83:18: required from ‘static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const scoremodel::Clef*; _ForwardIterator = const scoremodel::Clef*; bool _TrivialValueTypes = false]’
/usr/include/c++/7/bits/stl_uninitialized.h:134:15: required from ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const scoremodel::Clef*; _ForwardIterator = const scoremodel::Clef*]’
/usr/include/c++/7/bits/stl_uninitialized.h:289:37: required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = const scoremodel::Clef*; _ForwardIterator = const scoremodel::Clef*; _Tp = const scoremodel::Clef]’
/usr/include/c++/7/bits/stl_uninitialized.h:311:2: required from ‘_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = const scoremodel::Clef*; _ForwardIterator = const scoremodel::Clef*; _Allocator = std::allocator<const scoremodel::Clef>]’
/usr/include/c++/7/bits/vector.tcc:426:6: required from ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const scoremodel::Clef&}; _Tp = const scoremodel::Clef; _Alloc = std::allocator<const scoremodel::Clef>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<const scoremodel::Clef*, std::vector<const scoremodel::Clef> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = const scoremodel::Clef*]’
/usr/include/c++/7/bits/stl_vector.h:948:21: required from ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = const scoremodel::Clef; _Alloc = std::allocator<const scoremodel::Clef>; std::vector<_Tp, _Alloc>::value_type = const scoremodel::Clef]’
/home/scorelibadmin/qparselib/src/scoremodel/export/M21/SMtoM21.cpp:50:43: required from here
/usr/include/c++/7/bits/stl_construct.h:75:13: error: invalid static_cast from type ‘const scoremodel::Clef*’ to type ‘void*’
{ ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
^~~~~~~~~~~~~~~~~~~~~~~
cc1plus: warning: unrecognized command line option ‘-Wno-nullability-completeness’
cc1plus: warning: unrecognized command line option ‘-Wno-unused-command-line-argument’
CMakeFiles/pyqparse.dir/build.make:3337: recipe for target 'CMakeFiles/pyqparse.dir/src/scoremodel/export/M21/SMtoM21.cpp.o' failed
make[3]: *** [CMakeFiles/pyqparse.dir/src/scoremodel/export/M21/SMtoM21.cpp.o] Error 1
CMakeFiles/Makefile2:421: recipe for target 'CMakeFiles/pyqparse.dir/all' failed
make[2]: *** [CMakeFiles/pyqparse.dir/all] Error 2
CMakeFiles/Makefile2:428: recipe for target 'CMakeFiles/pyqparse.dir/rule' failed
make[1]: *** [CMakeFiles/pyqparse.dir/rule] Error 2
Makefile:124: recipe for target 'pyqparse' failed
make: *** [pyqparse] Error 2