Comments (8)
I try to build and install all the independencies separately. And I seem to successfully install all of them, though with great effort. Then I successfully run ./contrib/build-package.sh -j -i -d -v -t cachelib
and it says 'cachelib' is now installed
.
However, when I try the command ./bin/cachebench --help
it returns ./bin/cachebench: symbol lookup error: ./bin/cachebench: undefined symbol: _ZN6google21kLogSiteUninitializedE
Have no idea about the problem.
from cachelib.
It seems CacheLib relies an certain versions of its dependencies such as glogs and fmt. Can anyone specify the versions of them?
from cachelib.
It seems CacheLib relies an certain versions of its dependencies such as glogs and fmt. Can anyone specify the versions of them?
cc @agordon for information on that.
Can you share which platform you are trying this on ? We have github actions building the repo on a few platforms (ubuntu, debian, centos) and they seem to be green (except for the ubuntu one which looks like a configuration error).
from cachelib.
It seems CacheLib relies an certain versions of its dependencies such as glogs and fmt. Can anyone specify the versions of them?
cc @agordon for information on that.
Can you share which platform you are trying this on ? We have github actions building the repo on a few platforms (ubuntu, debian, centos) and they seem to be green (except for the ubuntu one which looks like a configuration error).
I am working on Ubuntu 18.04, 4.15.0-156-generic, with
gcc (Ubuntu 7.5.0-3ubuntu1 18.04) 7.5.0
g++ (Ubuntu 7.5.0-3ubuntu1 18.04) 7.5.0
from cachelib.
It seems CacheLib relies an certain versions of its dependencies such as glogs and fmt. Can anyone specify the versions of them?
@skyelves, it seems you have glog
or fmt
installed on the system (using apt-get
) - this might be the reason for the conflict.
CacheLib indeed uses its own versions of all packages (compiled and installed into a user subdirectory, so never override the system ones). This error hints to me we need to improve our build script to force it to ignore system-wide installation - I'll have a patch for that soon.
BTW,
For glog
we use version 0.5.0 - the last official release (see here: https://github.com/facebook/CacheLib/blob/main/contrib/build-package.sh#L120 ).
For fmt
- we use the latest git commit.
from cachelib.
Thanks, I have figured out the problem. Actually I am trying to build all the wrong dependencies myself.
The first problem is because I didn't built the libfmt as a share lib so the link failed. After I built the libfmt as the shared lib, it works, though another problem occurs.
from cachelib.
@skyelves - thanks for the update.
May I ask, was there a technical reason you tried to build the dependencies yourself?
The build script (./contrib/build.sh
) should take care of all the dependencies under normal conditions. was something not working?
Or perhaps our documentation isn't clear about it?
from cachelib.
@skyelves - thanks for the update.
May I ask, was there a technical reason you tried to build the dependencies yourself? The build script (
./contrib/build.sh
) should take care of all the dependencies under normal conditions. was something not working? Or perhaps our documentation isn't clear about it?
Thanks for the reply! I have successfully built the CacheLib and ran the benchmark. In a nutshell, my problems come from two aspects.
- inconsistent libboost version.
- glog and fmt already installed on my server, which are built as static lib with different version.
Just as you mentioned before, "This error hints to me we need to improve our build script to force it to ignore system-wide installation - I'll have a patch for that soon." This would be quite beneficial for cases like me.
Thanks again for your help!
from cachelib.
Related Issues (20)
- Enable FDP for CacheBench HOT 29
- qDepth Support for NVM Cache HOT 6
- 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
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.