rocksdb icon indicating copy to clipboard operation
rocksdb copied to clipboard

recompile error

Open liyaojian opened this issue 6 years ago • 0 comments

Note: Please use Issues only for bug reports. For questions, discussions, feature requests, etc. post to dev group: https://groups.google.com/forum/#!forum/rocksdb or https://www.facebook.com/groups/rocksdb.dev

Expected behavior

compile correctly

Actual behavior

compile error:

  CC       third-party/folly/folly/synchronization/WaitOptions.o
  AR       librocksdb.a
ar: creating librocksdb.a
  CCLD     db_stress
db_stress_tool/db_stress_test_base.o: In function `rocksdb::StressTest::TestCheckpoint(rocksdb::ThreadState*, std::vector<int, std::allocator<int> > const&, std::vector<long, std::allocator<long> > const&)':
/data/rocksdb/db_stress_tool/db_stress_test_base.cc:1343: undefined reference to `rocksdb::test::DestroyDir(rocksdb::Env*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
Makefile:1215: recipe for target 'db_stress' failed
make[1]: *** [db_stress] Error 1
make[1]: Leaving directory '/data/rocksdb'
Makefile:711: recipe for target 'release' failed
make: *** [release] Error 2

Steps to reproduce the behavior

  1. first I run cd rocksdb && CFLAGS=-fPIC CXXFLAGS=-fPIC make release compiled correctly.
  2. some other reasons I run rm -rf rocksdb && git clone https://github.com/facebook/rocksdb && cd rocksdb && CFLAGS=-fPIC CXXFLAGS=-fPIC make release error like above.

system: Ubuntu 16.04.4 LTS how to solve it? thanks.

liyaojian avatar Jul 01 '20 07:07 liyaojian