[jira] [Commented] (MESOS-7520) Mesos fails to compile with GCC 7.1
[ https://issues.apache.org/jira/browse/MESOS-7520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16057267#comment-16057267 ] James Peach commented on MESOS-7520: [~neilc] This was submitted? > Mesos fails to compile with GCC 7.1 > --- > > Key: MESOS-7520 > URL: https://issues.apache.org/jira/browse/MESOS-7520 > Project: Mesos > Issue Type: Bug > Components: agent, build, master >Affects Versions: 1.2.0 >Reporter: Aaron Wood >Assignee: Aaron Wood >Priority: Trivial > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80829 > {code} > error 12-May-2017 15:46:40In file included from > ../../src/authorizer/authorizer.cpp:29:0: > error 12-May-2017 15:46:40../../src/master/constants.hpp:45:39: error: > 'Megabytes(32).Megabytes::' is not a constant expression because > it refers to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Bytes MIN_MEM = Megabytes(32); > error 12-May-2017 15:46:40 ^ > error 12-May-2017 15:46:40../../src/master/constants.hpp:49:59: error: > 'Seconds(15).Seconds::' is not a constant expression because it > refers to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Duration DEFAULT_HEARTBEAT_INTERVAL > = Seconds(15); > error 12-May-2017 15:46:40 >^ > error 12-May-2017 15:46:40../../src/master/constants.hpp:57:59: error: > 'Seconds(15).Seconds::' is not a constant expression because it > refers to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Duration DEFAULT_AGENT_PING_TIMEOUT > = Seconds(15); > error 12-May-2017 15:46:40 >^ > error 12-May-2017 15:46:40../../src/master/constants.hpp:67:61: error: > 'Minutes(10).Minutes::' is not a constant expression because it > refers to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Duration > MIN_AGENT_REREGISTER_TIMEOUT = Minutes(10); > error 12-May-2017 15:46:40 > ^ > error 12-May-2017 15:46:40../../src/master/constants.hpp:95:56: error: > 'Seconds(5).Seconds::' is not a constant expression because it > refers to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Duration WHITELIST_WATCH_INTERVAL = > Seconds(5); > error 12-May-2017 15:46:40 > ^ > error 12-May-2017 15:46:40../../src/master/constants.hpp:100:61: error: > 'Minutes(15).Minutes::' is not a constant expression because it > refers to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Duration > DEFAULT_REGISTRY_GC_INTERVAL = Minutes(15); > error 12-May-2017 15:46:40 > ^ > error 12-May-2017 15:46:40../../src/master/constants.hpp:102:60: error: > 'Weeks(2).Weeks::' is not a constant expression because it refers > to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Duration > DEFAULT_REGISTRY_MAX_AGENT_AGE = Weeks(2); > error 12-May-2017 15:46:40 > ^ > error 12-May-2017 15:46:40../../src/master/constants.hpp:122:58: error: > 'Seconds(10).Seconds::' is not a constant expression because it > refers to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Duration ZOOKEEPER_SESSION_TIMEOUT = > Seconds(10); > error 12-May-2017 15:46:40 > ^ > error 12-May-2017 15:46:40../../src/master/constants.hpp:131:59: error: > 'Seconds(1).Seconds::' is not a constant expression because it > refers to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Duration DEFAULT_ALLOCATION_INTERVAL > = Seconds(1); > error 12-May-2017 15:46:40 >^ > error 12-May-2017 15:46:40In file included from > ../../src/authentication/http/basic_authenticator_factory.cpp:27:0: > error 12-May-2017 15:46:40../../src/master/constants.hpp:45:39: error: > 'Megabytes(32).Megabytes::' is not a constant expression because > it refers to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Bytes MIN_MEM = Megabytes(32); > error 12-May-2017 15:46:40 ^ > error 12-May-2017 15:46:40../../src/master/constants.hpp:49:59: error: > 'Seconds(15).Seconds::' is not a constant expression because it > refers to an incompletely initialized variable > error 12-May-2017 15:46:40 constex
[jira] [Commented] (MESOS-7520) Mesos fails to compile with GCC 7.1
[ https://issues.apache.org/jira/browse/MESOS-7520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16057647#comment-16057647 ] Aaron Wood commented on MESOS-7520: --- We still need fixes to the Duration class. > Mesos fails to compile with GCC 7.1 > --- > > Key: MESOS-7520 > URL: https://issues.apache.org/jira/browse/MESOS-7520 > Project: Mesos > Issue Type: Bug > Components: agent, build, master >Affects Versions: 1.2.0 >Reporter: Aaron Wood >Assignee: Aaron Wood >Priority: Trivial > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80829 > {code} > error 12-May-2017 15:46:40In file included from > ../../src/authorizer/authorizer.cpp:29:0: > error 12-May-2017 15:46:40../../src/master/constants.hpp:45:39: error: > 'Megabytes(32).Megabytes::' is not a constant expression because > it refers to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Bytes MIN_MEM = Megabytes(32); > error 12-May-2017 15:46:40 ^ > error 12-May-2017 15:46:40../../src/master/constants.hpp:49:59: error: > 'Seconds(15).Seconds::' is not a constant expression because it > refers to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Duration DEFAULT_HEARTBEAT_INTERVAL > = Seconds(15); > error 12-May-2017 15:46:40 >^ > error 12-May-2017 15:46:40../../src/master/constants.hpp:57:59: error: > 'Seconds(15).Seconds::' is not a constant expression because it > refers to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Duration DEFAULT_AGENT_PING_TIMEOUT > = Seconds(15); > error 12-May-2017 15:46:40 >^ > error 12-May-2017 15:46:40../../src/master/constants.hpp:67:61: error: > 'Minutes(10).Minutes::' is not a constant expression because it > refers to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Duration > MIN_AGENT_REREGISTER_TIMEOUT = Minutes(10); > error 12-May-2017 15:46:40 > ^ > error 12-May-2017 15:46:40../../src/master/constants.hpp:95:56: error: > 'Seconds(5).Seconds::' is not a constant expression because it > refers to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Duration WHITELIST_WATCH_INTERVAL = > Seconds(5); > error 12-May-2017 15:46:40 > ^ > error 12-May-2017 15:46:40../../src/master/constants.hpp:100:61: error: > 'Minutes(15).Minutes::' is not a constant expression because it > refers to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Duration > DEFAULT_REGISTRY_GC_INTERVAL = Minutes(15); > error 12-May-2017 15:46:40 > ^ > error 12-May-2017 15:46:40../../src/master/constants.hpp:102:60: error: > 'Weeks(2).Weeks::' is not a constant expression because it refers > to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Duration > DEFAULT_REGISTRY_MAX_AGENT_AGE = Weeks(2); > error 12-May-2017 15:46:40 > ^ > error 12-May-2017 15:46:40../../src/master/constants.hpp:122:58: error: > 'Seconds(10).Seconds::' is not a constant expression because it > refers to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Duration ZOOKEEPER_SESSION_TIMEOUT = > Seconds(10); > error 12-May-2017 15:46:40 > ^ > error 12-May-2017 15:46:40../../src/master/constants.hpp:131:59: error: > 'Seconds(1).Seconds::' is not a constant expression because it > refers to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Duration DEFAULT_ALLOCATION_INTERVAL > = Seconds(1); > error 12-May-2017 15:46:40 >^ > error 12-May-2017 15:46:40In file included from > ../../src/authentication/http/basic_authenticator_factory.cpp:27:0: > error 12-May-2017 15:46:40../../src/master/constants.hpp:45:39: error: > 'Megabytes(32).Megabytes::' is not a constant expression because > it refers to an incompletely initialized variable > error 12-May-2017 15:46:40 constexpr Bytes MIN_MEM = Megabytes(32); > error 12-May-2017 15:46:40 ^ > error 12-May-2017 15:46:40../../src/master/constants.hpp:49:59: error: > 'Seconds(15).Seconds::' is not a constant expression because it > refers to an incompletely initialized variable > error 12-May-2017 15:46:40