mcrouter
mcrouter copied to clipboard
Unable to build mcrouter (ubuntu 18)
Hi Admin,
I tried to build mcrouter from source.
git clone --recurse https://github.com/facebook/mcrouter.git
autoreconf -i
git tag|tail -1 > VERSION
export FBTHRIFT_BIN=/usr/local/bin
LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include ./configure --with-boost=/usr/local --with-boost-libdir=/usr/local/lib
make all -j 4
mv -f test/.deps/mock_mc_server-MockMcServer.Tpo test/.deps/mock_mc_server-MockMcServer.Po
/bin/bash ../../libtool --tag=CXX --mode=link g++ -DLIBMC_FBTRACE_DISABLE -DDISABLE_COMPRESSION -Wno-missing-field-initializers -Wno-deprecated -W -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -g -O2 -L/usr/local/lib -o mock_mc_server test/mock_mc_server-MockMc.o test/mock_mc_server-MockMcServer.o ../../lib/libmcrouter.a -lthriftcpp2 -ltransport -lthriftprotocol -lasync -lconcurrency -lprotocol -lthrift-core -lfmt -lfizz -lwangle -lfolly -lfizz -lsodium -lfolly -liberty -ldl -ldouble-conversion -lz -lssl -lcrypto -levent -lgflags -lglog -L/usr/local/lib -lboost_context -lboost_filesystem -lboost_program_options -lboost_system -lboost_regex -lboost_thread -lpthread -pthread -ldl -lunwind -lbz2 -llz4 -llzma -lsnappy -lzstd
libtool: link: g++ -DLIBMC_FBTRACE_DISABLE -DDISABLE_COMPRESSION -Wno-missing-field-initializers -Wno-deprecated -W -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -g -O2 -o mock_mc_server test/mock_mc_server-MockMc.o test/mock_mc_server-MockMcServer.o -pthread -L/usr/local/lib ../../lib/libmcrouter.a -lthriftcpp2 -ltransport -lthriftprotocol -lasync -lconcurrency -lprotocol -lthrift-core -lfmt -lwangle -lfizz -lsodium -lfolly -liberty -ldouble-conversion -lz -lssl -lcrypto /usr/local/lib/libevent.so -lgflags /usr/local/lib/libglog.so -lboost_context -lboost_filesystem -lboost_program_options -lboost_system -lboost_regex -lboost_thread -lpthread -ldl -lunwind -lbz2 -llz4 -llzma -lsnappy -lzstd -pthread
test/mock_mc_server-MockMcServer.o: In function `void* folly::detail::StaticSingletonManagerWithRtti::make<folly::SingletonVault>()':
/usr/include/c++/9/chrono:166: undefined reference to `folly::SingletonVault::kDefaultShutdownTimeout_'
collect2: error: ld returned 1 exit status
Makefile:548: recipe for target 'mock_mc_server' failed
What is wrong? How can I disable the test?
Thank you!
There could be problems relating to the dependency Folly.
Try the scripts in /mcrouter/scripts
to build from source.
I am too facing issues with this. Any updates.