build error
I try to build Cachelib from the source and follows instruction "./contrib/build.sh -j" It reports the following error. All dependencies are compiled well other than cachelib and cachebench. My os version: g++ (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0. Need some help.
......
[ 98%] Built target cachelib_cachebench
[ 99%] Linking CXX executable binary_trace_gen
[100%] Linking CXX executable cachebench
[100%] Built target binary_trace_gen
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::clearCache(unsigned long)': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1284: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::remove(facebook::cachelib::KAllocation::Key)'
/usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1286: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::flushNvmCache()' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait >::clearCache(unsigned long)':
/home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1284: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>::remove(facebook::cachelib::KAllocation::Key)' /usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1286: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::flushNvmCache()'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait> >::~Cache()': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:791: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::shutDown()'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::~Cache()': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:791: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::shutDown()'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait> >::remove(facebook::cachelib::KAllocation::Key)': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:850: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::remove(facebook::cachelib::KAllocation::Key)'
/usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:846: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>::remove(facebook::cachelib::KAllocation::Key)' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait >::updateItemRecordVersion(facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::Lru2QCacheTrait >&)':
/home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1344: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>::invalidateNvm(facebook::cachelib::CacheItem<facebook::cachelib::Lru2QCacheTrait>&)' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait >::remove(facebook::cachelib::KAllocation::Key)':
/home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:850: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::remove(facebook::cachelib::KAllocation::Key)' /usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:846: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::remove(facebook::cachelib::KAllocation::Key)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::updateItemRecordVersion(facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait> >&)': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1344: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::invalidateNvm(facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait&)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait> >::allocateChainedItem(facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::Lru2QCacheTrait> > const&, unsigned long)': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:871: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::allocateChainedItem(facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::Lru2QCacheTrait > const&, unsigned int)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait> >::findToWrite(facebook::cachelib::KAllocation::Key)::{lambda()#1}::operator()() const': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1057: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::findToWrite(facebook::cachelib::KAllocation::Key)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait> >::find(facebook::cachelib::KAllocation::Key)::{lambda()#1}::operator()() const': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:970: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::find(facebook::cachelib::KAllocation::Key)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::allocateChainedItem(facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait> > const&, unsigned long)': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:871: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::allocateChainedItem(facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait > const&, unsigned int)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::findToWrite(facebook::cachelib::KAllocation::Key)::{lambda()#1}::operator()() const': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1057: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::findToWrite(facebook::cachelib::KAllocation::Key)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::find(facebook::cachelib::KAllocation::Key)::{lambda()#1}::operator()() const': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:970: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::find(facebook::cachelib::KAllocation::Key)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::release(facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait>*, bool)': /home/infra/libo/cachelib/cachelib/../cachelib/allocator/CacheAllocator.h:3324: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::releaseBackToAllocator(facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait&, facebook::cachelib::RemoveContext, bool, facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait const*)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::addChainedItem(facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait> >&, facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait> >)': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:881: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::addChainedItem(facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait >&, facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait >)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait> >::toSemiFuture() &&::{lambda(facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait> >)#2}::operator()(facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait> >) const': /home/infra/libo/cachelib/cachelib/../cachelib/allocator/Handle.h:189: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::adjustHandleCountForThread_private(long)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::insertOrReplace(facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait> >&)': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:930: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::insertOrReplace(facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait > const&)'
/usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:922: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::insertOrReplace(facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait> > const&)' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait >::toWriteHandle() &&':
/home/infra/libo/cachelib/cachelib/../cachelib/allocator/Handle.h:199: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::invalidateNvm(facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait>&)' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait >::allocate(signed char, folly::Range<char const*>, unsigned long, unsigned int)':
/home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:905: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::allocate(signed char, facebook::cachelib::KAllocation::Key, unsigned int, unsigned int, unsigned int)' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait >::clone() const':
/home/infra/libo/cachelib/cachelib/../cachelib/allocator/Handle.h:240: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::acquire(facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait>*)' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::CacheChainedAllocs<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait, facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait >, facebook::cachelib::CacheChainedItemIterator<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait, facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait const> > facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::viewAsChainedAllocsT<facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait >, facebook::cachelib::CacheChainedItemIterator<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait, facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait const> >(facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait > const&)':
/home/infra/libo/cachelib/cachelib/../cachelib/allocator/CacheAllocator.h:5610: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::findChainedItem(facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait> const&) const' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait >::toWriteHandle() &&':
/home/infra/libo/cachelib/cachelib/../cachelib/allocator/Handle.h:199: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::invalidateNvm(facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait>&)' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::release(facebook::cachelib::CacheItemfacebook::cachelib::Lru2QCacheTrait, bool)':
/home/infra/libo/cachelib/cachelib/../cachelib/allocator/CacheAllocator.h:3324: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>::releaseBackToAllocator(facebook::cachelib::CacheItem<facebook::cachelib::Lru2QCacheTrait>&, facebook::cachelib::RemoveContext, bool, facebook::cachelib::CacheItem<facebook::cachelib::Lru2QCacheTrait> const*)' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait >::addChainedItem(facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::Lru2QCacheTrait >&, facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::Lru2QCacheTrait >)':
/home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:881: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>::addChainedItem(facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::Lru2QCacheTrait> >&, facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::Lru2QCacheTrait> >)' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::Lru2QCacheTrait >::toSemiFuture() &&::{lambda(facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::Lru2QCacheTrait >)#2}::operator()(facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::Lru2QCacheTrait >) const':
/home/infra/libo/cachelib/cachelib/../cachelib/allocator/Handle.h:189: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>::adjustHandleCountForThread_private(long)' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait >::insertOrReplace(facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::Lru2QCacheTrait >&)':
/home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:930: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>::insertOrReplace(facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::Lru2QCacheTrait> > const&)' /usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:922: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::insertOrReplace(facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::Lru2QCacheTrait > const&)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::Lru2QCacheTrait> >::toWriteHandle() &&': /home/infra/libo/cachelib/cachelib/../cachelib/allocator/Handle.h:199: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::invalidateNvm(facebook::cachelib::CacheItemfacebook::cachelib::Lru2QCacheTrait&)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait> >::allocate(signed char, folly::Range<char const*>, unsigned long, unsigned int)': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:905: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::allocate(signed char, facebook::cachelib::KAllocation::Key, unsigned int, unsigned int, unsigned int)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::Lru2QCacheTrait> >::clone() const': /home/infra/libo/cachelib/cachelib/../cachelib/allocator/Handle.h:240: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::acquire(facebook::cachelib::CacheItemfacebook::cachelib::Lru2QCacheTrait)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::CacheChainedAllocs<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>, facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::Lru2QCacheTrait> >, facebook::cachelib::CacheChainedItemIterator<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>, facebook::cachelib::CacheItem<facebook::cachelib::Lru2QCacheTrait> const> > facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>::viewAsChainedAllocsT<facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::Lru2QCacheTrait> >, facebook::cachelib::CacheChainedItemIterator<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>, facebook::cachelib::CacheItem<facebook::cachelib::Lru2QCacheTrait> const> >(facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::Lru2QCacheTrait> > const&)': /home/infra/libo/cachelib/cachelib/../cachelib/allocator/CacheAllocator.h:5610: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::findChainedItem(facebook::cachelib::CacheItemfacebook::cachelib::Lru2QCacheTrait const&) const'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::Lru2QCacheTrait> >::toWriteHandle() &&': /home/infra/libo/cachelib/cachelib/../cachelib/allocator/Handle.h:199: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::invalidateNvm(facebook::cachelib::CacheItemfacebook::cachelib::Lru2QCacheTrait&)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::asyncFind(facebook::cachelib::KAllocation::Key)::{lambda()#1}::operator()() const': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1001: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::find(facebook::cachelib::KAllocation::Key)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait> >::toWriteHandle() &&': /home/infra/libo/cachelib/cachelib/../cachelib/allocator/Handle.h:199: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::invalidateNvm(facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait&)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait> >::asyncFind(facebook::cachelib::KAllocation::Key)::{lambda()#1}::operator()() const': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1001: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::find(facebook::cachelib::KAllocation::Key)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::Lru2QCacheTrait> >::toWriteHandle() &&': /home/infra/libo/cachelib/cachelib/../cachelib/allocator/Handle.h:199: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::invalidateNvm(facebook::cachelib::CacheItemfacebook::cachelib::Lru2QCacheTrait&)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::hasNvmCacheWarmedUp() const': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1265: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::getNvmCacheStatsMap() const'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::couldExist(facebook::cachelib::KAllocation::Key)': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:959: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::couldExistFast(facebook::cachelib::KAllocation::Key)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::getNvmBytesWritten() const': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1102: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::getNvmCacheStatsMap() const'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait> >::hasNvmCacheWarmedUp() const': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1265: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::getNvmCacheStatsMap() const'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait> >::couldExist(facebook::cachelib::KAllocation::Key)': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:959: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::couldExistFast(facebook::cachelib::KAllocation::Key)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait> >::getNvmBytesWritten() const': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1102: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::getNvmCacheStatsMap() const'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::getStats() const': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1114: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::getPoolStats(signed char) const'
/usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1121: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::getPoolStats(signed char) const' /usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1132: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::getPoolStats(signed char) const'
/usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1139: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::getGlobalCacheStats() const' /usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1140: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::getSlabReleaseStats() const'
/usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1141: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::getNvmCacheStatsMap() const' /usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1206: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::getBackgroundMoverClassStats(facebook::cachelib::MoverDir) const'
/usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1208: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::getBackgroundMoverClassStats(facebook::cachelib::MoverDir) const' /usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1203: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::getNvmCacheStatsMap() const'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function std::_MakeUniq<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::__single_object std::make_unique<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>, facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >&>(facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >&)': /usr/include/c++/10/bits/unique_ptr.h:962: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::CacheAllocator(facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait >)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::Cache(facebook::cachelib::cachebench::CacheConfig const&, std::function<std::unique_ptr<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::SyncObj, std::default_delete<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::SyncObj> > (facebook::cachelib::KAllocation::Key)>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:765: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::getCacheMemoryStats() const'
/usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:771: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::addPool(folly::Range<char const*>, unsigned long, std::set<unsigned int, std::less<unsigned int>, std::allocator<unsigned int> > const&, facebook::cachelib::MMLru::Config, std::shared_ptr<facebook::cachelib::RebalanceStrategy>, std::shared_ptr<facebook::cachelib::RebalanceStrategy>, bool)' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function std::_MakeUniq<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait >::__single_object std::make_unique<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait, facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::SharedMemAttachT, facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait >&>(facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::SharedMemAttachT&&, facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait >&)':
/usr/include/c++/10/bits/unique_ptr.h:962: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::CacheAllocator(facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::SharedMemAttachT, facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >)' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function std::_MakeUniq<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait >::__single_object std::make_unique<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait, facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::SharedMemNewT, facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait >&>(facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::SharedMemNewT&&, facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait >&)':
/usr/include/c++/10/bits/unique_ptr.h:962: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::CacheAllocator(facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::SharedMemNewT, facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >)' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait >::getStats() const':
/home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1114: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>::getPoolStats(signed char) const' /usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1121: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::getPoolStats(signed char) const'
/usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1132: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>::getPoolStats(signed char) const' /usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1139: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::getGlobalCacheStats() const'
/usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1140: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>::getSlabReleaseStats() const' /usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1141: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::getNvmCacheStatsMap() const'
/usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1206: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>::getBackgroundMoverClassStats(facebook::cachelib::MoverDir) const' /usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1208: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::getBackgroundMoverClassStats(facebook::cachelib::MoverDir) const'
/usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:1203: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>::getNvmCacheStatsMap() const' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function std::_MakeUniq<facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait >::__single_object std::make_unique<facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait, facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait >&>(facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait >&)':
/usr/include/c++/10/bits/unique_ptr.h:962: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>::CacheAllocator(facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait> >)' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait >::Cache(facebook::cachelib::cachebench::CacheConfig const&, std::function<std::unique_ptr<facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::SyncObj, std::default_delete<facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::SyncObj> > (facebook::cachelib::KAllocation::Key)>, std::__cxx11::basic_string<char, std::char_traitsfacebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>::getCacheMemoryStats() const' /usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:771: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::addPool(folly::Range<char const*>, unsigned long, std::set<unsigned int, std::lessstd::_MakeUniq<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait> >::__single_object std::make_unique<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>, facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>::SharedMemAttachT, facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait> >&>(facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>::SharedMemAttachT&&, facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait> >&)': /usr/include/c++/10/bits/unique_ptr.h:962: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::CacheAllocator(facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::SharedMemAttachT, facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait >)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o): in function std::_MakeUniq<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait> >::__single_object std::make_unique<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>, facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>::SharedMemNewT, facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait> >&>(facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait>::SharedMemNewT&&, facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocator<facebook::cachelib::Lru2QCacheTrait> >&)': /usr/include/c++/10/bits/unique_ptr.h:962: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::CacheAllocator(facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::SharedMemNewT, facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait >)'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o):(.data.rel.ro._ZTIZN8facebook8cachelib10cachebench18AsyncCacheStressorINS0_14CacheAllocatorINS0_13LruCacheTraitEEEEC4ENS1_11CacheConfigENS1_14StressorConfigEOSt10unique_ptrINS1_13GeneratorBaseESt14default_deleteISA_EEE18CacheStressSyncObj[_ZTIZN8facebook8cachelib10cachebench18AsyncCacheStressorINS0_14CacheAllocatorINS0_13LruCacheTraitEEEEC4ENS1_11CacheConfigENS1_14StressorConfigEOSt10unique_ptrINS1_13GeneratorBaseESt14default_deleteISA_EEE18CacheStressSyncObj]+0x10): undefined reference to typeinfo for facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::SyncObj' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o):(.data.rel.ro._ZTIZN8facebook8cachelib10cachebench18AsyncCacheStressorINS0_14CacheAllocatorINS0_15Lru2QCacheTraitEEEEC4ENS1_11CacheConfigENS1_14StressorConfigEOSt10unique_ptrINS1_13GeneratorBaseESt14default_deleteISA_EEE18CacheStressSyncObj[_ZTIZN8facebook8cachelib10cachebench18AsyncCacheStressorINS0_14CacheAllocatorINS0_15Lru2QCacheTraitEEEEC4ENS1_11CacheConfigENS1_14StressorConfigEOSt10unique_ptrINS1_13GeneratorBaseESt14default_deleteISA_EEE18CacheStressSyncObj]+0x10): undefined reference to typeinfo for facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::SyncObj'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o):(.data.rel.ro._ZTIZN8facebook8cachelib10cachebench13CacheStressorINS0_14CacheAllocatorINS0_13LruCacheTraitEEEEC4ENS1_11CacheConfigENS1_14StressorConfigEOSt10unique_ptrINS1_13GeneratorBaseESt14default_deleteISA_EEE18CacheStressSyncObj[_ZTIZN8facebook8cachelib10cachebench13CacheStressorINS0_14CacheAllocatorINS0_13LruCacheTraitEEEEC4ENS1_11CacheConfigENS1_14StressorConfigEOSt10unique_ptrINS1_13GeneratorBaseESt14default_deleteISA_EEE18CacheStressSyncObj]+0x10): undefined reference to typeinfo for facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::SyncObj' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o):(.data.rel.ro._ZTIZN8facebook8cachelib10cachebench13CacheStressorINS0_14CacheAllocatorINS0_15Lru2QCacheTraitEEEEC4ENS1_11CacheConfigENS1_14StressorConfigEOSt10unique_ptrINS1_13GeneratorBaseESt14default_deleteISA_EEE18CacheStressSyncObj[_ZTIZN8facebook8cachelib10cachebench13CacheStressorINS0_14CacheAllocatorINS0_15Lru2QCacheTraitEEEEC4ENS1_11CacheConfigENS1_14StressorConfigEOSt10unique_ptrINS1_13GeneratorBaseESt14default_deleteISA_EEE18CacheStressSyncObj]+0x10): undefined reference to typeinfo for facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::SyncObj'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o):(.data.rel.ro._ZTVZN8facebook8cachelib10cachebench18AsyncCacheStressorINS0_14CacheAllocatorINS0_13LruCacheTraitEEEEC4ENS1_11CacheConfigENS1_14StressorConfigEOSt10unique_ptrINS1_13GeneratorBaseESt14default_deleteISA_EEE18CacheStressSyncObj[_ZTVZN8facebook8cachelib10cachebench18AsyncCacheStressorINS0_14CacheAllocatorINS0_13LruCacheTraitEEEEC4ENS1_11CacheConfigENS1_14StressorConfigEOSt10unique_ptrINS1_13GeneratorBaseESt14default_deleteISA_EEE18CacheStressSyncObj]+0x20): undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::SyncObj::isValid() const' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o):(.data.rel.ro._ZTVZN8facebook8cachelib10cachebench18AsyncCacheStressorINS0_14CacheAllocatorINS0_15Lru2QCacheTraitEEEEC4ENS1_11CacheConfigENS1_14StressorConfigEOSt10unique_ptrINS1_13GeneratorBaseESt14default_deleteISA_EEE18CacheStressSyncObj[_ZTVZN8facebook8cachelib10cachebench18AsyncCacheStressorINS0_14CacheAllocatorINS0_15Lru2QCacheTraitEEEEC4ENS1_11CacheConfigENS1_14StressorConfigEOSt10unique_ptrINS1_13GeneratorBaseESt14default_deleteISA_EEE18CacheStressSyncObj]+0x20): undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::SyncObj::isValid() const'
/usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o):(.data.rel.ro._ZTVZN8facebook8cachelib10cachebench13CacheStressorINS0_14CacheAllocatorINS0_13LruCacheTraitEEEEC4ENS1_11CacheConfigENS1_14StressorConfigEOSt10unique_ptrINS1_13GeneratorBaseESt14default_deleteISA_EEE18CacheStressSyncObj[_ZTVZN8facebook8cachelib10cachebench13CacheStressorINS0_14CacheAllocatorINS0_13LruCacheTraitEEEEC4ENS1_11CacheConfigENS1_14StressorConfigEOSt10unique_ptrINS1_13GeneratorBaseESt14default_deleteISA_EEE18CacheStressSyncObj]+0x20): undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::SyncObj::isValid() const' /usr/bin/ld: libcachelib_cachebench.a(Stressor.cpp.o):(.data.rel.ro._ZTVZN8facebook8cachelib10cachebench13CacheStressorINS0_14CacheAllocatorINS0_15Lru2QCacheTraitEEEEC4ENS1_11CacheConfigENS1_14StressorConfigEOSt10unique_ptrINS1_13GeneratorBaseESt14default_deleteISA_EEE18CacheStressSyncObj[_ZTVZN8facebook8cachelib10cachebench13CacheStressorINS0_14CacheAllocatorINS0_15Lru2QCacheTraitEEEEC4ENS1_11CacheConfigENS1_14StressorConfigEOSt10unique_ptrINS1_13GeneratorBaseESt14default_deleteISA_EEE18CacheStressSyncObj]+0x20): undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::Lru2QCacheTrait::SyncObj::isValid() const'
/usr/bin/ld: libcachelib_cachebench.a(FastShutdown.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::getCacheSize() const': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:356: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::getCacheMemoryStats() const'
/usr/bin/ld: libcachelib_cachebench.a(FastShutdown.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::remove(facebook::cachelib::KAllocation::Key)': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:850: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::remove(facebook::cachelib::KAllocation::Key)'
/usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:846: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::remove(facebook::cachelib::KAllocation::Key)' /usr/bin/ld: libcachelib_cachebench.a(FastShutdown.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait >::shutDown()':
/home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:820: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::shutDown()' /usr/bin/ld: libcachelib_cachebench.a(FastShutdown.cpp.o): in function std::_MakeUniq<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait >::__single_object std::make_unique<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait, facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::SharedMemAttachT, facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait >&>(facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::SharedMemAttachT&&, facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait >&)':
/usr/include/c++/10/bits/unique_ptr.h:962: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::CacheAllocator(facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::SharedMemAttachT, facebook::cachelib::CacheAllocatorConfig<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >)' /usr/bin/ld: libcachelib_cachebench.a(FastShutdown.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait >::cleanupSharedMem()':
/home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:826: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::cleanupStrayShmSegments(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' /usr/bin/ld: libcachelib_cachebench.a(IntegrationStressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait >::remove(facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait > const&)':
/home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:863: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::remove(facebook::cachelib::KAllocation::Key)' /usr/bin/ld: libcachelib_cachebench.a(IntegrationStressor.cpp.o): in function facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait >::toWriteHandle() &&':
/home/infra/libo/cachelib/cachelib/../cachelib/allocator/Handle.h:199: undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::invalidateNvm(facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait>&)' /usr/bin/ld: /home/infra/libo/cachelib/cachelib/../cachelib/allocator/Handle.h:199: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::invalidateNvm(facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait&)'
/usr/bin/ld: libcachelib_cachebench.a(IntegrationStressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::remove(facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait> > const&)': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:859: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::remove(facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait > const&)'
/usr/bin/ld: libcachelib_cachebench.a(IntegrationStressor.cpp.o): in function facebook::cachelib::detail::ReadHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait> >::clone() const': /home/infra/libo/cachelib/cachelib/../cachelib/allocator/Handle.h:240: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::acquire(facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait*)'
/usr/bin/ld: libcachelib_cachebench.a(IntegrationStressor.cpp.o): in function facebook::cachelib::CacheChainedAllocs<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>, facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait> >, facebook::cachelib::CacheChainedItemIterator<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>, facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait> > > facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::viewAsChainedAllocsT<facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait> >, facebook::cachelib::CacheChainedItemIterator<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>, facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait> > >(facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait> > const&)': /home/infra/libo/cachelib/cachelib/../cachelib/allocator/CacheAllocator.h:5610: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::findChainedItem(facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait const&) const'
/usr/bin/ld: libcachelib_cachebench.a(IntegrationStressor.cpp.o): in function facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::replaceChainedItem(facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait>&, facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait> >, facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait>&)': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:888: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::replaceChainedItem(facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait&, facebook::cachelib::detail::WriteHandleImpl<facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait >, facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait&)'
/usr/bin/ld: libcachelib_cachebench.a(IntegrationStressor.cpp.o): in function auto facebook::cachelib::cachebench::Cache<facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait> >::getUsableSize<facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait>&>(facebook::cachelib::CacheItem<facebook::cachelib::LruCacheTrait>&)': /home/infra/libo/cachelib/cachelib/../cachelib/cachebench/cache/Cache.h:276: undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::getUsableSize(facebook::cachelib::CacheItemfacebook::cachelib::LruCacheTrait const&) const'
/usr/bin/ld: libcachelib_cachebench.a(IntegrationStressor.cpp.o):(.data.rel.ro+0x10): undefined reference to typeinfo for facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::SyncObj' /usr/bin/ld: libcachelib_cachebench.a(IntegrationStressor.cpp.o):(.data.rel.ro+0x28): undefined reference to typeinfo for facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::SyncObj'
/usr/bin/ld: libcachelib_cachebench.a(IntegrationStressor.cpp.o):(.data.rel.ro+0x100): undefined reference to facebook::cachelib::CacheAllocator<facebook::cachelib::LruCacheTrait>::SyncObj::isValid() const' /usr/bin/ld: libcachelib_cachebench.a(IntegrationStressor.cpp.o):(.data.rel.ro+0x128): undefined reference to facebook::cachelib::CacheAllocatorfacebook::cachelib::LruCacheTrait::SyncObj::isValid() const'
/usr/bin/ld: /home/infra/libo/cachelib/opt/cachelib/lib/libthriftcpp2.so.1.0.0: undefined reference to folly::coro::Baton::waitImpl(folly::coro::Baton::WaitOperation*) const' /usr/bin/ld: /home/infra/libo/cachelib/opt/cachelib/lib/libthriftcpp2.so.1.0.0: undefined reference to folly::coro::Baton::post()'
/usr/bin/ld: /home/infra/libo/cachelib/opt/cachelib/lib/libthriftcpp2.so.1.0.0: undefined reference to folly::resumeCoroutineWithNewAsyncStackRoot(std::__n4861::coroutine_handle<void>, folly::AsyncStackFrame&)' /usr/bin/ld: /home/infra/libo/cachelib/opt/cachelib/lib/libthriftcpp2.so.1.0.0: undefined reference to folly::coro::Baton::~Baton()'
collect2: error: ld returned 1 exit status
make[2]: *** [cachebench/CMakeFiles/cachebench.dir/build.make:143: cachebench/cachebench] Error 1
make[1]: *** [CMakeFiles/Makefile2:683: cachebench/CMakeFiles/cachebench.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
build-package.sh: error: make failed
build.sh: error: failed to build cachelib