Repository navigation
Closed
Milestone
Description
gcc version is gcc version 4.4.5.
Whole error trace is:
CC clustering/administration/cli/admin_cluster_link.cc -o ../build/release/obj/clustering/administration/cli/admin_cluster_link.o
cc1plus: warnings being treated as errors
In file included from ./clustering/administration/logger.hpp:16,
from ./clustering/administration/log_transfer.hpp:8,
from ./clustering/administration/metadata.hpp:15,
from ./clustering/administration/issues/machine_down.hpp:11,
from ./clustering/administration/admin_tracker.hpp:15,
from ./clustering/administration/cli/admin_cluster_link.hpp:10,
from clustering/administration/cli/admin_cluster_link.cc:3:
./rpc/mailbox/typed.hpp: In member function 'void mailbox_t<void(a0_t, a1_t, a2_t, a3_t)>::read_impl_t::read(read_stream_t*) [with arg0_t = int, arg1_t = timespec, arg2_t = timespec, arg3_t = mailbox_addr_t<void(boost::variant<std::vector<log_message_t, std::allocator<log_message_t> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_>)>]':
./rpc/mailbox/typed.hpp:411: error: 'arg1.timespec::tv_nsec' may be used uninitialized in this function
./rpc/mailbox/typed.hpp:412: error: 'arg2.timespec::tv_nsec' may be used uninitialized in this function
make: *** [../build/release/obj/clustering/administration/cli/admin_cluster_link.o] Error 1
Activity
mlucy commentedon Nov 10, 2012
Hi gysing,
Thanks for reporting the compilation error; we'll look into it.
You might have better luck with a higher version of gcc (4.6 should work) or removing
-Werrorin the Makefile, but we don't currently support 10.04 or 10.10 because the kernel is apparently missing some features we use.coffeemug commentedon Nov 10, 2012
Specifically, the main feature missing is TCP_USER_TIMEOUT kernel option. We can work around it in the server, but we haven't done it yet, and it's a fairly significant amount of work. There are also some other minor annoyanced (gcc errors, libv8).
Tryneus commentedon Nov 10, 2012
It looks like TCP_USER_TIMEOUT was added in kernel version 2.6.37, which means ubuntu 11.04+
squarism commentedon Nov 11, 2012
I'm having the same issue in CentOS 6.3 (the latest as of right now). The kernel is 2.6.32-279.el6.x86_64. So I guess RPM systems would be out until a new kernel 2.6.37+ comes out as an update. You could roll your own kernel but RPM based systems probably aren't going to do that.
Is there some other RPM distro you were targeting?
coffeemug commentedon Nov 11, 2012
No, we currently don't have RPM support and don't support kernels before 2.6.37 -- sorry :( We're having lots of portability discussions right now, so we'll have a concrete idea and schedule of what we will and will not support soon.
coffeemug commentedon Nov 12, 2012
Ok, this is going into next. Assigning to @Tryneus. We have to build application-level heartbeats to make this happen.
danielmewes commentedon Nov 12, 2012
I wonder if these old files from the replication code could be of help... They don't do anything too fancy, just provide some convenient way of temporarily suspending the heartbeat watchdog (e.g. while large chunks of data are being transmitted over the connection and heartbeats wouldn't have a chance to get through within reasonable time).
https://github.com/rethinkdb/rethinkdb/blob/eb3e7215bc9b122a01fc2cbeae65e58384380eb1/src/replication/heartbeat_manager.hpp
https://github.com/rethinkdb/rethinkdb/blob/eb3e7215bc9b122a01fc2cbeae65e58384380eb1/src/replication/heartbeat_manager.cc
mlucy commentedon Nov 16, 2012
@coffeemug -- can we support 10.04/10.10 now that we have application-level heartbeats?
coffeemug commentedon Nov 16, 2012
@mlucy -- we still need to verify that there aren't strange compiler bugs. As we just discussed, this bug is now in your hands.
coffeemug commentedon Nov 19, 2012
Reassigning to @Tryneus -- we should close this as soon as heartbeat code goes into next and we verify that rethink compiles and runs on 10.04. Marc -- you can ping Frank about the compilation since he's been working on that.
Tryneus commentedon Nov 20, 2012
Well, the new heartbeat is in, as of commit 929c836. I'll let Frank know.
coffeemug commentedon Nov 29, 2012
Can this issue be closed? We compile on Maverick successfully, and the more gcc-version specific warnings will be dealt with in 4.4. Does anyone object to closing this?
squarism commentedon Nov 29, 2012
I tried compiling on RHEL 6.3 from the next branch about a week ago and it failed with the same error. If that is expected behavior then close and I'll open a new issue. If the heartbeart was to enable older kernels, please leave open.
coffeemug commentedon Nov 30, 2012
@squarism -- talked to some people, rethink now compiles on maverick in a branch, awaiting code review before it can be merged into next. Issue #121 will address the RHEL/CentOS compilation issues. The current branch turns off warnings with a pragma -- if you do that, you should be able to build on RHEL (you might also need to pass LEGACY_LINUX=1 and NO_EPOLL=1 to Make). Closing this one.
Prioritize vector search and time-series support
chore: idle tick rethinkdb#6 — NEVER-DONE audit, cooldown → 12h
chore: idle tick rethinkdb#15 — blocked, cooldown re-fix (7200→43200s) …
chore: idle tick rethinkdb#6 — NEVER-DONE audit, cooldown → 12h
chore: idle tick rethinkdb#15 — blocked, cooldown re-fix (7200→43200s) …