OpenMPDK / KVSSD

KV SSD host software including APIs and drivers
Other
229 stars 55 forks source link

Rocksdb-SPDK compilation failure #52

Closed DanlinJia closed 4 years ago

DanlinJia commented 4 years ago

Location (Korea, USA, China, India, etc.) USA

Describe the bug Rocksdb-SPDK compilation failed due to the libspdk_event_rpc library that cannot be found for SPDK with the version above 17 (18, 19).

To Reproduce Steps to reproduce the behavior:

  1. go to /KVSSD/application/kvbench/spdk/spdk/ to build spdk. The error occurs that head files cannot be found.
  2. Download and build spdk-18.04 from GitHub to replace /KVSSD/application/kvbench/spdk/spdk/.
  3. go to /KVSSD/application/kvbench/spdk/rocksdb/ to build rocksdb. Succeed.
  4. copy necessary libraries for spdk, dpdk and rocksdb to /usr/local/lib/
  5. cd kvbench mkdir build_spdk && cd build_spdk cmake ../ make blobfs_rocksdb_bench
  6. error: -lspdk_event_rpc not found.
  7. Download and compile spdk-17.10 from Github to replace /KVSSD/application/kvbench/spdk/spdk/, copy libspdk_event_rpc.a to /usr/local/lib.
  8. ''No reference'' error happens.

Expected behavior compile Rocksdb-SPDK successfully.

System environment (please complete the following information)

Additional context

  1. Benchmark test on kernel device driver succeeds for kvbench and rocksdb.
  2. The sample code test for the user device driver succeeds via uNVMe.
hao86yan commented 4 years ago

We set up the same environment in our lab and compiled the SPDK successfully. Please comfirm that if all dependencies were installed. For ubuntu: sudo apt-get install libsnappy-dev libev-dev libbz2-dev liblz4-dev libzstd-dev libjemalloc-dev libnuma-dev libgflags-dev libssl-dev libz-dev For CentOS: sudo yum install snappy-devel libev-devel bzip2-devel lz4-devel gflags-devel jemalloc-devel openssl-devel zlib-devel

If you still have the compilation issue, please provide more detailed error information ?

DanlinJia commented 4 years ago

Issue solved by changing the privilege of files to executable, under folders ''scripts/'' and "dpdk/buildtools/".

manojps commented 4 years ago

Changing permissions did not work for me. Trying to figure out what's different in my setup..