Comments (5)
Hello @dreddy ,
To verify: you are trying to build on the "testing" version of Debian (11/bullseye), on an x86-64 machine?
And, all the dependencies up-to cachelib
have been built successfully (using the build.sh
script) ?
I see the error log complains about "-lpthread" not being found, I'll check it locally on a "Bulleyes" virtual machine.
from cachelib.
Yes, I am trying to build on the "testing" version of Debian on x86-64, All the dependencies have been built. There is a gcc bug that gets triggered when building fbthrift. but a second invocation of make overcomes this problem.
cd /home/dreddy/test/CacheLib.git/build-fbthrift/thrift/lib/cpp2 && /usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_ATOMIC_DYN_LINK -DBOOST_CONTEXT_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DFMT_LOCALE -DGFLAGS_IS_A_DLL=0 -DTHRIFT_HAVE_LIBSNAPPY=0 -I/home/dreddy/test/CacheLib.git/cachelib/external/fbthrift -I/home/dreddy/test/CacheLib.git/build-fbthrift -isystem /usr/include/libdwarf -isystem /usr/include/libiberty -std=gnu++17 -O2 -g -DNDEBUG -std=c++17 -o CMakeFiles/thriftprotocol.dir/__/thrift/gen-cpp2/reflection_types.cpp.o -c /home/dreddy/test/CacheLib.git/build-fbthrift/thrift/lib/thrift/gen-cpp2/reflection_types.cpp
/home/dreddy/test/CacheLib.git/cachelib/external/fbthrift/thrift/lib/cpp2/protocol/TableBasedSerializer.cpp: In substitution of ‘template constexpr T apache::thrift::detail::identity(T) [with T = ]’:
/home/dreddy/test/CacheLib.git/cachelib/external/fbthrift/thrift/lib/cpp2/protocol/TableBasedSerializer.cpp:37:1: required from here
/home/dreddy/test/CacheLib.git/cachelib/external/fbthrift/thrift/lib/cpp2/protocol/TableBasedSerializer.cpp:32:67: internal compiler error: Segmentation fault
32 | reinterpret_cast(identity(set<Type, ThriftType>)),
| ^
/home/dreddy/test/CacheLib.git/cachelib/external/fbthrift/thrift/lib/cpp2/protocol/TableBasedSerializer.cpp:37:1: note: in expansion of macro ‘THRIFT_DEFINE_PRIMITIVE_TYPE_TO_INFO’
37 | THRIFT_DEFINE_PRIMITIVE_TYPE_TO_INFO(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-10/README.Bugs for instructions.
make[2]: *** [thrift/lib/cpp2/CMakeFiles/thriftprotocol.dir/build.make:173: thrift/lib/cpp2/CMakeFiles/thriftprotocol.dir/protocol/TableBasedSerializer.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/dreddy/test/CacheLib.git/build-fbthrift'
make[1]: *** [CMakeFiles/Makefile2:749: thrift/lib/cpp2/CMakeFiles/thriftprotocol.dir/all] Error 2
make[1]: Leaving directory '/home/dreddy/test/CacheLib.git/build-fbthrift'
make: *** [Makefile:171: all] Error 2
build-package.sh: error: make failed
build.sh: error: failed to build dependency 'fbthrift'
The error log complaint about -lpthread seems benign as even when I fix it with a different cmake recipe, it still fails here.
from cachelib.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980429
Something worth keeping in mind when quoting debian/bullseye
from cachelib.
@dreddy Is the build working fine with the latest commit from master for you ? If so, I'd close this issue.
from cachelib.
Indeed @sathyaphoenix it works. Please close this issue.
Pardon my delayed response as I was off-Internet for the past few weeks.
from cachelib.
Related Issues (20)
- Questions about trace files when running cachebench HOT 2
- Running simple-cache-example gives an error, flag 'v' was defined more than once HOT 6
- OSS build broken as of May, 2024 -> PRs are all blocked HOT 8
- No build support for Fedora37 OS HOT 4
- failed to build CacheLib following document HOT 2
- Build fails on debian-10 HOT 2
- Segmentation fault while fetching refcount HOT 2
- Minimum Limit For Cache Allocation? HOT 1
- build failed when building dependency 'fbthrift' HOT 3
- Build issue with CacheLib with missing source files HOT 3
- [Seeking Volunteers] Add new builds to CacheLib HOT 2
- Build is failing with error: ‘fmt::v10::detail::type_is_unformattable_for<const facebook::cachelib::navy::Status, char> _’ has incomplete type 1600 | type_is_unformattable_for<T, typename Context::char_type> _; | ^ HOT 4
- NavySetup should not involve the MockDevice HOT 2
- How to configure folly for logging CacheLib
- Build failed with error message "cachelib/navy/common/FdpNvme.h:143:28: error: expected ‘)’ before ‘&’ token 143 | explicit FdpNvme(NvmeData& data, struct nvme_fdp_ruh_status* ruh_status); | ~ ^ | ) make[2]: *** [navy/CMakeFiles/cachelib_navy.dir/build.make:328: navy/CMakeFiles/cachelib_navy.dir/common/Device.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:395: navy/CMakeFiles/cachelib_navy.dir/all] Error 2 make: *** [Makefile:130: all] Error 2 build-package.sh: error: make failed" HOT 4
- Are there instructions on how to build and install in Amazon Linux? HOT 1
- Is nvmLookupLatency just calculates job scheduling time? HOT 1
- Are admission policies applied to objects (value changes in DRAM) even if they are read from the NVM cache? HOT 3
- Some of shared libraries are not linked to unit test binaries
- cachebench can not execute
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cachelib.