[Cupt-devel] Bug#730974: cupt: FTBFS on armel: src/internal/worker/metadata.cpp:1070:101: error: invalid use of incomplete type 'class std::future<bool>'

Andreas Beckmann anbe at debian.org
Sat Nov 30 17:24:53 UTC 2013


Package: cupt
Version: 2.6.3
Severity: serious

Hi,

cupt FTBFS on armel (just verified b ymanually rebuilding it on abel):

https://buildd.debian.org/status/fetch.php?pkg=cupt&arch=armel&ver=2.6.3&stamp=1382566839

[ 22%] Building CXX object cpp/lib/CMakeFiles/libcupt3.dir/src/internal/worker/metadata.cpp.o
/«PKGBUILDDIR»/cpp/lib/src/internal/worker/metadata.cpp: In member function 'bool cupt::internal::MetadataWorker::p_runMetadataUpdateThreads(const std::shared_ptr<cupt::download::Progress>&)':
/«PKGBUILDDIR»/cpp/lib/src/internal/worker/metadata.cpp:1070:101: error: invalid use of incomplete type 'class std::future<bool>'
      std::bind(&MetadataWorker::p_metadataUpdateThread, this, std::ref(downloadManager), indexEntry)));
                                                                                                     ^
In file included from /«PKGBUILDDIR»/cpp/lib/src/internal/worker/metadata.cpp:18:0:
/usr/include/c++/4.8/future:113:11: error: declaration of 'class std::future<bool>'
     class future;
           ^
/«PKGBUILDDIR»/cpp/lib/src/internal/worker/metadata.cpp:1074:35: error: invalid use of incomplete type 'class std::future<bool>'
    if (!threadReturnValues.front().get())
                                   ^
In file included from /«PKGBUILDDIR»/cpp/lib/src/internal/worker/metadata.cpp:18:0:
/usr/include/c++/4.8/future:113:11: error: declaration of 'class std::future<bool>'
     class future;
           ^
In file included from /usr/include/c++/4.8/deque:64:0,
                 from /usr/include/c++/4.8/queue:60,
                 from /«PKGBUILDDIR»/cpp/lib/src/internal/worker/metadata.cpp:21:
/usr/include/c++/4.8/bits/stl_deque.h: In instantiation of 'void std::deque<_Tp, _Alloc>::_M_destroy_data(std::deque<_Tp, _Alloc>::iterator, std::deque<_Tp, _Alloc>::iterator, const std::allocator<_CharT>&) [with _Tp = std::future<bool>; _Alloc = std::allocator<std::future<bool> >; std::deque<_Tp, _Alloc>::iterator = std::_Deque_iterator<std::future<bool>, std::future<bool>&, std::future<bool>*>]':
/usr/include/c++/4.8/bits/stl_deque.h:918:62:   required from 'std::deque<_Tp, _Alloc>::~deque() [with _Tp = std::future<bool>; _Alloc = std::allocator<std::future<bool> >]'
/«PKGBUILDDIR»/cpp/lib/src/internal/worker/metadata.cpp:1065:35:   required from here
/usr/include/c++/4.8/bits/stl_deque.h:1852:2: error: invalid use of incomplete type 'std::deque<std::future<bool>, std::allocator<std::future<bool> > >::value_type {aka class std::future<bool>}'
  if (!__has_trivial_destructor(value_type))
  ^
In file included from /«PKGBUILDDIR»/cpp/lib/src/internal/worker/metadata.cpp:18:0:
/usr/include/c++/4.8/future:113:11: error: declaration of 'std::deque<std::future<bool>, std::allocator<std::future<bool> > >::value_type {aka class std::future<bool>}'
     class future;
           ^
In file included from /usr/include/c++/4.8/deque:64:0,
                 from /usr/include/c++/4.8/queue:60,
                 from /«PKGBUILDDIR»/cpp/lib/src/internal/worker/metadata.cpp:21:
/usr/include/c++/4.8/bits/stl_deque.h: In instantiation of 'void std::deque<_Tp, _Alloc>::pop_front() [with _Tp = std::future<bool>; _Alloc = std::allocator<std::future<bool> >]':
/usr/include/c++/4.8/bits/stl_queue.h:241:2:   required from 'void std::queue<_Tp, _Sequence>::pop() [with _Tp = std::future<bool>; _Sequence = std::deque<std::future<bool>, std::allocator<std::future<bool> > >]'
/«PKGBUILDDIR»/cpp/lib/src/internal/worker/metadata.cpp:1078:27:   required from here
/usr/include/c++/4.8/bits/stl_deque.h:1424:40: error: invalid use of incomplete type 'class std::future<bool>'
      != this->_M_impl._M_start._M_last - 1)
                                        ^
In file included from /«PKGBUILDDIR»/cpp/lib/src/internal/worker/metadata.cpp:18:0:
/usr/include/c++/4.8/future:113:11: error: declaration of 'class std::future<bool>'
     class future;
           ^
In file included from /usr/include/c++/4.8/deque:64:0,
                 from /usr/include/c++/4.8/queue:60,
                 from /«PKGBUILDDIR»/cpp/lib/src/internal/worker/metadata.cpp:21:
/usr/include/c++/4.8/bits/stl_deque.h:1427:6: error: cannot increment a pointer to incomplete type 'std::future<bool>'
      ++this->_M_impl._M_start._M_cur;
      ^
/usr/include/c++/4.8/bits/stl_deque.h: In instantiation of 'void std::_Deque_base<_Tp, _Alloc>::_M_initialize_map(std::size_t) [with _Tp = std::future<bool>; _Alloc = std::allocator<std::future<bool> >; std::size_t = unsigned int]':
/usr/include/c++/4.8/bits/stl_deque.h:453:28:   required from 'std::_Deque_base<_Tp, _Alloc>::_Deque_base() [with _Tp = std::future<bool>; _Alloc = std::allocator<std::future<bool> >]'
/usr/include/c++/4.8/bits/stl_deque.h:783:15:   required from 'std::deque<_Tp, _Alloc>::deque() [with _Tp = std::future<bool>; _Alloc = std::allocator<std::future<bool> >]'
/«PKGBUILDDIR»/cpp/lib/src/internal/worker/metadata.cpp:1065:35:   required from here
/usr/include/c++/4.8/bits/stl_deque.h:584:74: error: invalid application of 'sizeof' to incomplete type 'std::future<bool>'
       const size_t __num_nodes = (__num_elements/ __deque_buf_size(sizeof(_Tp))
                                                                          ^
/usr/include/c++/4.8/bits/stl_deque.h:615:31: error: invalid application of 'sizeof' to incomplete type 'std::future<bool>'
      % __deque_buf_size(sizeof(_Tp)));
                               ^
/usr/include/c++/4.8/bits/stl_deque.h: In instantiation of 'void std::_Deque_base<_Tp, _Alloc>::_M_deallocate_node(_Tp*) [with _Tp = std::future<bool>; _Alloc = std::allocator<std::future<bool> >]':
/usr/include/c++/4.8/bits/stl_deque.h:642:25:   required from 'void std::_Deque_base<_Tp, _Alloc>::_M_destroy_nodes(_Tp**, _Tp**) [with _Tp = std::future<bool>; _Alloc = std::allocator<std::future<bool> >]'
/usr/include/c++/4.8/bits/stl_deque.h:566:42:   required from 'std::_Deque_base<_Tp, _Alloc>::~_Deque_base() [with _Tp = std::future<bool>; _Alloc = std::allocator<std::future<bool> >]'
/usr/include/c++/4.8/bits/stl_deque.h:783:15:   required from 'std::deque<_Tp, _Alloc>::deque() [with _Tp = std::future<bool>; _Alloc = std::allocator<std::future<bool> >]'
/«PKGBUILDDIR»/cpp/lib/src/internal/worker/metadata.cpp:1065:35:   required from here
/usr/include/c++/4.8/bits/stl_deque.h:539:65: error: invalid application of 'sizeof' to incomplete type 'std::future<bool>'
  _M_impl._Tp_alloc_type::deallocate(__p, __deque_buf_size(sizeof(_Tp)));
                                                                 ^
make[3]: *** [cpp/lib/CMakeFiles/libcupt3.dir/src/internal/worker/metadata.cpp.o] Error 1


Andreas



More information about the Cupt-devel mailing list