cascadb icon indicating copy to clipboard operation
cascadb copied to clipboard

report a bug

Open newbluesky opened this issue 11 years ago • 3 comments

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

newbluesky avatar Mar 22 '13 01:03 newbluesky

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.

weicao avatar Mar 22 '13 02:03 weicao

yes I run it at i386 32bits.

newbluesky avatar Mar 25 '13 01:03 newbluesky

[ 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, std::allocator >::M_append(char const, unsigned long)@GLIBCXX_3.4.21’未定义的引用 /usr/local/lib/libsnappy.so:对‘std::__cxx11::basic_string<char, std::char_traits, std::allocator >::resize(unsigned long, char)@GLIBCXX_3.4.21’未定义的引用 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *_* [bin/db_bench] 错误 1 make[1]: *** [bench/CMakeFiles/db_bench.dir/all] 错误 2 make: *** [all] 错误 2

javacty avatar May 01 '15 23:05 javacty