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

Cannot build microbench #12647

Open
achanda opened this issue May 11, 2024 · 1 comment
Open

Cannot build microbench #12647

achanda opened this issue May 11, 2024 · 1 comment

Comments

@achanda
Copy link

achanda commented May 11, 2024

Expected behavior

I followed the instructions at https://github.com/facebook/rocksdb/tree/7d9642d8761725cbc02a6bd6e8011a2865ec4d00/microbench and tried to build microbench using Makefile

Actual behavior

Got a build error

╰─$ make run_microbench                                                                                                                                                                                  
$DEBUG_LEVEL is 1, $LIB_MODE is shared
Makefile:185: Warning: Compiling in debug mode. Don't use the resulting binary in production
  CC       microbench/ribbon_bench.o
microbench/ribbon_bench.cc:8:10: fatal error: 'benchmark/benchmark.h' file not found
#include "benchmark/benchmark.h"
         ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [microbench/ribbon_bench.o] Error 1

Steps to reproduce the behavior

Run the following from rocksdb root

make run_microbench                                                                                                                                                                                  
@achanda
Copy link
Author

achanda commented May 12, 2024

This worked after manually building and installing benchmark. Is it possible to detect if benchmark is available in the Makefile?

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