facebook / watchman

Watches files and records, or triggers actions, when they change.
https://facebook.github.io/watchman/
MIT License
12.57k stars 987 forks source link

Build fails on Ubuntu 21.10 #1016

Closed Inquisitive-ME closed 1 year ago

Inquisitive-ME commented 2 years ago

After cloning main and running ./autogen.sh the build fails: I also tried checking out different versions v2022.04.04.00 v2022.04.11.00 and v2022.04.18.00

[3/5] Building CXX object thrift/lib/cpp2/CMakeFiles/thriftcpp2.dir/server/ThriftServer.cpp.o
FAILED: thrift/lib/cpp2/CMakeFiles/thriftcpp2.dir/server/ThriftServer.cpp.o 
/usr/bin/c++ -DBOOST_ATOMIC_NO_LIB -DBOOST_CONTEXT_NO_LIB -DBOOST_FILESYSTEM_NO_LIB -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_NO_LIB -DFMT_LOCALE -DGFLAGS_IS_A_DLL=0 -DTHRIFT_HAVE_LIBSNAPPY=0 -I/tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git -I. -isystem /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/installed/gflags-BN4sTG97rmBxZLXb6MuE6AWclOa0Yl59DQ0knhYsiA4/include -isystem /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/installed/glog--zrH3Cpwd5huKOJgrPHp2aYGXGWcKNpMumo6LRvkwK8/include -isystem /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/installed/zstd-koarfpJ5WNUu9-2Vq0sSALzpaMZrqy0eqejfFnTzDhc/include -isystem /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/installed/boost-1NTZypnhew-i8tSyFhkvitAsEBc4P38kG5lW35P1heI/include -isystem /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/installed/double-conversion-1XoUlRoWiAooIhuZTNseml_0BjD5TuHV-dWPWHwTVbc/include -isystem /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/installed/libevent-ayJzudoaFvnoa230EogAXbORO9bRseDGmR-7YSdvGcA/include -isystem /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/installed/zlib-2zV-O8vsKVoVoABrFheLLUvtlje4Z04KcgF9yIvCMjk/include -isystem /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/installed/bz2-I7rwgCVeCsj5KsCXqUhT0EjZzYzBeaGynNK36rItbLU/include -isystem /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/installed/xz-zqYkA3LuipFi17GY6eWc3rYZNeiWsTQDcdNkU07ap9c/include -isystem /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/installed/lz4-MRb3VgBhzCGtW0hplz4ZN4xT-8acILJLkTnFQGr5tQ0/include -isystem /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/installed/snappy-4BQSGoPLSt3i587JagQLEP-a5LAV0VeS4a7JUH0SCfc/include -isystem /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/installed/libsodium-WMxA23ThtPEnJYMOOBSdDMWBectqvG5dALnHNLd-geg/include -isystem /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/installed/folly/include -isystem /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/installed/fmt-ovabvDwgqNu3CM8fkIUxTzXiaUkbsL2n8qJK7IhzyO0/include -isystem /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/installed/wangle/include -isystem /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/installed/fizz/include -O2 -g -DNDEBUG -std=c++17 -MD -MT thrift/lib/cpp2/CMakeFiles/thriftcpp2.dir/server/ThriftServer.cpp.o -MF thrift/lib/cpp2/CMakeFiles/thriftcpp2.dir/server/ThriftServer.cpp.o.d -o thrift/lib/cpp2/CMakeFiles/thriftcpp2.dir/server/ThriftServer.cpp.o -c /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ThriftServer.cpp
In file included from /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ThriftServer.cpp:17:
/tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ThriftServer.h: In member function ‘virtual void apache::thrift::ThriftServer::setIsOverloaded(apache::thrift::IsOverloadedFunc)’:
/tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ThriftServer.h:910:23: warning: ‘virtual void apache::thrift::BaseThriftServer::setIsOverloaded(apache::thrift::IsOverloadedFunc)’ is deprecated: Use setPreprocess instead [-Wdeprecated-declarations]
  910 |     BaseThriftServer::setIsOverloaded(std::move(isOverloaded));
      |                       ^~~~~~~~~~~~~~~
In file included from /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ThriftServer.h:53,
                 from /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ThriftServer.cpp:17:
/tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/BaseThriftServer.h:1228:60: note: declared here
 1228 |   [[deprecated("Use setPreprocess instead")]] virtual void setIsOverloaded(
      |                                                            ^~~~~~~~~~~~~~~
In file included from /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ThriftServer.cpp:17:
/tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ThriftServer.h:910:38: warning: ‘virtual void apache::thrift::BaseThriftServer::setIsOverloaded(apache::thrift::IsOverloadedFunc)’ is deprecated: Use setPreprocess instead [-Wdeprecated-declarations]
  910 |     BaseThriftServer::setIsOverloaded(std::move(isOverloaded));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ThriftServer.h:53,
                 from /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ThriftServer.cpp:17:
/tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/BaseThriftServer.h:1228:60: note: declared here
 1228 |   [[deprecated("Use setPreprocess instead")]] virtual void setIsOverloaded(
      |                                                            ^~~~~~~~~~~~~~~
In file included from /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ThriftServer.h:43,
                 from /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ThriftServer.cpp:17:
/tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/installed/folly/include/folly/lang/Badge.h: In instantiation of ‘class folly::any_badge<apache::thrift::ThriftServer>’:
/usr/include/c++/11/bits/unique_ptr.h:962:30:   required from ‘typename std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp = apache::thrift::ThriftServerStopController; _Args = {folly::badge<apache::thrift::ThriftServer>, folly::EventBase&}; typename std::_MakeUniq<_Tp>::__single_object = std::unique_ptr<apache::thrift::ThriftServerStopController>]’
/tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ThriftServer.cpp:380:55:   required from here
/tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/installed/folly/include/folly/lang/Badge.h:99:28: error: expansion pattern ‘folly::StrictDisjunction<std::is_same<OtherHolders, Holders>...>’ contains no parameter packs
   99 |   /* implicit */ constexpr any_badge(any_badge<OtherHolders...>) noexcept {}
      |                            ^~~~~~~~~
In file included from /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ThriftServer.cpp:17:
/usr/include/c++/11/bits/unique_ptr.h: In instantiation of ‘typename std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp = apache::thrift::ThriftServerStopController; _Args = {folly::badge<apache::thrift::ThriftServer>, folly::EventBase&}; typename std::_MakeUniq<_Tp>::__single_object = std::unique_ptr<apache::thrift::ThriftServerStopController>]’:
/tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ThriftServer.cpp:380:55:   required from here
/tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ThriftServer.h:135:7: note:   initializing argument 1 of ‘apache::thrift::ThriftServerStopController::ThriftServerStopController(folly::badge<apache::thrift::ThriftServer>, folly::EventBase&)’
  135 |       folly::badge<ThriftServer>, folly::EventBase& eventBase)
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/IOWorkerContext.h:24,
                 from /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/async/AsyncProcessor.h:53,
                 from /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ThriftServer.h:51,
                 from /tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ThriftServer.cpp:17:
/tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ServerConfigs.h: In member function ‘virtual apache::thrift::ResourcePoolSet& apache::thrift::server::ServerConfigs::resourcePoolSet()’:
/tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ServerConfigs.h:115:19: warning: control reaches end of non-void function [-Wreturn-type]
  115 |     LOG(FATAL) << "Unimplemented resourcePoolSet";
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ServerConfigs.h: In member function ‘virtual const apache::thrift::ResourcePoolSet& apache::thrift::server::ServerConfigs::resourcePoolSet() const’:
/tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/repos/github.com-facebook-fbthrift.git/thrift/lib/cpp2/server/ServerConfigs.h:110:19: warning: control reaches end of non-void function [-Wreturn-type]
  110 |     LOG(FATAL) << "Unimplemented resourcePoolSet const";
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
Command '['/tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/installed/cmake-IeWPXlZ8jHHC80BPdobdpV4yGkGiA_OPDNTuIjVXP80/bin/cmake', '--build', '/tmp/fbcode_builder_getdeps-ZhomeZrichardZpackagesZwatchmanZbuildZfbcode_builder/build/fbthrift', '--target', 'install', '--config', 'Release', '-j', '26']' returned non-zero exit status 1.
chadaustin commented 1 year ago

I believe this particular compilation error is fixed in the latest main branch. Please reopen if I'm wrong!