cascadb
cascadb copied to clipboard
report a bug
1 when run make there is a problem appears:
like this
~/code/cascadb/src/tree/node.cpp: In member function ‘virtual bool cascadb::SchemaNode::read_from(cascadb::BlockReader&)’:
~/code/cascadb/src/tree/node.cpp:932: error: no matching function for call to ‘cascadb::BlockReader::readUInt64(size_t_)’
~/code/cascadb/src/serialize/block.h:77: note: candidates are: bool cascadb::BlockReader::readUInt64(uint64_t_)
2 ./src/serialize/super_block.h:21 0x62646163736163 suggest modify 0x62646163736163LL or gcc will report a notice
I guess you're compiling on a 32 bits system, where size_t is uint32_t. So when a size_t* is cased to uint64_t*, gcc error is reported.
I'll install a 32 bits virtual machine and fix this error and other similar errors.
yes I run it at i386 32bits.
[ 30%] Built target cascadbShared
Scanning dependencies of target cascadbStatic
[ 31%] Building CXX object src/CMakeFiles/cascadbStatic.dir/util/compressor.cpp.o
Linking CXX static library ../lib/libcascadbStatic.a
[ 60%] Built target cascadbStatic
Linking CXX executable ../bin/db_bench
/usr/local/lib/libsnappy.so:对‘std::__cxx11::basic_string<char, std::char_traits