You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when compile tikv branch master(6d60e7c),compile error occurs:
--- stderr
/home/worker/.cargo/git/checkouts/rust-rocksdb-82ef6e5337b3fbe6/1317e2e/librocksdb_sys/rocksdb/utilities/titandb/options.cc: In member function ‘std::string rocksdb::titandb::TitanCFOptions::ToString() const’:
/home/worker/.cargo/git/checkouts/rust-rocksdb-82ef6e5337b3fbe6/1317e2e/librocksdb_sys/rocksdb/utilities/titandb/options.cc:14:50: error: expected ‘)’ before ‘PRIu64’
snprintf(buf, sizeof(buf), "min_blob_size = %" PRIu64 "\n", min_blob_size);
...
/home/worker/.cargo/git/checkouts/rust-rocksdb-82ef6e5337b3fbe6/1317e2e/librocksdb_sys/rocksdb/utilities/titandb/version_builder.cc: In member function ‘void rocksdb::titandb::VersionBuilder::Builder::AddFile(const std::shared_ptrrocksdb::titandb::BlobFileMeta&)’:
/home/worker/.cargo/git/checkouts/rust-rocksdb-82ef6e5337b3fbe6/1317e2e/librocksdb_sys/rocksdb/utilities/titandb/version_builder.cc:14:35: error: expected ‘)’ before ‘PRIu64’
fprintf(stderr, "blob file %" PRIu64 " has been added before\n", number);
Then, I modify two files: librocksdb_sys/rocksdb/utilities/titandb/options.cc and librocksdb_sys/rocksdb/utilities/titandb/version_builder.cc, add Macro #define __STDC_FORMAT_MACROS before #include <inttypes.h>, it works.
Compile environment is below:
kernel: 3.10.0-693.1.1.el7.x86_64
linux: CentOS Linux release 7.2.1511 (Core)
gcc: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
The text was updated successfully, but these errors were encountered:
when compile
tikv
branch master(6d60e7c),compile error occurs:Then, I modify two files: librocksdb_sys/rocksdb/utilities/titandb/options.cc and librocksdb_sys/rocksdb/utilities/titandb/version_builder.cc, add Macro
#define __STDC_FORMAT_MACROS
before#include <inttypes.h>
, it works.Compile environment is below:
The text was updated successfully, but these errors were encountered: