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

Mesos fails to build on Fedora 28

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • build
    • gcc (GCC) 8.1.1 20180712 (Red Hat 8.1.1-5)
      Fedora 28

    • Mesosphere RI-6 Sprint 2018-31
    • 2

    Description

      Trying to compile a fresh Mesos checkout on a Fedora 28 system with the following configuration flags:

      ../configure --enable-debug --enable-optimize --disable-java --disable-python --disable-libtool-wrappers --enable-ssl --enable-libevent --disable-werror
      

      and the following compiler

      [bevers@core1.hw.ca1 build]$ gcc --version
      gcc (GCC) 8.1.1 20180712 (Red Hat 8.1.1-5)
      Copyright (C) 2018 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
      

      fails the build due to two warnings (even though --disable-werror was passed):

      make[4]: Entering directory '/home/bevers/mesos/build/3rdparty/grpc-1.10.0'
      [C]       Compiling third_party/cares/cares/ares_init.c
      third_party/cares/cares/ares_init.c: In function ‘ares_dup’:
      third_party/cares/cares/ares_init.c:301:17: error: argument to ‘sizeof’ in ‘strncpy’ call is the same expression as the source; did you mean to use the size of the destination? [-Werror=sizeof-pointer-memaccess]
                 sizeof(src->local_dev_name));
                       ^
      third_party/cares/cares/ares_init.c: At top level:
      cc1: error: unrecognized command line option ‘-Wno-invalid-source-encoding’ [-Werror]
      cc1: all warnings being treated as errors
      make[4]: *** [Makefile:2635: /home/bevers/mesos/build/3rdparty/grpc-1.10.0/objs/opt/third_party/cares/cares/ares_init.o] Error 1
      

      Attachments

        Activity

          People

            bennoe Benno Evers
            bennoe Benno Evers
            Benjamin Bannier Benjamin Bannier
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: