← Back to team overview

touch-packages team mailing list archive

[Bug 1369389] Re: Suddenly, Mir FTBFS on utopic: auto_unblock_thread.h:44:46: error: no matching function for call to ‘std::thread::thread(<brace-enclosed initializer list>)’

 

Looks like the offending change was:

gcc-4.9 (4.9.1-14ubuntu2) utopic; urgency=medium

  * Merge with Debian; remaining changes:
    - Build from upstream sources.

gcc-4.9 (4.9.1-14) unstable; urgency=medium

  * Update to SVN 20140912 (r215228) from the gcc-4_9-branch.
  * Update the Linaro support to the 4.9-2014.09 release.
  * Fix installation of the libstdc++ documentation. Closes: #760872.
 -- Matthias Klose <doko@xxxxxxxxxx>   Fri, 12 Sep 2014 15:20:06 +0200

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mir in Ubuntu.
https://bugs.launchpad.net/bugs/1369389

Title:
  Suddenly, Mir FTBFS on utopic: auto_unblock_thread.h:44:46: error: no
  matching function for call to ‘std::thread::thread(<brace-enclosed
  initializer list>)’

Status in Mir:
  In Progress
Status in Mir 0.7 series:
  In Progress
Status in “mir” package in Ubuntu:
  Triaged

Bug description:
  Since updating my utopic build machine today, Mir no longer builds:

  In file included from /home/dan/bzr/mir/dev/tests/unit-tests/compositor/test_buffer_queue.cpp:26:0:
  /home/dan/bzr/mir/dev/tests/include/mir_test/auto_unblock_thread.h: In instantiation of ‘mir::test::AutoUnblockThread::AutoUnblockThread(const std::function<void()>&, Callable&&, Args&& ...) [with Callable = void (&)(mir::compositor::BufferQueue&, std::atomic<bool>&); Args = {std::reference_wrapper<mir::compositor::BufferQueue>, std::reference_wrapper<std::atomic<bool> >}]’:
  /home/dan/bzr/mir/dev/tests/unit-tests/compositor/test_buffer_queue.cpp:426:59:   required from here
  /home/dan/bzr/mir/dev/tests/include/mir_test/auto_unblock_thread.h:44:46: error: no matching function for call to ‘std::thread::thread(<brace-enclosed initializer list>)’
           : unblock{unblock}, thread{f, args...}
                                                ^
  /home/dan/bzr/mir/dev/tests/include/mir_test/auto_unblock_thread.h:44:46: note: candidates are:
  In file included from /home/dan/bzr/mir/dev/tests/include/mir_test/auto_unblock_thread.h:29:0,
                   from /home/dan/bzr/mir/dev/tests/unit-tests/compositor/test_buffer_queue.cpp:26:
  /usr/include/c++/4.9/thread:133:7: note: std::thread::thread(_Callable&&, _Args&& ...) [with _Callable = void (&)(mir::compositor::BufferQueue&, std::atomic<bool>&); _Args = {std::reference_wrapper<mir::compositor::BufferQueue>&&&, std::reference_wrapper<std::atomic<bool> >&&&}]
         thread(_Callable&& __f, _Args&&... __args)
         ^
  /usr/include/c++/4.9/thread:133:7: note:   no known conversion for argument 2 from ‘std::reference_wrapper<mir::compositor::BufferQueue>&&’ to ‘std::reference_wrapper<mir::compositor::BufferQueue>&&&’
  /usr/include/c++/4.9/thread:128:5: note: std::thread::thread(std::thread&&)
       thread(thread&& __t) noexcept
       ^
  /usr/include/c++/4.9/thread:128:5: note:   candidate expects 1 argument, 3 provided
  /usr/include/c++/4.9/thread:122:5: note: std::thread::thread()
       thread() noexcept = default;
       ^

  ....

To manage notifications about this bug go to:
https://bugs.launchpad.net/mir/+bug/1369389/+subscriptions