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

Use of GCC extension broke Windows build

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Windows

    Description

      Commit https://github.com/apache/mesos/commit/17d186e379d2db3edb04743a061dc05e24c32c9b broke the Windows build:

      src\mesos\src\master\constants.cpp(25): error C2466: cannot allocate an array of constant size 0
      

      The code:

      MasterInfo::Capability::Type types[] = {}; // Empty for now.
      

      Is not valid C++ code, it is instead a GCC extension (and so is not available with MSVC, and possibly also not available with Clang).

      This is a blocking bug because the build is broken.

      Attachments

        Activity

          People

            akagup Akash Gupta
            andschwa Andrew Schwartzmeyer
            Andrew Schwartzmeyer Andrew Schwartzmeyer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: