facebook / CacheLib

Pluggable in-process caching engine to build and scale high performance services
https://www.cachelib.org
Apache License 2.0
1.18k stars 254 forks source link

Build fails on debian-10 #313

Closed MaoZiming closed 1 month ago

MaoZiming commented 3 months ago

Describe the bug Build fails with

In member function ‘virtual void folly::AsyncSocket::writeChain(folly::AsyncWriter::WriteCallback*, std::unique_ptr<folly::IOBuf>&&, folly::WriteFlags)’:
/home/CacheLib/cachelib/external/folly/folly/io/async/AsyncSocket.cpp:1733:15: error: ‘BOOST_PP_IF’ was not declared in this scope
     iovec vec[BOOST_PP_IF(FOLLY_HAVE_VLA_01, count, kSmallIoVecSize)];
               ^~~~~~~~~~~
/home/CacheLib/cachelib/external/folly/folly/io/async/AsyncSocket.cpp:1733:15: note: suggested alternative: ‘BOOST_PP_IIF’
     iovec vec[BOOST_PP_IF(FOLLY_HAVE_VLA_01, count, kSmallIoVecSize)];
               ^~~~~~~~~~~
               BOOST_PP_IIF
/home/CacheLib/cachelib/external/folly/folly/io/async/AsyncSocket.cpp:1736:30: error: ‘vec’ was not declared in this scope
     writeChainImpl(callback, vec, count, std::move(buf), flags);

To Reproduce Steps to reproduce the behavior: ./contrib/build.sh -d -j -v

therealgymmy commented 3 months ago

yeah this is a known issue. You can try a platform such as centos 9.0 for now.

We need to debug further. Our OSS builds have been very fragile in the last month or so. Multiple dependencies broke one after another. Details in https://github.com/facebook/CacheLib/issues/310

therealgymmy commented 1 month ago

should be fixed by now