Skip to content
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

build error when trying to use RocksCacheLibWrapper code example #374

Open
gaowayne opened this issue Jan 27, 2025 · 0 comments
Open

build error when trying to use RocksCacheLibWrapper code example #374

gaowayne opened this issue Jan 27, 2025 · 0 comments

Comments

@gaowayne
Copy link

Describe the bug
A clear and concise description of what the bug is.
build error, missing key files to leverage RocksCacheLibWrapper

To Reproduce
Steps to reproduce the behavior:

  1. build one small app, make RocksCacheLibWrapper as RocksDB 2nd cache. but I saw the build error for my example code, looks like this RocksCacheLibWrapper code is broken.
[ 33%] Building CXX object CMakeFiles/rocksdb_cachelib_example.dir/main.cpp.o
In file included from /mnt/nvme0n1/rocksdb/rocksdb_cachelib_example/main.cpp:7:
/mnt/nvme0n1/rocksdb/rocksdb_cachelib_example/rocks_secondary_cache/CachelibWrapper.h:19:10: fatal error: cachelib/facebook/admin/CacheAdmin.h: No such file or directory
   19 | #include "cachelib/facebook/admin/CacheAdmin.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/rocksdb_cachelib_example.dir/build.make:76: CMakeFiles/rocksdb_cachelib_example.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/rocksdb_cachelib_example.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Expected behavior
A clear and concise description of what you expected to happen.
there is great example to show how rocksdb 2nd cache talk to cachelib
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS] FedoraOS40
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant