Repository navigation
Conversation
rpc/mailbox/mailbox.cc: In member function ‘std::string raw_mailbox_t::address_t::human_readable() const’: rpc/mailbox/mailbox.cc:33: error: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘long long unsigned int’
|
What platform is this on? |
|
Latest Debian. |
CC rdb_protocol/btree.cc -o ../build/release/obj/rdb_protocol/btree.o rdb_protocol/btree.cc: In function ‘void rdb_distribution_get(btree_slice_t*, int, const store_key_t&, transaction_t*, superblock_t*, distribution_read_response_t*)’: rdb_protocol/btree.cc:415: error: no matching function for call to ‘max(int64_t, long unsigned int)’ make: *** [../build/release/obj/rdb_protocol/btree.o] Error 1
CC rdb_protocol/protocol.cc -o ../build/release/obj/rdb_protocol/protocol.o
In file included from ./serializer/log/data_block_manager.hpp:8,
from ./serializer/log/log_serializer.hpp:17,
from ./serializer/config.hpp:6,
from rdb_protocol/protocol.cc:22:
./containers/bitset.hpp:81: error: integer constant is too large for ‘long’ type
make: *** [../build/release/obj/rdb_protocol/protocol.o] Error 1
CC rdb_protocol/js.cc -o ../build/release/obj/rdb_protocol/js.o rdb_protocol/js.cc: In member function ‘void js::compile_task_t::mkFuncSrc(scoped_array_t<char>*)’: rdb_protocol/js.cc:251: error: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘int’ rdb_protocol/js.cc:251: error: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘ssize_t’ rdb_protocol/js.cc:251: error: format ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type ‘int’ make: *** [../build/release/obj/rdb_protocol/js.o] Error 1
|
|
@gdonald -- thanks, we're working on the contributor agreement, it should be up very soon. We can review and accept the pull request then. |
|
@gdonald -- could you please fill out contributor agreement form: www.rethinkdb.com/community/cla/ You only have to do it once. Thanks for being patient! |
|
@srh - we got Greg's CLA. Could you review the pull request and merge it if you deem it sensible? |
|
Hi @gdonald. Your |
|
rdb_protocol/js.cc:251: error: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘int’ That compiler thinks those are int types. |
|
None of these compilation errors happen for me on the latest 64-bit debian stable. Are you running testing or unstable? Both size and endsz are declared as |
|
@gdonald: It's currently not in next (it has to go through an internal code review process) but you might want to checkout e6085b3 or branch sam_55. It makes some more portable fixes to the format string issues you faced, so that things still compile on the other platforms. It would be good to know if you can build with that. |
|
The branch sam_55 has been merged into next. Also, code has been added to directly cause the build to fail immediately and with an error message if pointers are not 64 bits. |
rpc/mailbox/mailbox.cc: In member function ‘std::string raw_mailbox_t::address_t::human_readable() const’:
rpc/mailbox/mailbox.cc:33: error: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘long long unsigned int’