Skip to content

Instantly share code, notes, and snippets.

@crackcomm
Created November 2, 2018 17:00
Show Gist options
  • Save crackcomm/b71d7f1e546fdb1cd2bf43456684bd49 to your computer and use it in GitHub Desktop.
Save crackcomm/b71d7f1e546fdb1cd2bf43456684bd49 to your computer and use it in GitHub Desktop.
[1/51] Creating pkg-config file
[2/51] Building CXX object src/third_party/smf/src/core/CMakeFiles/smf.dir/rpc_letter.cc.o
[3/51] Building CXX object src/third_party/smf/src/core/CMakeFiles/smf.dir/random.cc.o
[4/51] Building CXX object src/third_party/smf/src/smfc/CMakeFiles/smfc.dir/cpp_generator.cc.o
[5/51] Building CXX object src/third_party/smf/src/core/CMakeFiles/smf.dir/compression.cc.o
[6/51] Building CXX object src/third_party/smf/src/smfc/CMakeFiles/smfc.dir/go_generator.cc.o
[7/51] Building CXX object src/third_party/smf/src/smfc/CMakeFiles/smfc.dir/main.cc.o
[8/51] Building CXX object src/third_party/smf/src/smfc/CMakeFiles/smfc.dir/codegen.cc.o
[9/51] Linking CXX executable src/third_party/smf/src/smfc/smfc
Using built-in specs.
COLLECT_GCC=/usr/bin/c++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-18+deb9u1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/6/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/6/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-O3' '-D' 'NDEBUG' '-v' '-rdynamic' '-o' 'src/third_party/smf/src/smfc/smfc' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/usr/lib/gcc/x86_64-linux-gnu/6/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/6/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper -plugin-opt=-fresolution=/tmp/cc94NHnT.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o src/third_party/smf/src/smfc/smfc /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/6/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/6 -L/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/6/../../.. src/third_party/smf/src/smfc/CMakeFiles/smfc.dir/codegen.cc.o src/third_party/smf/src/smfc/CMakeFiles/smfc.dir/cpp_generator.cc.o src/third_party/smf/src/smfc/CMakeFiles/smfc.dir/go_generator.cc.o src/third_party/smf/src/smfc/CMakeFiles/smfc.dir/main.cc.o src/third_party/smf/src/third_party/flatbuffers/libflatbuffers.a -lboost_system -lboost_filesystem -lgflags -lglog -lpthread -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/6/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crtn.o
COLLECT_GCC_OPTIONS='-O3' '-D' 'NDEBUG' '-v' '-rdynamic' '-o' 'src/third_party/smf/src/smfc/smfc' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
[10/51] Building CXX object src/third_party/smf/src/third_party/google_benchmark/src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.o
[11/51] Building CXX object src/third_party/smf/src/third_party/googletest/googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[12/51] Building CXX object src/third_party/smf/src/core/CMakeFiles/smf.dir/rpc_envelope.cc.o
[13/51] Building CXX object src/third_party/smf/src/third_party/google_benchmark/src/CMakeFiles/benchmark.dir/colorprint.cc.o
[14/51] Building CXX object src/third_party/smf/src/third_party/google_benchmark/src/CMakeFiles/benchmark.dir/commandlineflags.cc.o
[15/51] Building CXX object src/third_party/smf/src/core/CMakeFiles/smf.dir/rpc_handle_router.cc.o
[16/51] Building CXX object src/third_party/smf/src/third_party/google_benchmark/src/CMakeFiles/benchmark.dir/complexity.cc.o
[17/51] Building CXX object src/third_party/smf/src/third_party/google_benchmark/src/CMakeFiles/benchmark.dir/benchmark.cc.o
[18/51] Building CXX object src/third_party/smf/src/core/CMakeFiles/smf.dir/rpc_connection_limits.cc.o
[19/51] Building CXX object src/third_party/smf/src/third_party/google_benchmark/src/CMakeFiles/benchmark.dir/console_reporter.cc.o
[20/51] Building CXX object src/third_party/smf/src/third_party/google_benchmark/src/CMakeFiles/benchmark.dir/counter.cc.o
[21/51] Building CXX object src/third_party/smf/src/third_party/google_benchmark/src/CMakeFiles/benchmark.dir/csv_reporter.cc.o
[22/51] Building CXX object src/third_party/smf/src/third_party/google_benchmark/src/CMakeFiles/benchmark.dir/json_reporter.cc.o
[23/51] Building CXX object src/third_party/smf/src/third_party/google_benchmark/src/CMakeFiles/benchmark.dir/sleep.cc.o
[24/51] Building CXX object src/third_party/smf/src/third_party/google_benchmark/src/CMakeFiles/benchmark.dir/reporter.cc.o
[25/51] Building CXX object src/third_party/smf/src/third_party/google_benchmark/src/CMakeFiles/benchmark.dir/timers.cc.o
[26/51] Building CXX object src/third_party/smf/src/third_party/google_benchmark/src/CMakeFiles/benchmark.dir/string_util.cc.o
[27/51] Building CXX object src/third_party/smf/src/third_party/google_benchmark/src/CMakeFiles/benchmark.dir/statistics.cc.o
[28/51] Building CXX object src/third_party/smf/src/third_party/google_benchmark/src/CMakeFiles/benchmark.dir/benchmark_register.cc.o
[29/51] Building CXX object src/third_party/smf/src/third_party/google_benchmark/src/CMakeFiles/benchmark.dir/sysinfo.cc.o
[30/51] Linking CXX static library src/third_party/smf/src/third_party/google_benchmark/src/libbenchmark.a
[31/51] Linking CXX static library src/third_party/smf/src/third_party/google_benchmark/src/libbenchmark_main.a
[32/51] Building CXX object src/third_party/smf/src/core/CMakeFiles/smf.dir/histogram_seastar_utils.cc.o
[33/51] Building CXX object src/third_party/smf/src/third_party/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[34/51] Linking CXX static library src/third_party/smf/src/third_party/googletest/googletest/libgtest.a
[35/51] Linking CXX static library src/third_party/smf/src/third_party/googletest/googletest/libgtest_main.a
[36/51] Building CXX object src/third_party/smf/src/core/CMakeFiles/smf.dir/rpc_recv_context.cc.o
[37/51] Building CXX object src/third_party/smf/src/third_party/seastar/CMakeFiles/seastar.dir/net/tls.cc.o
FAILED: src/third_party/smf/src/third_party/seastar/CMakeFiles/seastar.dir/net/tls.cc.o
/usr/bin/c++ -DCARES_STATICLIB -DSEASTAR_HAVE_HWLOC -DSEASTAR_HAVE_LZ4_COMPRESS_DEFAULT -DSEASTAR_HAVE_NUMA -DSEASTAR_NO_EXCEPTION_HACK -I../../src/third_party/smf/src -Isrc/third_party/smf/src -I../../src/third_party/smf/src/third_party/seastar -Isrc/third_party/smf/src/third_party/seastar -I../../src/third_party/smf/src/third_party/seastar/fmt/include -Isrc/third_party/smf/src/third_party/seastar/c-ares -I../../src/third_party/smf/src/third_party/seastar/c-ares -isystem /usr/include/cryptopp -O2 -Wall -std=c++14 -Wno-error=deprecated-declarations -fvisibility=hidden -U_FORTIFY_SOURCE -Wno-attributes -Wno-overloaded-virtual -Wno-maybe-uninitialized -Wno-error=cpp -pthread -MD -MT src/third_party/smf/src/third_party/seastar/CMakeFiles/seastar.dir/net/tls.cc.o -MF src/third_party/smf/src/third_party/seastar/CMakeFiles/seastar.dir/net/tls.cc.o.d -o src/third_party/smf/src/third_party/seastar/CMakeFiles/seastar.dir/net/tls.cc.o -c ../../src/third_party/smf/src/third_party/seastar/net/tls.cc
../../src/third_party/smf/src/third_party/seastar/net/tls.cc: In instantiation of ‘seastar::tls::session::handle_output_error(int)::<lambda(auto:31)> [with auto:31 = seastar::future<>]’:
/usr/include/c++/6/type_traits:2481:26: required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = seastar::tls::session::handle_output_error(int)::<lambda(auto:31)>; _Args = {seastar::future<>}]’
/usr/include/c++/6/type_traits:2492:55: required from ‘struct std::__result_of_impl<false, false, seastar::tls::session::handle_output_error(int)::<lambda(auto:31)>, seastar::future<> >’
/usr/include/c++/6/type_traits:2496:12: required from ‘class std::result_of<seastar::tls::session::handle_output_error(int)::<lambda(auto:31)>(seastar::future<>)>’
../../src/third_party/smf/src/third_party/seastar/core/future.hh:991:30: required by substitution of ‘template<class Func, class Result> Result seastar::future<T>::then_wrapped(Func&&) [with Func = seastar::tls::session::handle_output_error(int)::<lambda(auto:31)>; Result = <missing>]’
../../src/third_party/smf/src/third_party/seastar/net/tls.cc:910:10: required from here
../../src/third_party/smf/src/third_party/seastar/net/tls.cc:906:36: error: cannot call member function ‘seastar::future<> seastar::tls::session::handle_error(int)’ without object
return handle_error(res);
~~~~~~~~~~~~^~~~~
[38/51] Building CXX object src/third_party/smf/src/core/CMakeFiles/smf.dir/zstd_filter.cc.o
[39/51] Building CXX object src/third_party/smf/src/core/CMakeFiles/smf.dir/lz4_filter.cc.o
[40/51] Building CXX object src/third_party/smf/src/core/CMakeFiles/smf.dir/rpc_server.cc.o
FAILED: src/third_party/smf/src/core/CMakeFiles/smf.dir/rpc_server.cc.o
/usr/bin/c++ -DCARES_STATICLIB -DSEASTAR_HAVE_HWLOC -DSEASTAR_HAVE_LZ4_COMPRESS_DEFAULT -DSEASTAR_HAVE_NUMA -DSEASTAR_NO_EXCEPTION_HACK -DSMF_GCC_CONCEPTS=1 -DXXH_PRIVATE_API -I../../src/third_party/smf/src -Isrc/third_party/smf/src -Isrc/third_party/smf/src/core -I../../src/third_party/smf/src/include -I../../src/third_party/smf/src/third_party/seastar -Isrc/third_party/smf/src/third_party/seastar -I../../src/third_party/smf/src/third_party/seastar/fmt/include -Isrc/third_party/smf/src/third_party/seastar/c-ares -I../../src/third_party/smf/src/third_party/seastar/c-ares -isystem ../../src/third_party/smf/src/third_party/HdrHistogram_c/src -isystem ../../src/third_party/smf/src/core/SYSTEM -isystem ../../src/third_party/smf/src/third_party/flatbuffers/include -isystem ../../src/third_party/smf/src/third_party/flat_hash_map -isystem ../../src/third_party/smf/src/third_party/zstd/lib -isystem ../../src/third_party/smf/src/third_party/xxHash -isystem ../../src/third_party/smf/src/core -isystem /usr/include/cryptopp -fconcepts -O3 -DNDEBUG -std=c++14 -Wno-error=deprecated-declarations -fvisibility=hidden -U_FORTIFY_SOURCE -Wno-attributes -Wno-overloaded-virtual -Wno-maybe-uninitialized -Wno-error=cpp -pthread -MD -MT src/third_party/smf/src/core/CMakeFiles/smf.dir/rpc_server.cc.o -MF src/third_party/smf/src/core/CMakeFiles/smf.dir/rpc_server.cc.o.d -o src/third_party/smf/src/core/CMakeFiles/smf.dir/rpc_server.cc.o -c ../../src/third_party/smf/src/core/rpc_server.cc
../../src/third_party/smf/src/core/rpc_server.cc: In instantiation of ‘smf::rpc_server::handle_client_connection(seastar::lw_shared_ptr<smf::rpc_server_connection>)::<lambda()> mutable::<lambda(auto:39)>::<lambda()>::<lambda(auto:40)> [with auto:40 = std::experimental::fundamentals_v1::optional<smf::rpc_recv_context>; auto:39 = std::experimental::fundamentals_v1::optional<smf::rpc::header>]’:
/usr/include/c++/6/type_traits:2481:26: required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = smf::rpc_server::handle_client_connection(seastar::lw_shared_ptr<smf::rpc_server_connection>)::<lambda()> mutable::<lambda(auto:39)>::<lambda()> [with auto:39 = std::experimental::fundamentals_v1::optional<smf::rpc::header>]::<lambda(auto:40)>; _Args = {std::experimental::fundamentals_v1::optional<smf::rpc_recv_context>&&}]’
/usr/include/c++/6/type_traits:2492:55: required from ‘struct std::__result_of_impl<false, false, smf::rpc_server::handle_client_connection(seastar::lw_shared_ptr<smf::rpc_server_connection>)::<lambda()> mutable::<lambda(auto:39)>::<lambda()> [with auto:39 = std::experimental::fundamentals_v1::optional<smf::rpc::header>]::<lambda(auto:40)>, std::experimental::fundamentals_v1::optional<smf::rpc_recv_context>&&>’
/usr/include/c++/6/type_traits:2496:12: required from ‘class std::result_of<smf::rpc_server::handle_client_connection(seastar::lw_shared_ptr<smf::rpc_server_connection>)::<lambda()> mutable::<lambda(auto:39)>::<lambda()> [with auto:39 = std::experimental::fundamentals_v1::optional<smf::rpc::header>]::<lambda(auto:40)>(std::experimental::fundamentals_v1::optional<smf::rpc_recv_context>&&)>’
../../src/third_party/smf/src/third_party/seastar/core/future.hh:943:30: required by substitution of ‘template<class Func, class Result> Result seastar::future<T>::then(Func&&) [with Func = smf::rpc_server::handle_client_connection(seastar::lw_shared_ptr<smf::rpc_server_connection>)::<lambda()> mutable::<lambda(auto:39)>::<lambda()> [with auto:39 = std::experimental::fundamentals_v1::optional<smf::rpc::header>]::<lambda(auto:40)>; Result = <missing>]’
../../src/third_party/smf/src/core/rpc_server.cc:187:20: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
../../src/third_party/smf/src/core/rpc_server.cc:165:48: required from ‘smf::rpc_server::handle_client_connection(seastar::lw_shared_ptr<smf::rpc_server_connection>)::<lambda()> mutable::<lambda(auto:39)> [with auto:39 = std::experimental::fundamentals_v1::optional<smf::rpc::header>]’
/usr/include/c++/6/type_traits:2481:26: required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = smf::rpc_server::handle_client_connection(seastar::lw_shared_ptr<smf::rpc_server_connection>)::<lambda()> mutable::<lambda(auto:39)>; _Args = {std::experimental::fundamentals_v1::optional<smf::rpc::header>&&}]’
/usr/include/c++/6/type_traits:2492:55: required from ‘struct std::__result_of_impl<false, false, smf::rpc_server::handle_client_connection(seastar::lw_shared_ptr<smf::rpc_server_connection>)::<lambda()> mutable::<lambda(auto:39)>, std::experimental::fundamentals_v1::optional<smf::rpc::header>&&>’
/usr/include/c++/6/type_traits:2496:12: required from ‘class std::result_of<smf::rpc_server::handle_client_connection(seastar::lw_shared_ptr<smf::rpc_server_connection>)::<lambda()> mutable::<lambda(auto:39)>(std::experimental::fundamentals_v1::optional<smf::rpc::header>&&)>’
../../src/third_party/smf/src/third_party/seastar/core/future.hh:943:30: required by substitution of ‘template<class Func, class Result> Result seastar::future<T>::then(Func&&) [with Func = smf::rpc_server::handle_client_connection(seastar::lw_shared_ptr<smf::rpc_server_connection>)::<lambda()> mutable::<lambda(auto:39)>; Result = <missing>]’
../../src/third_party/smf/src/core/rpc_server.cc:188:17: required from here
../../src/third_party/smf/src/core/rpc_server.cc:179:29: error: cannot call member function ‘seastar::future<> smf::rpc_server::dispatch_rpc(seastar::lw_shared_ptr<smf::rpc_server_connection>, smf::rpc_recv_context&&)’ without object
.finally([m = hist_->auto_measure()] {})
../../src/third_party/smf/src/core/rpc_server.cc: In instantiation of ‘smf::rpc_server::dispatch_rpc(seastar::lw_shared_ptr<smf::rpc_server_connection>, smf::rpc_recv_context&&)::<lambda()> mutable::<lambda(auto:43)>::<lambda(smf::rpc_envelope)> [with auto:43 = smf::rpc_recv_context]’:
../../src/third_party/smf/src/core/rpc_server.cc:228:27: required from ‘struct smf::rpc_server::dispatch_rpc(seastar::lw_shared_ptr<smf::rpc_server_connection>, smf::rpc_recv_context&&)::<lambda()> mutable::<lambda(auto:43)> [with auto:43 = smf::rpc_recv_context]::<lambda(struct smf::rpc_envelope)>’
../../src/third_party/smf/src/core/rpc_server.cc:231:21: required from ‘smf::rpc_server::dispatch_rpc(seastar::lw_shared_ptr<smf::rpc_server_connection>, smf::rpc_recv_context&&)::<lambda()> mutable::<lambda(auto:43)> [with auto:43 = smf::rpc_recv_context]’
/usr/include/c++/6/type_traits:2481:26: required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = smf::rpc_server::dispatch_rpc(seastar::lw_shared_ptr<smf::rpc_server_connection>, smf::rpc_recv_context&&)::<lambda()> mutable::<lambda(auto:43)>; _Args = {smf::rpc_recv_context&&}]’
/usr/include/c++/6/type_traits:2492:55: required from ‘struct std::__result_of_impl<false, false, smf::rpc_server::dispatch_rpc(seastar::lw_shared_ptr<smf::rpc_server_connection>, smf::rpc_recv_context&&)::<lambda()> mutable::<lambda(auto:43)>, smf::rpc_recv_context&&>’
/usr/include/c++/6/type_traits:2496:12: required from ‘class std::result_of<smf::rpc_server::dispatch_rpc(seastar::lw_shared_ptr<smf::rpc_server_connection>, smf::rpc_recv_context&&)::<lambda()> mutable::<lambda(auto:43)>(smf::rpc_recv_context&&)>’
../../src/third_party/smf/src/third_party/seastar/core/future.hh:943:30: required by substitution of ‘template<class Func, class Result> Result seastar::future<T>::then(Func&&) [with Func = smf::rpc_server::dispatch_rpc(seastar::lw_shared_ptr<smf::rpc_server_connection>, smf::rpc_recv_context&&)::<lambda()> mutable::<lambda(auto:43)>; Result = <missing>]’
../../src/third_party/smf/src/core/rpc_server.cc:240:17: required from here
../../src/third_party/smf/src/core/rpc_server.cc:229:57: error: cannot call member function ‘seastar::future<smf::rpc_envelope> smf::rpc_server::stage_apply_outgoing_filters(smf::rpc_envelope)’ without object
return stage_apply_outgoing_filters(std::move(e));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
../../src/third_party/smf/src/core/rpc_server.cc: In instantiation of ‘smf::rpc_server::dispatch_rpc(seastar::lw_shared_ptr<smf::rpc_server_connection>, smf::rpc_recv_context&&)::<lambda()> mutable::<lambda(auto:43)> [with auto:43 = smf::rpc_recv_context]’:
/usr/include/c++/6/type_traits:2481:26: required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = smf::rpc_server::dispatch_rpc(seastar::lw_shared_ptr<smf::rpc_server_connection>, smf::rpc_recv_context&&)::<lambda()> mutable::<lambda(auto:43)>; _Args = {smf::rpc_recv_context&&}]’
/usr/include/c++/6/type_traits:2492:55: required from ‘struct std::__result_of_impl<false, false, smf::rpc_server::dispatch_rpc(seastar::lw_shared_ptr<smf::rpc_server_connection>, smf::rpc_recv_context&&)::<lambda()> mutable::<lambda(auto:43)>, smf::rpc_recv_context&&>’
/usr/include/c++/6/type_traits:2496:12: required from ‘class std::result_of<smf::rpc_server::dispatch_rpc(seastar::lw_shared_ptr<smf::rpc_server_connection>, smf::rpc_recv_context&&)::<lambda()> mutable::<lambda(auto:43)>(smf::rpc_recv_context&&)>’
../../src/third_party/smf/src/third_party/seastar/core/future.hh:943:30: required by substitution of ‘template<class Func, class Result> Result seastar::future<T>::then(Func&&) [with Func = smf::rpc_server::dispatch_rpc(seastar::lw_shared_ptr<smf::rpc_server_connection>, smf::rpc_recv_context&&)::<lambda()> mutable::<lambda(auto:43)>; Result = <missing>]’
../../src/third_party/smf/src/core/rpc_server.cc:240:17: required from here
../../src/third_party/smf/src/core/rpc_server.cc:239:21: error: no matching function for call to ‘seastar::future<>::then(smf::rpc_server::dispatch_rpc(seastar::lw_shared_ptr<smf::rpc_server_connection>, smf::rpc_recv_context&&)::<lambda()> mutable::<lambda(auto:43)> [with auto:43 = smf::rpc_recv_context]::<lambda(smf::rpc_envelope)>)’
});
^
In file included from ../../src/third_party/smf/src/third_party/seastar/core/seastar.hh:45:0,
from ../../src/third_party/smf/src/third_party/seastar/core/reactor.hh:24,
from ../../src/third_party/smf/src/third_party/seastar/core/sharded.hh:24,
from ../../src/third_party/smf/src/third_party/seastar/core/distributed.hh:24,
from ../../src/third_party/smf/src/include/smf/rpc_server.h:9,
from ../../src/third_party/smf/src/core/rpc_server.cc:3:
../../src/third_party/smf/src/third_party/seastar/core/future.hh:946:5: note: candidate: template<class Func, class Result> Result seastar::future<T>::then(Func&&) [with Func = Func; Result = Result; T = {}]
then(Func&& func) noexcept {
^~~~
../../src/third_party/smf/src/third_party/seastar/core/future.hh:946:5: note: template argument deduction/substitution failed:
../../src/third_party/smf/src/third_party/seastar/core/future.hh:943:30: error: no type named ‘type’ in ‘class std::result_of<smf::rpc_server::dispatch_rpc(seastar::lw_shared_ptr<smf::rpc_server_connection>, smf::rpc_recv_context&&)::<lambda()> mutable::<lambda(auto:43)> [with auto:43 = smf::rpc_recv_context]::<lambda(smf::rpc_envelope)>()>’
template <typename Func, typename Result = futurize_t<std::result_of_t<Func(T&&...)>>>
^~~~~~~~
../../src/third_party/smf/src/third_party/seastar/core/future.hh:946:5: error: ‘Result seastar::future<T>::then(Func&&) [with Func = smf::rpc_server::handle_client_connection(seastar::lw_shared_ptr<smf::rpc_server_connection>)::<lambda()> mutable::<lambda(auto:39)>::<lambda()> [with auto:39 = std::experimental::fundamentals_v1::optional<smf::rpc::header>]::<lambda(auto:40)>; Result = seastar::future<>; T = {std::experimental::fundamentals_v1::optional<smf::rpc_recv_context>}]’, declared using local type ‘smf::rpc_server::handle_client_connection(seastar::lw_shared_ptr<smf::rpc_server_connection>)::<lambda()> mutable::<lambda(auto:39)>::<lambda()> [with auto:39 = std::experimental::fundamentals_v1::optional<smf::rpc::header>]::<lambda(auto:40)>’, is used but never defined [-fpermissive]
then(Func&& func) noexcept {
^~~~
In file included from ../../src/third_party/smf/src/third_party/seastar/core/fair_queue.hh:25:0,
from ../../src/third_party/smf/src/third_party/seastar/core/file.hh:29,
from ../../src/third_party/smf/src/third_party/seastar/core/reactor.hh:67,
from ../../src/third_party/smf/src/third_party/seastar/core/sharded.hh:24,
from ../../src/third_party/smf/src/third_party/seastar/core/distributed.hh:24,
from ../../src/third_party/smf/src/include/smf/rpc_server.h:9,
from ../../src/third_party/smf/src/core/rpc_server.cc:3:
../../src/third_party/smf/src/third_party/seastar/core/semaphore.hh:445:1: error: ‘seastar::futurize_t<typename std::result_of<Func()>::type> seastar::with_semaphore(seastar::basic_semaphore<ExceptionFactory, Clock>&, size_t, Func&&) [with ExceptionFactory = seastar::semaphore_default_exception_factory; Func = smf::rpc_server::handle_client_connection(seastar::lw_shared_ptr<smf::rpc_server_connection>)::<lambda()> mutable::<lambda(auto:39)> [with auto:39 = std::experimental::fundamentals_v1::optional<smf::rpc::header>]::<lambda()>; Clock = std::chrono::_V2::steady_clock; seastar::futurize_t<typename std::result_of<Func()>::type> = seastar::future<>; size_t = long unsigned int]’, declared using local type ‘smf::rpc_server::handle_client_connection(seastar::lw_shared_ptr<smf::rpc_server_connection>)::<lambda()> mutable::<lambda(auto:39)> [with auto:39 = std::experimental::fundamentals_v1::optional<smf::rpc::header>]::<lambda()>’, is used but never defined [-fpermissive]
with_semaphore(basic_semaphore<ExceptionFactory, Clock>& sem, size_t units, Func&& func) {
^~~~~~~~~~~~~~
In file included from ../../src/third_party/smf/src/third_party/seastar/core/seastar.hh:45:0,
from ../../src/third_party/smf/src/third_party/seastar/core/reactor.hh:24,
from ../../src/third_party/smf/src/third_party/seastar/core/sharded.hh:24,
from ../../src/third_party/smf/src/third_party/seastar/core/distributed.hh:24,
from ../../src/third_party/smf/src/include/smf/rpc_server.h:9,
from ../../src/third_party/smf/src/core/rpc_server.cc:3:
../../src/third_party/smf/src/third_party/seastar/core/future.hh:946:5: error: ‘Result seastar::future<T>::then(Func&&) [with Func = smf::rpc_server::dispatch_rpc(seastar::lw_shared_ptr<smf::rpc_server_connection>, smf::rpc_recv_context&&)::<lambda()> mutable::<lambda(auto:43)> [with auto:43 = smf::rpc_recv_context]::<lambda(smf::rpc_envelope)>; Result = seastar::future<>; T = {smf::rpc_envelope}]’, declared using local type ‘smf::rpc_server::dispatch_rpc(seastar::lw_shared_ptr<smf::rpc_server_connection>, smf::rpc_recv_context&&)::<lambda()> mutable::<lambda(auto:43)> [with auto:43 = smf::rpc_recv_context]::<lambda(smf::rpc_envelope)>’, is used but never defined [-fpermissive]
then(Func&& func) noexcept {
^~~~
In file included from ../../src/third_party/smf/src/third_party/seastar/core/fair_queue.hh:25:0,
from ../../src/third_party/smf/src/third_party/seastar/core/file.hh:29,
from ../../src/third_party/smf/src/third_party/seastar/core/reactor.hh:67,
from ../../src/third_party/smf/src/third_party/seastar/core/sharded.hh:24,
from ../../src/third_party/smf/src/third_party/seastar/core/distributed.hh:24,
from ../../src/third_party/smf/src/include/smf/rpc_server.h:9,
from ../../src/third_party/smf/src/core/rpc_server.cc:3:
../../src/third_party/smf/src/third_party/seastar/core/semaphore.hh:445:1: warning: ‘seastar::futurize_t<typename std::result_of<Func()>::type> seastar::with_semaphore(seastar::basic_semaphore<ExceptionFactory, Clock>&, size_t, Func&&) [with ExceptionFactory = seastar::semaphore_default_exception_factory; Func = smf::rpc_server::handle_client_connection(seastar::lw_shared_ptr<smf::rpc_server_connection>)::<lambda()> mutable::<lambda(auto:39)> [with auto:39 = std::experimental::fundamentals_v1::optional<smf::rpc::header>]::<lambda()>; Clock = std::chrono::_V2::steady_clock]’ used but never defined
with_semaphore(basic_semaphore<ExceptionFactory, Clock>& sem, size_t units, Func&& func) {
^~~~~~~~~~~~~~
[41/51] Building CXX object src/third_party/smf/src/core/CMakeFiles/smf.dir/rpc_client.cc.o
[42/51] Building CXX object src/third_party/smf/src/third_party/seastar/CMakeFiles/seastar.dir/rpc/rpc.cc.o
FAILED: src/third_party/smf/src/third_party/seastar/CMakeFiles/seastar.dir/rpc/rpc.cc.o
/usr/bin/c++ -DCARES_STATICLIB -DSEASTAR_HAVE_HWLOC -DSEASTAR_HAVE_LZ4_COMPRESS_DEFAULT -DSEASTAR_HAVE_NUMA -DSEASTAR_NO_EXCEPTION_HACK -I../../src/third_party/smf/src -Isrc/third_party/smf/src -I../../src/third_party/smf/src/third_party/seastar -Isrc/third_party/smf/src/third_party/seastar -I../../src/third_party/smf/src/third_party/seastar/fmt/include -Isrc/third_party/smf/src/third_party/seastar/c-ares -I../../src/third_party/smf/src/third_party/seastar/c-ares -isystem /usr/include/cryptopp -O2 -Wall -std=c++14 -Wno-error=deprecated-declarations -fvisibility=hidden -U_FORTIFY_SOURCE -Wno-attributes -Wno-overloaded-virtual -Wno-maybe-uninitialized -Wno-error=cpp -pthread -MD -MT src/third_party/smf/src/third_party/seastar/CMakeFiles/seastar.dir/rpc/rpc.cc.o -MF src/third_party/smf/src/third_party/seastar/CMakeFiles/seastar.dir/rpc/rpc.cc.o.d -o src/third_party/smf/src/third_party/seastar/CMakeFiles/seastar.dir/rpc/rpc.cc.o -c ../../src/third_party/smf/src/third_party/seastar/rpc/rpc.cc
../../src/third_party/smf/src/third_party/seastar/rpc/rpc.cc: In instantiation of ‘seastar::rpc::server::connection::process()::<lambda()> mutable::<lambda()>::<lambda()> mutable::<lambda(seastar::compat::optional<long unsigned int>, uint64_t, int64_t, seastar::compat::optional<seastar::rpc::rcv_buf>)>::<lambda(auto:50)>::<lambda()> mutable [with auto:50 = seastar::semaphore_units<seastar::semaphore_default_exception_factory, seastar::lowres_clock>]’:
../../src/third_party/smf/src/third_party/seastar/rpc/rpc.cc:876:139: required from ‘struct seastar::rpc::server::connection::process()::<lambda()> mutable::<lambda()>::<lambda()> mutable::<lambda(seastar::compat::optional<long unsigned int>, uint64_t, int64_t, seastar::compat::optional<seastar::rpc::rcv_buf>)>::<lambda(auto:50)> [with auto:50 = seastar::semaphore_units<seastar::semaphore_default_exception_factory, seastar::lowres_clock>]::<lambda()>’
../../src/third_party/smf/src/third_party/seastar/rpc/rpc.cc:876:44: required from ‘seastar::rpc::server::connection::process()::<lambda()> mutable::<lambda()>::<lambda()> mutable::<lambda(seastar::compat::optional<long unsigned int>, uint64_t, int64_t, seastar::compat::optional<seastar::rpc::rcv_buf>)>::<lambda(auto:50)> [with auto:50 = seastar::semaphore_units<seastar::semaphore_default_exception_factory, seastar::lowres_clock>]’
/usr/include/c++/6/type_traits:2481:26: required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = seastar::rpc::server::connection::process()::<lambda()> mutable::<lambda()>::<lambda()> mutable::<lambda(seastar::compat::optional<long unsigned int>, uint64_t, int64_t, seastar::compat::optional<seastar::rpc::rcv_buf>)>::<lambda(auto:50)>; _Args = {seastar::semaphore_units<seastar::semaphore_default_exception_factory, seastar::lowres_clock>&&}]’
/usr/include/c++/6/type_traits:2492:55: required from ‘struct std::__result_of_impl<false, false, seastar::rpc::server::connection::process()::<lambda()> mutable::<lambda()>::<lambda()> mutable::<lambda(seastar::compat::optional<long unsigned int>, uint64_t, int64_t, seastar::compat::optional<seastar::rpc::rcv_buf>)>::<lambda(auto:50)>, seastar::semaphore_units<seastar::semaphore_default_exception_factory, seastar::lowres_clock>&&>’
/usr/include/c++/6/type_traits:2496:12: required from ‘class std::result_of<seastar::rpc::server::connection::process()::<lambda()> mutable::<lambda()>::<lambda()> mutable::<lambda(seastar::compat::optional<long unsigned int>, uint64_t, int64_t, seastar::compat::optional<seastar::rpc::rcv_buf>)>::<lambda(auto:50)>(seastar::semaphore_units<seastar::semaphore_default_exception_factory, seastar::lowres_clock>&&)>’
../../src/third_party/smf/src/third_party/seastar/core/future.hh:943:30: required by substitution of ‘template<class Func, class Result> Result seastar::future<T>::then(Func&&) [with Func = seastar::rpc::server::connection::process()::<lambda()> mutable::<lambda()>::<lambda()> mutable::<lambda(seastar::compat::optional<long unsigned int>, uint64_t, int64_t, seastar::compat::optional<seastar::rpc::rcv_buf>)>::<lambda(auto:50)>; Result = <missing>]’
../../src/third_party/smf/src/third_party/seastar/rpc/rpc.cc:882:28: required from here
../../src/third_party/smf/src/third_party/seastar/rpc/rpc.cc:878:64: error: cannot call member function ‘seastar::shared_ptr<T> seastar::enable_shared_from_this<T>::shared_from_this() [with T = seastar::rpc::server::connection]’ without object
auto c = shared_from_this();
~~~~~~~~~~~~~~~~^~
../../src/third_party/smf/src/third_party/seastar/rpc/rpc.cc:879:53: error: cannot call member function ‘seastar::future<> seastar::rpc::server::connection::respond(int64_t, seastar::rpc::snd_buf&&, seastar::compat::optional<std::chrono::time_point<seastar::lowres_clock, std::chrono::duration<long int, std::ratio<1l, 1000l> > > >)’ without object
return respond(-msg_id, std::move(data), timeout).then([c = std::move(c), permit = std::move(permit)] {});
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/third_party/smf/src/third_party/seastar/rpc/rpc.cc: In instantiation of ‘seastar::rpc::server::connection::process()::<lambda()> mutable::<lambda()>::<lambda()> mutable::<lambda(seastar::compat::optional<long unsigned int>, uint64_t, int64_t, seastar::compat::optional<seastar::rpc::rcv_buf>)>::<lambda(auto:50)> [with auto:50 = seastar::semaphore_units<seastar::semaphore_default_exception_factory, seastar::lowres_clock>]’:
/usr/include/c++/6/type_traits:2481:26: required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = seastar::rpc::server::connection::process()::<lambda()> mutable::<lambda()>::<lambda()> mutable::<lambda(seastar::compat::optional<long unsigned int>, uint64_t, int64_t, seastar::compat::optional<seastar::rpc::rcv_buf>)>::<lambda(auto:50)>; _Args = {seastar::semaphore_units<seastar::semaphore_default_exception_factory, seastar::lowres_clock>&&}]’
/usr/include/c++/6/type_traits:2492:55: required from ‘struct std::__result_of_impl<false, false, seastar::rpc::server::connection::process()::<lambda()> mutable::<lambda()>::<lambda()> mutable::<lambda(seastar::compat::optional<long unsigned int>, uint64_t, int64_t, seastar::compat::optional<seastar::rpc::rcv_buf>)>::<lambda(auto:50)>, seastar::semaphore_units<seastar::semaphore_default_exception_factory, seastar::lowres_clock>&&>’
/usr/include/c++/6/type_traits:2496:12: required from ‘class std::result_of<seastar::rpc::server::connection::process()::<lambda()> mutable::<lambda()>::<lambda()> mutable::<lambda(seastar::compat::optional<long unsigned int>, uint64_t, int64_t, seastar::compat::optional<seastar::rpc::rcv_buf>)>::<lambda(auto:50)>(seastar::semaphore_units<seastar::semaphore_default_exception_factory, seastar::lowres_clock>&&)>’
../../src/third_party/smf/src/third_party/seastar/core/future.hh:943:30: required by substitution of ‘template<class Func, class Result> Result seastar::future<T>::then(Func&&) [with Func = seastar::rpc::server::connection::process()::<lambda()> mutable::<lambda()>::<lambda()> mutable::<lambda(seastar::compat::optional<long unsigned int>, uint64_t, int64_t, seastar::compat::optional<seastar::rpc::rcv_buf>)>::<lambda(auto:50)>; Result = <missing>]’
../../src/third_party/smf/src/third_party/seastar/rpc/rpc.cc:882:28: required from here
../../src/third_party/smf/src/third_party/seastar/rpc/rpc.cc:876:44: error: use of ‘auto seastar::with_gate(seastar::gate&, Func&&) [with Func = seastar::rpc::server::connection::process()::<lambda()> mutable::<lambda()>::<lambda()> mutable::<lambda(seastar::compat::optional<long unsigned int>, uint64_t, int64_t, seastar::compat::optional<seastar::rpc::rcv_buf>)>::<lambda(auto:50)> [with auto:50 = seastar::semaphore_units<seastar::semaphore_default_exception_factory, seastar::lowres_clock>]::<lambda()>]’ before deduction of ‘auto’
with_gate(_server._reply_gate, [this, timeout, msg_id, data = std::move(data), permit = std::move(permit)] () mutable {
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83268
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
auto c = shared_from_this();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
return respond(-msg_id, std::move(data), timeout).then([c = std::move(c), permit = std::move(permit)] {});
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
});
~~
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment