Skip to content

Instantly share code, notes, and snippets.

@crackcomm
Created March 1, 2018 00:13
Show Gist options
  • Save crackcomm/3285f7c45071ec98f6ec9d7f90706353 to your computer and use it in GitHub Desktop.
Save crackcomm/3285f7c45071ec98f6ec9d7f90706353 to your computer and use it in GitHub Desktop.
[3/28] Building CXX object src/CMakeFiles/smf.dir/rpc/rpc_server.cc.o
FAILED: src/CMakeFiles/smf.dir/rpc/rpc_server.cc.o
/usr/bin/c++ -DSMF_GCC_CONCEPTS=1 -DXXH_PRIVATE_API -I../src -Isrc -I../src/third_party/flatbuffers/include -I../src/third_party/zstd/lib -I../src/third_party/fastrange -isystem ../src/third_party/flat_hash_map -I../src/third_party/xxHash -I/home/pah/ws/go/src/github.com/ipfn/seastar -I/home/pah/ws/go/src/github.com/ipfn/seastar/fmt -I/home/pah/ws/go/src/github.com/ipfn/seastar/build/debug/gen -I/home/pah/ws/go/src/github.com/ipfn/seastar/build/debug/c-ares -isystem ../src/third_party/HdrHistogram_c/src -fdiagnostics-color=auto -Wall -Werror -Wextra -Wformat -Wmissing-braces -Wparentheses -Wpointer-arith -Wformat-security -Wunused -Wno-unused-parameter -Wcast-align -Wno-missing-field-initializers -Wdelete-non-virtual-dtor -Wno-ignored-qualifiers -fconcepts -lasan -lubsan -O0 -ggdb -std=gnu++17 -g -Wall -Werror -Wno-error=deprecated-declarations -fvisibility=hidden -pthread -U_FORTIFY_SOURCE -DBOOST_TEST_DYN_LINK -Wno-overloaded-virtual -Wno-maybe-uninitialized -Wno-error=cpp -DHAVE_HWLOC -DHAVE_NUMA -DHAVE_LZ4_COMPRESS_DEFAULT -fsanitize=address -fsanitize=leak -fsanitize=undefined -fno-sanitize=vptr -DASAN_ENABLED -O0 -DDEBUG -DDEBUG_SHARED_PTR -DDEFAULT_ALLOCATOR -DSEASTAR_THREAD_STACK_GUARDS -DNO_EXCEPTION_HACK -I/home/pah/ws/go/src/github.com/ipfn/seastar -I/home/pah/ws/go/src/github.com/ipfn/seastar/fmt -I/home/pah/ws/go/src/github.com/ipfn/seastar/build/debug/gen -I/home/pah/ws/go/src/github.com/ipfn/seastar/build/debug/c-ares -std=c++1z -MD -MT src/CMakeFiles/smf.dir/rpc/rpc_server.cc.o -MF src/CMakeFiles/smf.dir/rpc/rpc_server.cc.o.d -o src/CMakeFiles/smf.dir/rpc/rpc_server.cc.o -c ../src/rpc/rpc_server.cc
In file included from ../src/rpc/rpc_connection_limits.h:8:0,
from ../src/rpc/rpc_connection.h:11,
from ../src/rpc/rpc_recv_context.h:13,
from ../src/rpc/filters/zstd_filter.h:7,
from ../src/rpc/rpc_server.h:16,
from ../src/rpc/rpc_server.cc:3:
/home/pah/ws/go/src/github.com/ipfn/seastar/core/gate.hh: In instantiation of ‘auto seastar::with_gate(seastar::gate&, Func&&) [with Func = smf::rpc_server::dispatch_rpc(seastar::lw_shared_ptr<smf::rpc_server_connection>, smf::rpc_recv_context&&)::<lambda()>]’:
../src/rpc/rpc_server.cc:213:13: required from here
/home/pah/ws/go/src/github.com/ipfn/seastar/core/gate.hh:125:16: error: invalid use of ‘void’
return func().finally([&g] { g.leave(); });
~~~~^~
../src/rpc/rpc_server.cc: In member function ‘seastar::future<> smf::rpc_server::dispatch_rpc(seastar::lw_shared_ptr<smf::rpc_server_connection>, smf::rpc_recv_context&&)’:
../src/rpc/rpc_server.cc:192:28: error: invalid use of ‘void’
return seastar::with_gate(
~~~~~~~~~~~~~~~~~~^
conn->limits->reply_gate,
~~~~~~~~~~~~~~~~~~~~~~~~~
[ this, ctx = std::move(ctx), conn, method_dispatch ]() mutable {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stage_apply_incoming_filters(std::move(ctx))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.then([this, conn, method_dispatch](auto f_ctx) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
return method_dispatch->apply(std::move(f_ctx))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.then([this](rpc_envelope e) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
return stage_apply_outgoing_filters(std::move(e));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
})
~~
.then([this, conn](rpc_envelope e) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
conn->stats->out_bytes += e.letter.size();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
return seastar::with_semaphore(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
conn->serialize_writes, 1,
~~~~~~~~~~~~~~~~~~~~~~~~~~
[ conn, ee = std::move(e) ]() mutable {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
return smf::rpc_envelope::send(&conn->ostream,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
std::move(ee));
~~~~~~~~~~~~~~~
});
~~~
});
~~~
});
~~~
})
~~
../src/rpc/rpc_server.cc:192:28: error: invalid use of ‘void’
In file included from /home/pah/ws/go/src/github.com/ipfn/seastar/core/distributed.hh:24:0,
from ../src/rpc/rpc_server.h:8,
from ../src/rpc/rpc_server.cc:3:
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh: In instantiation of ‘struct seastar::sharded<T>::start(Args&& ...)::<lambda(unsigned int)> mutable::<lambda()> mutable [with Args = {const seastar::basic_sstring<char, unsigned int, 15>&}; Service = seastar::httpd::http_server]::<lambda(const class seastar::basic_sstring<char, unsigned int, 15>&)>’:
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:421:62: required from ‘seastar::sharded<T>::start(Args&& ...)::<lambda(unsigned int)> mutable::<lambda()> mutable [with Args = {const seastar::basic_sstring<char, unsigned int, 15>&}; Service = seastar::httpd::http_server]’
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:420:45: required from ‘struct seastar::sharded<T>::start(Args&& ...)::<lambda(unsigned int)> mutable [with Args = {const seastar::basic_sstring<char, unsigned int, 15>&}; Service = seastar::httpd::http_server]::<lambda()>’
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:420:34: required from ‘seastar::sharded<T>::start(Args&& ...)::<lambda(unsigned int)> mutable [with Args = {const seastar::basic_sstring<char, unsigned int, 15>&}; Service = seastar::httpd::http_server]’
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:419:66: required from ‘struct seastar::sharded<T>::start(Args&& ...) [with Args = {const seastar::basic_sstring<char, unsigned int, 15>&}; Service = seastar::httpd::http_server]::<lambda(unsigned int)>’
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:418:29: required from ‘seastar::future<> seastar::sharded<T>::start(Args&& ...) [with Args = {const seastar::basic_sstring<char, unsigned int, 15>&}; Service = seastar::httpd::http_server]’
/home/pah/ws/go/src/github.com/ipfn/seastar/http/httpd.hh:353:40: required from here
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:421:68: error: ‘seastar::sharded<T>::start(Args&& ...)::<lambda(unsigned int)> mutable::<lambda()> mutable [with Args = {const seastar::basic_sstring<char, unsigned int, 15>&}; Service = seastar::httpd::http_server]::<lambda(const seastar::basic_sstring<char, unsigned int, 15>&)>’ declared with greater visibility than the type of its field ‘seastar::sharded<T>::start(Args&& ...)::<lambda(unsigned int)> mutable::<lambda()> mutable [with Args = {const seastar::basic_sstring<char, unsigned int, 15>&}; Service = seastar::httpd::http_server]::<lambda(const seastar::basic_sstring<char, unsigned int, 15>&)>::<this capture>’ [-Werror=attributes]
_instances[engine().cpu_id()].service = apply([this] (Args... args) {
^
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh: In instantiation of ‘struct seastar::sharded<T>::start(Args&& ...)::<lambda(unsigned int)> mutable [with Args = {const seastar::basic_sstring<char, unsigned int, 15>&}; Service = seastar::httpd::http_server]::<lambda()>’:
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:420:34: required from ‘seastar::sharded<T>::start(Args&& ...)::<lambda(unsigned int)> mutable [with Args = {const seastar::basic_sstring<char, unsigned int, 15>&}; Service = seastar::httpd::http_server]’
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:419:66: required from ‘struct seastar::sharded<T>::start(Args&& ...) [with Args = {const seastar::basic_sstring<char, unsigned int, 15>&}; Service = seastar::httpd::http_server]::<lambda(unsigned int)>’
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:418:29: required from ‘seastar::future<> seastar::sharded<T>::start(Args&& ...) [with Args = {const seastar::basic_sstring<char, unsigned int, 15>&}; Service = seastar::httpd::http_server]’
/home/pah/ws/go/src/github.com/ipfn/seastar/http/httpd.hh:353:40: required from here
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:420:49: error: ‘seastar::sharded<T>::start(Args&& ...)::<lambda(unsigned int)> mutable [with Args = {const seastar::basic_sstring<char, unsigned int, 15>&}; Service = seastar::httpd::http_server]::<lambda()>’ declared with greater visibility than the type of its field ‘seastar::sharded<T>::start(Args&& ...)::<lambda(unsigned int)> mutable [with Args = {const seastar::basic_sstring<char, unsigned int, 15>&}; Service = seastar::httpd::http_server]::<lambda()>::<this capture>’ [-Werror=attributes]
return smp::submit_to(c, [this, args] () mutable {
^
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:420:49: error: ‘seastar::sharded<T>::start(Args&& ...)::<lambda(unsigned int)> mutable [with Args = {const seastar::basic_sstring<char, unsigned int, 15>&}; Service = seastar::httpd::http_server]::<lambda()>’ declared with greater visibility than the type of its field ‘seastar::sharded<T>::start(Args&& ...)::<lambda(unsigned int)> mutable [with Args = {const seastar::basic_sstring<char, unsigned int, 15>&}; Service = seastar::httpd::http_server]::<lambda()>::<args capture>’ [-Werror=attributes]
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh: In instantiation of ‘struct seastar::sharded<T>::stop()::<lambda(unsigned int)> mutable::<lambda()> mutable [with Service = seastar::httpd::http_server]::<lambda()>’:
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:471:14: required from ‘seastar::sharded<T>::stop()::<lambda(unsigned int)> mutable::<lambda()> mutable [with Service = seastar::httpd::http_server]’
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:463:35: required from ‘struct seastar::sharded<T>::stop()::<lambda(unsigned int)> mutable [with Service = seastar::httpd::http_server]::<lambda()>’
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:463:30: required from ‘seastar::sharded<T>::stop()::<lambda(unsigned int)> mutable [with Service = seastar::httpd::http_server]’
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:462:78: required from ‘struct seastar::sharded<T>::stop() [with Service = seastar::httpd::http_server]::<lambda(unsigned int)>’
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:462:29: required from ‘seastar::future<> seastar::sharded<T>::stop() [with Service = seastar::httpd::http_server]’
/home/pah/ws/go/src/github.com/ipfn/seastar/http/httpd.hh:357:35: required from here
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:469:49: error: ‘seastar::sharded<T>::stop()::<lambda(unsigned int)> mutable::<lambda()> mutable [with Service = seastar::httpd::http_server]::<lambda()>’ declared with greater visibility than the type of its field ‘seastar::sharded<T>::stop()::<lambda(unsigned int)> mutable::<lambda()> mutable [with Service = seastar::httpd::http_server]::<lambda()>::<this capture>’ [-Werror=attributes]
return inst->stop().then([this, inst] {
^
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:469:49: error: ‘seastar::sharded<T>::stop()::<lambda(unsigned int)> mutable::<lambda()> mutable [with Service = seastar::httpd::http_server]::<lambda()>’ declared with greater visibility than the type of its field ‘seastar::sharded<T>::stop()::<lambda(unsigned int)> mutable::<lambda()> mutable [with Service = seastar::httpd::http_server]::<lambda()>::<inst capture>’ [-Werror=attributes]
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh: In instantiation of ‘struct seastar::sharded<T>::stop()::<lambda(unsigned int)> mutable [with Service = seastar::httpd::http_server]::<lambda()>’:
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:463:30: required from ‘seastar::sharded<T>::stop()::<lambda(unsigned int)> mutable [with Service = seastar::httpd::http_server]’
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:462:78: required from ‘struct seastar::sharded<T>::stop() [with Service = seastar::httpd::http_server]::<lambda(unsigned int)>’
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:462:29: required from ‘seastar::future<> seastar::sharded<T>::stop() [with Service = seastar::httpd::http_server]’
/home/pah/ws/go/src/github.com/ipfn/seastar/http/httpd.hh:357:35: required from here
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:463:39: error: ‘seastar::sharded<T>::stop()::<lambda(unsigned int)> mutable [with Service = seastar::httpd::http_server]::<lambda()>’ declared with greater visibility than the type of its field ‘seastar::sharded<T>::stop()::<lambda(unsigned int)> mutable [with Service = seastar::httpd::http_server]::<lambda()>::<this capture>’ [-Werror=attributes]
return smp::submit_to(c, [this] () mutable {
^
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh: In instantiation of ‘struct seastar::sharded<T>::invoke_on_all(Func&&)::<lambda(unsigned int)> [with Func = seastar::httpd::http_server_control::set_routes(std::function<void(seastar::httpd::routes&)>)::<lambda(seastar::httpd::http_server&)>; Service = seastar::httpd::http_server]::<lambda()>’:
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:513:30: required from ‘seastar::sharded<T>::invoke_on_all(Func&&)::<lambda(unsigned int)> [with Func = seastar::httpd::http_server_control::set_routes(std::function<void(seastar::httpd::routes&)>)::<lambda(seastar::httpd::http_server&)>; Service = seastar::httpd::http_server]’
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:512:85: required from ‘struct seastar::sharded<T>::invoke_on_all(Func&&) [with Func = seastar::httpd::http_server_control::set_routes(std::function<void(seastar::httpd::routes&)>)::<lambda(seastar::httpd::http_server&)>; Service = seastar::httpd::http_server]::<lambda(unsigned int)>’
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:512:29: required from ‘seastar::future<> seastar::sharded<T>::invoke_on_all(Func&&) [with Func = seastar::httpd::http_server_control::set_routes(std::function<void(seastar::httpd::routes&)>)::<lambda(seastar::httpd::http_server&)>; Service = seastar::httpd::http_server]’
/home/pah/ws/go/src/github.com/ipfn/seastar/http/httpd.hh:363:10: required from here
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:513:45: error: ‘seastar::sharded<T>::invoke_on_all(Func&&)::<lambda(unsigned int)> [with Func = seastar::httpd::http_server_control::set_routes(std::function<void(seastar::httpd::routes&)>)::<lambda(seastar::httpd::http_server&)>; Service = seastar::httpd::http_server]::<lambda()>’ declared with greater visibility than the type of its field ‘seastar::sharded<T>::invoke_on_all(Func&&)::<lambda(unsigned int)> [with Func = seastar::httpd::http_server_control::set_routes(std::function<void(seastar::httpd::routes&)>)::<lambda(seastar::httpd::http_server&)>; Service = seastar::httpd::http_server]::<lambda()>::<this capture>’ [-Werror=attributes]
return smp::submit_to(c, [this, func] {
^
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:513:45: error: ‘seastar::sharded<T>::invoke_on_all(Func&&)::<lambda(unsigned int)> [with Func = seastar::httpd::http_server_control::set_routes(std::function<void(seastar::httpd::routes&)>)::<lambda(seastar::httpd::http_server&)>; Service = seastar::httpd::http_server]::<lambda()>’ declared with greater visibility than the type of its field ‘seastar::sharded<T>::invoke_on_all(Func&&)::<lambda(unsigned int)> [with Func = seastar::httpd::http_server_control::set_routes(std::function<void(seastar::httpd::routes&)>)::<lambda(seastar::httpd::http_server&)>; Service = seastar::httpd::http_server]::<lambda()>::<func capture>’ [-Werror=attributes]
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh: In instantiation of ‘struct seastar::sharded<T>::invoke_on_all(seastar::future<> (Service::*)(Args ...), Args ...)::<lambda(unsigned int)> [with Args = {seastar::ipv4_addr}; Service = seastar::httpd::http_server]::<lambda()>’:
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:485:30: required from ‘seastar::sharded<T>::invoke_on_all(seastar::future<> (Service::*)(Args ...), Args ...)::<lambda(unsigned int)> [with Args = {seastar::ipv4_addr}; Service = seastar::httpd::http_server]’
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:484:94: required from ‘struct seastar::sharded<T>::invoke_on_all(seastar::future<> (Service::*)(Args ...), Args ...) [with Args = {seastar::ipv4_addr}; Service = seastar::httpd::http_server]::<lambda(unsigned int)>’
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:484:29: required from ‘seastar::future<> seastar::sharded<T>::invoke_on_all(seastar::future<> (Service::*)(Args ...), Args ...) [with Args = {seastar::ipv4_addr}; Service = seastar::httpd::http_server]’
/home/pah/ws/go/src/github.com/ipfn/seastar/http/httpd.hh:367:70: required from here
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:485:54: error: ‘seastar::sharded<T>::invoke_on_all(seastar::future<> (Service::*)(Args ...), Args ...)::<lambda(unsigned int)> [with Args = {seastar::ipv4_addr}; Service = seastar::httpd::http_server]::<lambda()>’ declared with greater visibility than the type of its field ‘seastar::sharded<T>::invoke_on_all(seastar::future<> (Service::*)(Args ...), Args ...)::<lambda(unsigned int)> [with Args = {seastar::ipv4_addr}; Service = seastar::httpd::http_server]::<lambda()>::<this capture>’ [-Werror=attributes]
return smp::submit_to(c, [this, func, args...] {
^
/home/pah/ws/go/src/github.com/ipfn/seastar/core/sharded.hh:485:54: error: ‘seastar::sharded<T>::invoke_on_all(seastar::future<> (Service::*)(Args ...), Args ...)::<lambda(unsigned int)> [with Args = {seastar::ipv4_addr}; Service = seastar::httpd::http_server]::<lambda()>’ declared with greater visibility than the type of its field ‘seastar::sharded<T>::invoke_on_all(seastar::future<> (Service::*)(Args ...), Args ...)::<lambda(unsigned int)> [with Args = {seastar::ipv4_addr}; Service = seastar::httpd::http_server]::<lambda()>::<args#0 capture>’ [-Werror=attributes]
cc1plus: all warnings being treated as errors
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment