Skip to content

Build error after fixing the bugs in CMakeList.txt #10

Closed

Description

@redrattus

[ 17%] Building CXX object CMakeFiles/fboss_agent.dir/fboss/agent/NeighborUpdater.cpp.o
/home/junhosuh/workspace/fboss/fboss/agent/NeighborUpdater.cpp: In destructor ‘virtual facebook::fboss::NeighborUpdater::~NeighborUpdater()’:
/home/junhosuh/workspace/fboss/fboss/agent/NeighborUpdater.cpp:156:37: error: no matching function for call to ‘std::vectorfolly::Future<folly::Unit >::push_back(std::remove_referencefolly::Future<void&>::type)’
stopTasks.push_back(std::move(f));
^
/home/junhosuh/workspace/fboss/fboss/agent/NeighborUpdater.cpp:156:37: note: candidates are:
In file included from /usr/include/c++/4.8/vector:64:0,
from /usr/include/c++/4.8/bits/random.h:34,
from /usr/include/c++/4.8/random:50,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from /usr/include/boost/container/detail/flat_tree.hpp:23,
from /usr/include/boost/container/flat_map.hpp:25,
from /home/junhosuh/workspace/fboss/fboss/agent/NeighborUpdater.h:12,
from /home/junhosuh/workspace/fboss/fboss/agent/NeighborUpdater.cpp:10:
/usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = folly::Futurefolly::Unit; _Alloc = std::allocatorfolly::Future<folly::Unit >; std::vector<_Tp, _Alloc>::value_type = folly::Futurefolly::Unit]
push_back(const value_type& __x)
^
/usr/include/c++/4.8/bits/stl_vector.h:901:7: note: no known conversion for argument 1 from ‘std::remove_referencefolly::Future<void&>::type {aka folly::Future}’ to ‘const value_type& {aka const folly::Futurefolly::Unit&}’
/usr/include/c++/4.8/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = folly::Futurefolly::Unit; _Alloc = std::allocatorfolly::Future<folly::Unit >; std::vector<_Tp, _Alloc>::value_type = folly::Futurefolly::Unit]
push_back(value_type&& __x)
^
/usr/include/c++/4.8/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘std::remove_referencefolly::Future<void&>::type {aka folly::Future}’ to ‘std::vectorfolly::Future<folly::Unit >::value_type&& {aka folly::Futurefolly::Unit&&}’
make[2]: *** [CMakeFiles/fboss_agent.dir/fboss/agent/NeighborUpdater.cpp.o] Error 1
make[1]: *** [CMakeFiles/fboss_agent.dir/all] Error 2
make: *** [all] Error 2

Activity

  1. changed the title [-]Build Error![/-] [+]Build error after fixing the bugs in CMakeFile.txt[/+] on Oct 6, 2015
  2. changed the title [-]Build error after fixing the bugs in CMakeFile.txt[/-] [+]Build error after fixing the bugs in CMakeList.txt[/+] on Oct 6, 2015
  3. jaymzh commented on Jan 13, 2016

    @jaymzh
    Contributor

    This should be fixed, but in addition to latest updates here you'll need this: meta/fbthrift#135

  4. added a commit that references this issue on Nov 17, 2021
  5. added a commit that references this issue on Sep 26, 2023
  6. added 2 commits that reference this issue on Aug 1, 2024
  7. added a commit that references this issue on Aug 12, 2024
  8. added a commit that references this issue on Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions