You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Andrew Schwartzmeyer (JIRA)" <ji...@apache.org> on 2017/11/29 22:56:00 UTC

[jira] [Created] (MESOS-8277) Use of GCC extension broke Windows build

Andrew Schwartzmeyer created MESOS-8277:
-------------------------------------------

             Summary: Use of GCC extension broke Windows build
                 Key: MESOS-8277
                 URL: https://issues.apache.org/jira/browse/MESOS-8277
             Project: Mesos
          Issue Type: Bug
         Environment: Windows
            Reporter: Andrew Schwartzmeyer
            Assignee: Benno Evers
            Priority: Blocker


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

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

The code:

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

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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)