Skip to content

build error when trying to use RocksCacheLibWrapper code example #374

Open
@gaowayne

Description

@gaowayne

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions