facebook/mcrouter

GCC7.3 compile Mcrouter ,STOP!

iawen opened this issue · 1 comments

iawen commented

make[2]: 进入目录“/home/download/mcrouter/mcrouter”
g++ -DHAVE_CONFIG_H -I.. -DLIBMC_FBTRACE_DISABLE -DDISABLE_COMPRESSION -Wno-missing-field-initializers -Wno-deprecated -W -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -g -O2 -MT mcrouter-main.o -MD -MP -MF .deps/mcrouter-main.Tpo -c -o mcrouter-main.o test -f 'main.cpp' || echo './'main.cpp
In file included from ../mcrouter/CarbonRouterClient.h:178:0,
from ../mcrouter/CarbonRouterInstance.h:21,
from main.cpp:31:
../mcrouter/CarbonRouterClient-inl.h: In instantiation of ‘static facebook::memcache::mcrouter::CarbonRouterClient::Pointer facebook::memcache::mcrouter::CarbonRouterClient::create(std::weak_ptr<facebook::memcache::mcrouter::CarbonRouterInstance >, size_t, bool, bool) [with RouterInfo = facebook::memcache::MemcacheRouterInfo; facebook::memcache::mcrouter::CarbonRouterClient::Pointer = std::unique_ptr<facebook::memcache::mcrouter::CarbonRouterClientfacebook::memcache::MemcacheRouterInfo, facebook::memcache::mcrouter::CarbonRouterClientfacebook::memcache::MemcacheRouterInfo::Disconnecter>; size_t = long unsigned int]’:
../mcrouter/CarbonRouterInstance-inl.h:228:48: required from ‘typename facebook::memcache::mcrouter::CarbonRouterClient::Pointer facebook::memcache::mcrouter::CarbonRouterInstance::createSameThreadClient(size_t) [with RouterInfo = facebook::memcache::MemcacheRouterInfo; typename facebook::memcache::mcrouter::CarbonRouterClient::Pointer = std::unique_ptr<facebook::memcache::mcrouter::CarbonRouterClientfacebook::memcache::MemcacheRouterInfo, facebook::memcache::mcrouter::CarbonRouterClientfacebook::memcache::MemcacheRouterInfo::Disconnecter>; size_t = long unsigned int]’
../mcrouter/Server-inl.h:39:8: required from ‘void facebook::memcache::mcrouter::detail::serverLoop(facebook::memcache::mcrouter::CarbonRouterInstance&, size_t, folly::EventBase&, facebook::memcache::AsyncMcServerWorker&, const facebook::memcache::mcrouter::McrouterStandaloneOptions&) [with RouterInfo = facebook::memcache::MemcacheRouterInfo; RequestHandler = facebook::memcache::MemcacheRequestHandler; size_t = long unsigned int]’
../mcrouter/Server-inl.h:169:57: required from ‘facebook::memcache::mcrouter::runServer(const facebook::memcache::mcrouter::McrouterStandaloneOptions&, const facebook::memcache::McrouterOptions&)::<lambda(size_t, folly::EventBase&, facebook::memcache::AsyncMcServerWorker&)> [with RouterInfo = facebook::memcache::MemcacheRouterInfo; RequestHandler = facebook::memcache::MemcacheRequestHandler; size_t = long unsigned int]’
../mcrouter/Server-inl.h:165:19: required from ‘struct facebook::memcache::mcrouter::runServer(const facebook::memcache::mcrouter::McrouterStandaloneOptions&, const facebook::memcache::McrouterOptions&) [with RouterInfo = facebook::memcache::MemcacheRouterInfo; RequestHandler = facebook::memcache::MemcacheRequestHandler]::<lambda(size_t, class folly::EventBase&, class facebook::memcache::AsyncMcServerWorker&)>’
../mcrouter/Server-inl.h:164:5: required from ‘bool facebook::memcache::mcrouter::runServer(const facebook::memcache::mcrouter::McrouterStandaloneOptions&, const facebook::memcache::McrouterOptions&) [with RouterInfo = facebook::memcache::MemcacheRouterInfo; RequestHandler = facebook::memcache::MemcacheRequestHandler]’
main.cpp:364:45: required from ‘void run() [with RouterInfo = facebook::memcache::MemcacheRouterInfo; RequestHandler = facebook::memcache::MemcacheRequestHandler]’
main.cpp:491:5: required from here
../mcrouter/CarbonRouterClient-inl.h:261:17: 警告:‘new’ of type ‘facebook::memcache::mcrouter::CarbonRouterClientfacebook::memcache::MemcacheRouterInfo’ with extended alignment 128 [-Waligned-new=]
auto client = new CarbonRouterClient(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
std::move(router),
~~~~~~~~~~~~~~~~~~
maximumOutstanding,
~~~~~~~~~~~~~~~~~~~
maximumOutstandingError,
~~~~~~~~~~~~~~~~~~~~~~~~
sameThread);
~~~~~~~~~~~
../mcrouter/CarbonRouterClient-inl.h:261:17: 附注:uses ‘void* operator new(std::size_t)’, which does not have an alignment parameter
../mcrouter/CarbonRouterClient-inl.h:261:17: 附注:use ‘-faligned-new’ to enable C++17 over-aligned new suppor

Here Stop!
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
7771 root 20 0 3848680 2.703g 4952 D 1.4 92.7 2:00.12 cc1plus

iawen commented

Has been resolved! Increase memory and CPU