-
Notifications
You must be signed in to change notification settings - Fork 282
Running simple-cache-example gives an error, flag 'v' was defined more than once #309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
can you share more details regarding your linux setup? Which ubuntu version is this? |
same question, same cachelib tag, I am using ubuntu22.04
|
me too. I am using Ubuntu 22.04.3 LTS |
In fact, I have an inelegant solution. I just commented the error output code, like this: Then, return back Cachelib directory, and remove all build files: Finally, again to build, but not use git: This error will not apper, but I think it might cause other bugs in the future. |
Same problem |
I have frequently encountered issues with conflicts in the dynamically linked glog library. Based on my testing, a likely cause is that when building CacheLib, the -d option is used to compile third-party libraries in debug mode. For example, in the case of glog, the CacheLib test programs attempt to link against the release version of glog during compilation. However, the CacheLib build list only includes the debug version. As a result, the compiler ultimately links against the system-wide release version of glog, while thriftcpp2 links against the debug version of glog. This mismatch leads to dependency conflicts. I am unsure if this issue has been resolved in newer versions, but for v2023.04.24.00, it can be mitigated by running build.sh without the -d option. |
Describe the bug
when i run the example "simple_cache", i find an error "ERROR: flag 'v' was defined more than once"
To Reproduce
Steps to reproduce the behavior:
cd CacheLib/examples/simple_cache
./build.sh
./build/simple-cache-example
Expected behavior
i want to run this example.
Screenshots

Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: