Skip to content

Compiling for maverick 10.10 x86_64  #6

Closed

Description

@gysingh

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

  1. mlucy commented on Nov 10, 2012

    @mlucy
    Member

    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 -Werror in the Makefile, but we don't currently support 10.04 or 10.10 because the kernel is apparently missing some features we use.

  2. coffeemug commented on Nov 10, 2012

    @coffeemug
    Contributor

    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).

  3. Tryneus commented on Nov 10, 2012

    @Tryneus
    Member

    It looks like TCP_USER_TIMEOUT was added in kernel version 2.6.37, which means ubuntu 11.04+

  4. squarism commented on Nov 11, 2012

    @squarism

    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?

  5. coffeemug commented on Nov 11, 2012

    @coffeemug
    Contributor

    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.

  6. coffeemug commented on Nov 12, 2012

    @coffeemug
    Contributor

    Ok, this is going into next. Assigning to @Tryneus. We have to build application-level heartbeats to make this happen.

  7. danielmewes commented on Nov 12, 2012

    @danielmewes
    Member

    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

  8. mlucy commented on Nov 16, 2012

    @mlucy
    Member

    @coffeemug -- can we support 10.04/10.10 now that we have application-level heartbeats?

  9. coffeemug commented on Nov 16, 2012

    @coffeemug
    Contributor

    @mlucy -- we still need to verify that there aren't strange compiler bugs. As we just discussed, this bug is now in your hands.

  10. ghost assigned on Nov 16, 2012
  11. ghost assigned on Nov 19, 2012
  12. coffeemug commented on Nov 19, 2012

    @coffeemug
    Contributor

    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.

  13. Tryneus commented on Nov 20, 2012

    @Tryneus
    Member

    Well, the new heartbeat is in, as of commit 929c836. I'll let Frank know.

  14. coffeemug commented on Nov 29, 2012

    @coffeemug
    Contributor

    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?

  15. squarism commented on Nov 29, 2012

    @squarism

    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.

  16. coffeemug commented on Nov 30, 2012

    @coffeemug
    Contributor

    @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.

  17. added 2 commits that reference this issue on Jul 22, 2026
  18. added 2 commits that reference this issue on Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions