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
[tkloczko@pers-jacek x86_64-redhat-linux-gnu]$ make -k/usr/bin/cmake -S/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2 -B/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/x86_64-redhat-linux-gnu --check-build-system CMakeFiles/Makefile.cmake 0/usr/bin/cmake -E cmake_progress_start /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/x86_64-redhat-linux-gnu/CMakeFiles /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/x86_64-redhat-linux-gnu//CMakeFiles/progress.marksmake -f CMakeFiles/Makefile2 allmake[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/x86_64-redhat-linux-gnu'make -f CMakeFiles/rocksdb.dir/build.make CMakeFiles/rocksdb.dir/dependmake[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/x86_64-redhat-linux-gnu'cd /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/x86_64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2 /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2 /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/x86_64-redhat-linux-gnu/CMakeFiles/rocksdb.dir/DependInfo.cmake --color=make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/x86_64-redhat-linux-gnu'make -f CMakeFiles/rocksdb.dir/build.make CMakeFiles/rocksdb.dir/buildmake[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/x86_64-redhat-linux-gnu'[ 0%] Building CXX object CMakeFiles/rocksdb.dir/table/block_based/data_block_hash_index.cc.o
/usr/bin/g++ -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DHAVE_PCLMUL -DHAVE_SSE42 -DLZ4 -DNUMA -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DZLIB -DZSTD -I//include -I/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2 -I/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/include -isystem /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/third-party/gtest-1.8.1/fused-src -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -momit-leaf-frame-pointer -march=native -fno-builtin-memcmp -DNDEBUG -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/table/block_based/data_block_hash_index.cc.o -MF CMakeFiles/rocksdb.dir/table/block_based/data_block_hash_index.cc.o.d -o CMakeFiles/rocksdb.dir/table/block_based/data_block_hash_index.cc.o -c /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc
In file included from /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:5:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:65:7: error: ‘uint8_t’ does not name a type 65 | const uint8_t kNoEntry = 255; | ^~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:12:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? 11 | #include "rocksdb/slice.h" +++ |+#include <cstdint> 12 |/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:66:7: error: ‘uint8_t’ does not name a type 66 | const uint8_t kCollision = 254; | ^~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:66:7: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:67:7: error: ‘uint8_t’ does not name a type 67 | const uint8_t kMaxRestartSupportedByHashIndex = 253; | ^~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:67:7: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:112:25: error: ‘uint32_t’ was not declared in this scope 112 | std::vector<std::pair<uint32_t, uint8_t>> hash_and_restart_pairs_; | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:112:25: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:112:35: error: ‘uint8_t’ was not declared in this scope 112 | std::vector<std::pair<uint32_t, uint8_t>> hash_and_restart_pairs_; | ^~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:112:35: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:112:35: error: template argument 1 is invalid/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:112:35: error: template argument 2 is invalid/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:112:42: error: template argument 1 is invalid 112 | std::vector<std::pair<uint32_t, uint8_t>> hash_and_restart_pairs_; | ^~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:112:42: error: template argument 2 is invalid/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h: In member function ‘size_t rocksdb::DataBlockHashIndexBuilder::EstimateSize() const’:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:93:5: error: ‘uint16_t’ was not declared in this scope 93 | uint16_t estimated_num_buckets = | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:93:5: note: ‘uint16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:97:5: error: ‘estimated_num_buckets’ was not declared in this scope; did you mean ‘estimated_num_buckets_’? 97 | estimated_num_buckets |= 1; | ^~~~~~~~~~~~~~~~~~~~~ | estimated_num_buckets_/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:100:63: error: ‘uint8_t’ was not declared in this scope 100 | static_cast<size_t>(estimated_num_buckets * sizeof(uint8_t)); | ^~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:100:63: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h: At global scope:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:120:37: error: ‘uint16_t’ has not been declared 120 | void Initialize(const char* data, uint16_t size, uint16_t* map_offset); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:120:52: error: ‘uint16_t’ has not been declared 120 | void Initialize(const char* data, uint16_t size, uint16_t* map_offset); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:122:3: error: ‘uint8_t’ does not name a type 122 | uint8_t Lookup(const char* data, uint32_t map_offset, const Slice& key) const; | ^~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:122:3: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:133:3: error: ‘uint16_t’ does not name a type 133 | uint16_t num_buckets_; | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:133:3: note: ‘uint16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h: In constructor ‘rocksdb::DataBlockHashIndex::DataBlockHashIndex()’:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:118:26: error: class ‘rocksdb::DataBlockHashIndex’ does not have any field named ‘num_buckets_’ 118 | DataBlockHashIndex() : num_buckets_(0) {} | ^~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h: In member function ‘bool rocksdb::DataBlockHashIndex::Valid()’:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:124:32: error: ‘num_buckets_’ was not declared in this scope 124 | inline bool Valid() { return num_buckets_ != 0; } | ^~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc: In member function ‘void rocksdb::DataBlockHashIndexBuilder::Add(const rocksdb::Slice&, size_t)’:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:19:23: error: ‘kMaxRestartSupportedByHashIndex’ was not declared in this scope; did you mean ‘kMaxBlockSizeSupportedByHashIndex’? 19 | if (restart_index > kMaxRestartSupportedByHashIndex) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | kMaxBlockSizeSupportedByHashIndex/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:25:27: error: request for member ‘emplace_back’ in ‘((rocksdb::DataBlockHashIndexBuilder*)this)->rocksdb::DataBlockHashIndexBuilder::hash_and_restart_pairs_’, which is of non-class type ‘int’ 25 | hash_and_restart_pairs_.emplace_back(hash_value, | ^~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc: In member function ‘void rocksdb::DataBlockHashIndexBuilder::Finish(std::string&)’:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:44:45: error: ‘kNoEntry’ was not declared in this scope 44 | std::vector<uint8_t> buckets(num_buckets, kNoEntry); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:46:22: error: ‘begin’ was not declared in this scope; did you mean ‘std::begin’? 46 | for (auto& entry : hash_and_restart_pairs_) { | ^~~~~~~~~~~~~~~~~~~~~~~ | std::beginIn file included from /usr/include/c++/13/string:53, from /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:8:/usr/include/c++/13/bits/range_access.h:114:37: note: ‘std::begin’ declared here 114 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept; | ^~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:46:22: error: ‘end’ was not declared in this scope; did you mean ‘std::end’? 46 | for (auto& entry : hash_and_restart_pairs_) { | ^~~~~~~~~~~~~~~~~~~~~~~ | std::end/usr/include/c++/13/bits/range_access.h:116:37: note: ‘std::end’ declared here 116 | template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept; | ^~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:54:27: error: ‘kCollision’ was not declared in this scope 54 | buckets[buck_idx] = kCollision; | ^~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc: In member function ‘void rocksdb::DataBlockHashIndexBuilder::Reset()’:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:73:27: error: request for member ‘clear’ in ‘((rocksdb::DataBlockHashIndexBuilder*)this)->rocksdb::DataBlockHashIndexBuilder::hash_and_restart_pairs_’, which is of non-class type ‘int’ 73 | hash_and_restart_pairs_.clear(); | ^~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc: At global scope:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:76:6: error: no declaration matches ‘void rocksdb::DataBlockHashIndex::Initialize(const char*, uint16_t, uint16_t*)’ 76 | void DataBlockHashIndex::Initialize(const char* data, uint16_t size, | ^~~~~~~~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:120:8: note: candidate is: ‘void rocksdb::DataBlockHashIndex::Initialize(const char*, int, int*)’ 120 | void Initialize(const char* data, uint16_t size, uint16_t* map_offset); | ^~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:116:7: note: ‘class rocksdb::DataBlockHashIndex’ defined here 116 | class DataBlockHashIndex { | ^~~~~~~~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:86:9: error: no declaration matches ‘uint8_t rocksdb::DataBlockHashIndex::Lookup(const char*, uint32_t, const rocksdb::Slice&) const’ 86 | uint8_t DataBlockHashIndex::Lookup(const char* data, uint32_t map_offset, | ^~~~~~~~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:86:9: note: no functions named ‘uint8_t rocksdb::DataBlockHashIndex::Lookup(const char*, uint32_t, const rocksdb::Slice&) const’/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:116:7: note: ‘class rocksdb::DataBlockHashIndex’ defined here 116 | class DataBlockHashIndex { | ^~~~~~~~~~~~~~~~~~make[2]: *** [CMakeFiles/rocksdb.dir/build.make:2333: CMakeFiles/rocksdb.dir/table/block_based/data_block_hash_index.cc.o] Error 1[ 0%] Building CXX object CMakeFiles/rocksdb.dir/util/string_util.cc.o
/usr/bin/g++ -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DHAVE_PCLMUL -DHAVE_SSE42 -DLZ4 -DNUMA -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DZLIB -DZSTD -I//include -I/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2 -I/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/include -isystem /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/third-party/gtest-1.8.1/fused-src -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -momit-leaf-frame-pointer -march=native -fno-builtin-memcmp -DNDEBUG -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/util/string_util.cc.o -MF CMakeFiles/rocksdb.dir/util/string_util.cc.o.d -o CMakeFiles/rocksdb.dir/util/string_util.cc.o -c /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.cc
In file included from /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.cc:6:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:23:46: error: ‘uint64_t’ has not been declared 23 | extern void AppendNumberTo(std::string* str, uint64_t num); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:32:48: error: ‘uint64_t’ has not been declared 32 | inline void PutBaseChars(char** buf, size_t n, uint64_t v, bool uppercase) { | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:52:56: error: ‘uint64_t’ has not been declared 52 | inline bool ParseBaseChars(const char** buf, size_t n, uint64_t* v) { | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h: In function ‘bool rocksdb::ParseBaseChars(const char**, size_t, int*)’:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:55:23: error: ‘uint64_t’ does not name a type 55 | *v *= static_cast<uint64_t>(kBase); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:15:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? 14 | #include "rocksdb/rocksdb_namespace.h" +++ |+#include <cstdint> 15 |/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:57:25: error: ‘uint64_t’ does not name a type 57 | *v += static_cast<uint64_t>(c - '0'); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:57:25: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:59:25: error: ‘uint64_t’ does not name a type 59 | *v += static_cast<uint64_t>(c - 'A' + 10); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:59:25: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:61:25: error: ‘uint64_t’ does not name a type 61 | *v += static_cast<uint64_t>(c - 'a' + 10); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:61:25: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h: At global scope:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:79:20: warning: ‘BytesToHumanString’ initialized and declared ‘extern’ 79 | extern std::string BytesToHumanString(uint64_t bytes); | ^~~~~~~~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:79:39: error: ‘uint64_t’ was not declared in this scope 79 | extern std::string BytesToHumanString(uint64_t bytes); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:79:39: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:86:23: error: ‘uint64_t’ was not declared in this scope 86 | int AppendHumanMicros(uint64_t micros, char* output, int len, | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:86:23: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:86:40: error: expected primary-expression before ‘char’ 86 | int AppendHumanMicros(uint64_t micros, char* output, int len, | ^~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:86:54: error: expected primary-expression before ‘int’ 86 | int AppendHumanMicros(uint64_t micros, char* output, int len, | ^~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:87:23: error: expected primary-expression before ‘bool’ 87 | bool fixed_format); | ^~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:87:40: error: expression list treated as compound expression in initializer [-fpermissive] 87 | bool fixed_format); | ^/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:90:22: error: ‘uint64_t’ was not declared in this scope 90 | int AppendHumanBytes(uint64_t bytes, char* output, int len); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:90:22: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:90:38: error: expected primary-expression before ‘char’ 90 | int AppendHumanBytes(uint64_t bytes, char* output, int len); | ^~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:90:52: error: expected primary-expression before ‘int’ 90 | int AppendHumanBytes(uint64_t bytes, char* output, int len); | ^~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:90:59: error: expression list treated as compound expression in initializer [-fpermissive] 90 | int AppendHumanBytes(uint64_t bytes, char* output, int len); | ^/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:100:45: error: ‘uint64_t’ has not been declared 100 | extern bool ConsumeDecimalNumber(Slice* in, uint64_t* val); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:149:1: error: ‘uint8_t’ does not name a type 149 | uint8_t ParseUint8(const std::string& value); | ^~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:149:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:151:1: error: ‘uint32_t’ does not name a type 151 | uint32_t ParseUint32(const std::string& value); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:151:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:156:1: error: ‘uint64_t’ does not name a type 156 | uint64_t ParseUint64(const std::string& value); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:156:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.cc:58:40: error: ‘int rocksdb::AppendHumanMicros(uint64_t, char*, int, bool)’ redeclared as different kind of entity 58 | bool fixed_format) { | ^/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:86:5: note: previous declaration ‘int rocksdb::AppendHumanMicros’ 86 | int AppendHumanMicros(uint64_t micros, char* output, int len, | ^~~~~~~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.cc:82:59: error: ‘int rocksdb::AppendHumanBytes(uint64_t, char*, int)’ redeclared as different kind of entity 82 | int AppendHumanBytes(uint64_t bytes, char* output, int len) { | ^/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:90:5: note: previous declaration ‘int rocksdb::AppendHumanBytes’ 90 | int AppendHumanBytes(uint64_t bytes, char* output, int len); | ^~~~~~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.cc:132:46: error: ‘std::string rocksdb::BytesToHumanString(uint64_t)’ redeclared as different kind of entity 132 | std::string BytesToHumanString(uint64_t bytes) { | ^/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:79:20: note: previous declaration ‘std::string rocksdb::BytesToHumanString’ 79 | extern std::string BytesToHumanString(uint64_t bytes); | ^~~~~~~~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.cc: In function ‘uint8_t rocksdb::ParseUint8(const std::string&)’:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.cc:301:18: error: ‘ParseUint64’ was not declared in this scope; did you mean ‘ParseInt64’? 301 | uint64_t num = ParseUint64(value); | ^~~~~~~~~~~ | ParseInt64/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.cc: In function ‘uint32_t rocksdb::ParseUint32(const std::string&)’:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.cc:310:18: error: ‘ParseUint64’ was not declared in this scope; did you mean ‘ParseInt64’? 310 | uint64_t num = ParseUint64(value); | ^~~~~~~~~~~ | ParseInt64make[2]: *** [CMakeFiles/rocksdb.dir/build.make:3369: CMakeFiles/rocksdb.dir/util/string_util.cc.o] Error 1make[2]: Target 'CMakeFiles/rocksdb.dir/build' not remade because of errors.make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/x86_64-redhat-linux-gnu'make[1]: *** [CMakeFiles/Makefile2:209: CMakeFiles/rocksdb.dir/all] Error 2make -f CMakeFiles/rocksdb-shared.dir/build.make CMakeFiles/rocksdb-shared.dir/dependmake[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/x86_64-redhat-linux-gnu'cd /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/x86_64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2 /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2 /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/x86_64-redhat-linux-gnu/CMakeFiles/rocksdb-shared.dir/DependInfo.cmake --color=make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/x86_64-redhat-linux-gnu'make -f CMakeFiles/rocksdb-shared.dir/build.make CMakeFiles/rocksdb-shared.dir/buildmake[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/x86_64-redhat-linux-gnu'[ 0%] Building CXX object CMakeFiles/rocksdb-shared.dir/table/block_based/data_block_hash_index.cc.o
/usr/bin/g++ -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DHAVE_PCLMUL -DHAVE_SSE42 -DLZ4 -DNUMA -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I//include -I/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2 -I/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/include -isystem /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/third-party/gtest-1.8.1/fused-src -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -momit-leaf-frame-pointer -march=native -fno-builtin-memcmp -DNDEBUG -fPIC -std=gnu++17 -MD -MT CMakeFiles/rocksdb-shared.dir/table/block_based/data_block_hash_index.cc.o -MF CMakeFiles/rocksdb-shared.dir/table/block_based/data_block_hash_index.cc.o.d -o CMakeFiles/rocksdb-shared.dir/table/block_based/data_block_hash_index.cc.o -c /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc
In file included from /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:5:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:65:7: error: ‘uint8_t’ does not name a type 65 | const uint8_t kNoEntry = 255; | ^~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:12:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? 11 | #include "rocksdb/slice.h" +++ |+#include <cstdint> 12 |/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:66:7: error: ‘uint8_t’ does not name a type 66 | const uint8_t kCollision = 254; | ^~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:66:7: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:67:7: error: ‘uint8_t’ does not name a type 67 | const uint8_t kMaxRestartSupportedByHashIndex = 253; | ^~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:67:7: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:112:25: error: ‘uint32_t’ was not declared in this scope 112 | std::vector<std::pair<uint32_t, uint8_t>> hash_and_restart_pairs_; | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:112:25: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:112:35: error: ‘uint8_t’ was not declared in this scope 112 | std::vector<std::pair<uint32_t, uint8_t>> hash_and_restart_pairs_; | ^~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:112:35: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:112:35: error: template argument 1 is invalid/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:112:35: error: template argument 2 is invalid/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:112:42: error: template argument 1 is invalid 112 | std::vector<std::pair<uint32_t, uint8_t>> hash_and_restart_pairs_; | ^~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:112:42: error: template argument 2 is invalid/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h: In member function ‘size_t rocksdb::DataBlockHashIndexBuilder::EstimateSize() const’:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:93:5: error: ‘uint16_t’ was not declared in this scope 93 | uint16_t estimated_num_buckets = | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:93:5: note: ‘uint16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:97:5: error: ‘estimated_num_buckets’ was not declared in this scope; did you mean ‘estimated_num_buckets_’? 97 | estimated_num_buckets |= 1; | ^~~~~~~~~~~~~~~~~~~~~ | estimated_num_buckets_/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:100:63: error: ‘uint8_t’ was not declared in this scope 100 | static_cast<size_t>(estimated_num_buckets * sizeof(uint8_t)); | ^~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:100:63: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h: At global scope:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:120:37: error: ‘uint16_t’ has not been declared 120 | void Initialize(const char* data, uint16_t size, uint16_t* map_offset); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:120:52: error: ‘uint16_t’ has not been declared 120 | void Initialize(const char* data, uint16_t size, uint16_t* map_offset); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:122:3: error: ‘uint8_t’ does not name a type 122 | uint8_t Lookup(const char* data, uint32_t map_offset, const Slice& key) const; | ^~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:122:3: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:133:3: error: ‘uint16_t’ does not name a type 133 | uint16_t num_buckets_; | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:133:3: note: ‘uint16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h: In constructor ‘rocksdb::DataBlockHashIndex::DataBlockHashIndex()’:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:118:26: error: class ‘rocksdb::DataBlockHashIndex’ does not have any field named ‘num_buckets_’ 118 | DataBlockHashIndex() : num_buckets_(0) {} | ^~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h: In member function ‘bool rocksdb::DataBlockHashIndex::Valid()’:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:124:32: error: ‘num_buckets_’ was not declared in this scope 124 | inline bool Valid() { return num_buckets_ != 0; } | ^~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc: In member function ‘void rocksdb::DataBlockHashIndexBuilder::Add(const rocksdb::Slice&, size_t)’:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:19:23: error: ‘kMaxRestartSupportedByHashIndex’ was not declared in this scope; did you mean ‘kMaxBlockSizeSupportedByHashIndex’? 19 | if (restart_index > kMaxRestartSupportedByHashIndex) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | kMaxBlockSizeSupportedByHashIndex/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:25:27: error: request for member ‘emplace_back’ in ‘((rocksdb::DataBlockHashIndexBuilder*)this)->rocksdb::DataBlockHashIndexBuilder::hash_and_restart_pairs_’, which is of non-class type ‘int’ 25 | hash_and_restart_pairs_.emplace_back(hash_value, | ^~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc: In member function ‘void rocksdb::DataBlockHashIndexBuilder::Finish(std::string&)’:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:44:45: error: ‘kNoEntry’ was not declared in this scope 44 | std::vector<uint8_t> buckets(num_buckets, kNoEntry); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:46:22: error: ‘begin’ was not declared in this scope; did you mean ‘std::begin’? 46 | for (auto& entry : hash_and_restart_pairs_) { | ^~~~~~~~~~~~~~~~~~~~~~~ | std::beginIn file included from /usr/include/c++/13/string:53, from /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:8:/usr/include/c++/13/bits/range_access.h:114:37: note: ‘std::begin’ declared here 114 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept; | ^~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:46:22: error: ‘end’ was not declared in this scope; did you mean ‘std::end’? 46 | for (auto& entry : hash_and_restart_pairs_) { | ^~~~~~~~~~~~~~~~~~~~~~~ | std::end/usr/include/c++/13/bits/range_access.h:116:37: note: ‘std::end’ declared here 116 | template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept; | ^~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:54:27: error: ‘kCollision’ was not declared in this scope 54 | buckets[buck_idx] = kCollision; | ^~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc: In member function ‘void rocksdb::DataBlockHashIndexBuilder::Reset()’:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:73:27: error: request for member ‘clear’ in ‘((rocksdb::DataBlockHashIndexBuilder*)this)->rocksdb::DataBlockHashIndexBuilder::hash_and_restart_pairs_’, which is of non-class type ‘int’ 73 | hash_and_restart_pairs_.clear(); | ^~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc: At global scope:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:76:6: error: no declaration matches ‘void rocksdb::DataBlockHashIndex::Initialize(const char*, uint16_t, uint16_t*)’ 76 | void DataBlockHashIndex::Initialize(const char* data, uint16_t size, | ^~~~~~~~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:120:8: note: candidate is: ‘void rocksdb::DataBlockHashIndex::Initialize(const char*, int, int*)’ 120 | void Initialize(const char* data, uint16_t size, uint16_t* map_offset); | ^~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:116:7: note: ‘class rocksdb::DataBlockHashIndex’ defined here 116 | class DataBlockHashIndex { | ^~~~~~~~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:86:9: error: no declaration matches ‘uint8_t rocksdb::DataBlockHashIndex::Lookup(const char*, uint32_t, const rocksdb::Slice&) const’ 86 | uint8_t DataBlockHashIndex::Lookup(const char* data, uint32_t map_offset, | ^~~~~~~~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.cc:86:9: note: no functions named ‘uint8_t rocksdb::DataBlockHashIndex::Lookup(const char*, uint32_t, const rocksdb::Slice&) const’/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/table/block_based/data_block_hash_index.h:116:7: note: ‘class rocksdb::DataBlockHashIndex’ defined here 116 | class DataBlockHashIndex { | ^~~~~~~~~~~~~~~~~~make[2]: *** [CMakeFiles/rocksdb-shared.dir/build.make:2333: CMakeFiles/rocksdb-shared.dir/table/block_based/data_block_hash_index.cc.o] Error 1[ 0%] Building CXX object CMakeFiles/rocksdb-shared.dir/util/string_util.cc.o
/usr/bin/g++ -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DHAVE_PCLMUL -DHAVE_SSE42 -DLZ4 -DNUMA -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I//include -I/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2 -I/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/include -isystem /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/third-party/gtest-1.8.1/fused-src -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -momit-leaf-frame-pointer -march=native -fno-builtin-memcmp -DNDEBUG -fPIC -std=gnu++17 -MD -MT CMakeFiles/rocksdb-shared.dir/util/string_util.cc.o -MF CMakeFiles/rocksdb-shared.dir/util/string_util.cc.o.d -o CMakeFiles/rocksdb-shared.dir/util/string_util.cc.o -c /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.cc
In file included from /home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.cc:6:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:23:46: error: ‘uint64_t’ has not been declared 23 | extern void AppendNumberTo(std::string* str, uint64_t num); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:32:48: error: ‘uint64_t’ has not been declared 32 | inline void PutBaseChars(char** buf, size_t n, uint64_t v, bool uppercase) { | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:52:56: error: ‘uint64_t’ has not been declared 52 | inline bool ParseBaseChars(const char** buf, size_t n, uint64_t* v) { | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h: In function ‘bool rocksdb::ParseBaseChars(const char**, size_t, int*)’:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:55:23: error: ‘uint64_t’ does not name a type 55 | *v *= static_cast<uint64_t>(kBase); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:15:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? 14 | #include "rocksdb/rocksdb_namespace.h" +++ |+#include <cstdint> 15 |/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:57:25: error: ‘uint64_t’ does not name a type 57 | *v += static_cast<uint64_t>(c - '0'); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:57:25: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:59:25: error: ‘uint64_t’ does not name a type 59 | *v += static_cast<uint64_t>(c - 'A' + 10); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:59:25: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:61:25: error: ‘uint64_t’ does not name a type 61 | *v += static_cast<uint64_t>(c - 'a' + 10); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:61:25: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h: At global scope:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:79:20: warning: ‘BytesToHumanString’ initialized and declared ‘extern’ 79 | extern std::string BytesToHumanString(uint64_t bytes); | ^~~~~~~~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:79:39: error: ‘uint64_t’ was not declared in this scope 79 | extern std::string BytesToHumanString(uint64_t bytes); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:79:39: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:86:23: error: ‘uint64_t’ was not declared in this scope 86 | int AppendHumanMicros(uint64_t micros, char* output, int len, | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:86:23: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:86:40: error: expected primary-expression before ‘char’ 86 | int AppendHumanMicros(uint64_t micros, char* output, int len, | ^~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:86:54: error: expected primary-expression before ‘int’ 86 | int AppendHumanMicros(uint64_t micros, char* output, int len, | ^~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:87:23: error: expected primary-expression before ‘bool’ 87 | bool fixed_format); | ^~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:87:40: error: expression list treated as compound expression in initializer [-fpermissive] 87 | bool fixed_format); | ^/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:90:22: error: ‘uint64_t’ was not declared in this scope 90 | int AppendHumanBytes(uint64_t bytes, char* output, int len); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:90:22: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:90:38: error: expected primary-expression before ‘char’ 90 | int AppendHumanBytes(uint64_t bytes, char* output, int len); | ^~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:90:52: error: expected primary-expression before ‘int’ 90 | int AppendHumanBytes(uint64_t bytes, char* output, int len); | ^~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:90:59: error: expression list treated as compound expression in initializer [-fpermissive] 90 | int AppendHumanBytes(uint64_t bytes, char* output, int len); | ^/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:100:45: error: ‘uint64_t’ has not been declared 100 | extern bool ConsumeDecimalNumber(Slice* in, uint64_t* val); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:149:1: error: ‘uint8_t’ does not name a type 149 | uint8_t ParseUint8(const std::string& value); | ^~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:149:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:151:1: error: ‘uint32_t’ does not name a type 151 | uint32_t ParseUint32(const std::string& value); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:151:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:156:1: error: ‘uint64_t’ does not name a type 156 | uint64_t ParseUint64(const std::string& value); | ^~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:156:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.cc:58:40: error: ‘int rocksdb::AppendHumanMicros(uint64_t, char*, int, bool)’ redeclared as different kind of entity 58 | bool fixed_format) { | ^/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:86:5: note: previous declaration ‘int rocksdb::AppendHumanMicros’ 86 | int AppendHumanMicros(uint64_t micros, char* output, int len, | ^~~~~~~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.cc:82:59: error: ‘int rocksdb::AppendHumanBytes(uint64_t, char*, int)’ redeclared as different kind of entity 82 | int AppendHumanBytes(uint64_t bytes, char* output, int len) { | ^/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:90:5: note: previous declaration ‘int rocksdb::AppendHumanBytes’ 90 | int AppendHumanBytes(uint64_t bytes, char* output, int len); | ^~~~~~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.cc:132:46: error: ‘std::string rocksdb::BytesToHumanString(uint64_t)’ redeclared as different kind of entity 132 | std::string BytesToHumanString(uint64_t bytes) { | ^/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.h:79:20: note: previous declaration ‘std::string rocksdb::BytesToHumanString’ 79 | extern std::string BytesToHumanString(uint64_t bytes); | ^~~~~~~~~~~~~~~~~~/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.cc: In function ‘uint8_t rocksdb::ParseUint8(const std::string&)’:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.cc:301:18: error: ‘ParseUint64’ was not declared in this scope; did you mean ‘ParseInt64’? 301 | uint64_t num = ParseUint64(value); | ^~~~~~~~~~~ | ParseInt64/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.cc: In function ‘uint32_t rocksdb::ParseUint32(const std::string&)’:/home/tkloczko/rpmbuild/BUILD/rocksdb-7.9.2/util/string_util.cc:310:18: error: ‘ParseUint64’ was not declared in this scope; did you mean ‘ParseInt64’? 310 | uint64_t num = ParseUint64(value); | ^~~~~~~~~~~ | ParseInt64make[2]: *** [CMakeFiles/rocksdb-shared.dir/build.make:3369: CMakeFiles/rocksdb-shared.dir/util/string_util.cc.o] Error 1
The text was updated successfully, but these errors were encountered:
https://gcc.gnu.org/gcc-13/porting_to.html
Build fails with:
The text was updated successfully, but these errors were encountered: