Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9002

GCC 8.1 build failure in os::Fork::Tree.

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.1, 1.7.0
    • Component/s: None
    • Labels:
      None

      Description

      Building Mesos with gcc 8.1 (Fedora 28)

      ../../3rdparty/stout/include/stout/os/posix/fork.hpp: In member function ‘pid_t os::Fork::instantiate(const os::Fork::Tree&) const’:
      ../../3rdparty/stout/include/stout/os/posix/fork.hpp:354:61: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘using element_type = std::remove_extent<os::Fork::Tree::Memory>::type’ {aka ‘struct os::Fork::Tree::Memory’} with no trivial copy-assignment [-Werror=class-memaccess]
           memcpy(tree.memory.get(), &process, sizeof(Tree::Memory));
                                                                   ^
      ../../3rdparty/stout/include/stout/os/posix/fork.hpp:235:12: note: ‘using element_type = std::remove_extent<os::Fork::Tree::Memory>::type’ {aka ‘struct os::Fork::Tree::Memory’} declared here
           struct Memory {
                  ^~~~~~
      

        Attachments

          Activity

            People

            • Assignee:
              jamespeach James Peach
              Reporter:
              jamespeach James Peach
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: