[
https://issues.apache.org/jira/browse/MESOS-4579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15128850#comment-15128850
]
Neil Conway edited comment on MESOS-4579 at 2/2/16 7:27 PM:
------------------------------------------------------------
Ah: the problem is basically MESOS-2690. There are various warnings (which
MESOS-2690 asserts are bogus, I haven't checked) that get emitted with -O2 or
greater, so you need to specify -Wno-maybe-uninitialized. That flag is added
automatically by configure, but only when -O2 is specified, not a different
optimization level.
was (Author: neilc):
Ah: the problem is basically MESOS-2690. There are various warnings (which
MESOS-2690 asserts are bogus) that get omitted with -O2 or greater, so you need
to specify -Wno-maybe-uninitialized. That flag is added automatically by
configure, but only when -O2 is specified, not a different optimization level.
> build failures w/ gcc 5.3
> -------------------------
>
> Key: MESOS-4579
> URL: https://issues.apache.org/jira/browse/MESOS-4579
> Project: Mesos
> Issue Type: Bug
> Components: docker
> Reporter: James Peach
>
> GCC 5.3 (Fedora 23)
> {code}
> ../../src/docker/docker.cpp:289:17: error: ‘*((void*)& optionalPid +4)’ may
> be used uninitialized in this function [-Werror=maybe-uninitialized]
> Option<pid_t> optionalPid;
> ^
> ../../src/docker/docker.cpp: In static member function ‘static
> process::Future<Nothing> Docker::_stop(const Docker&, const string&, const
> string&, const process::Subprocess&, bool)’:
> ../../src/docker/docker.cpp:710:35: error: ‘*((void*)& status +4)’ may be
> used uninitialized in this function [-Werror=maybe-uninitialized]
> bool force = !status.isSome() || status.get() != 0;
> ^
> ../../src/docker/docker.cpp: In static member function ‘static
> process::Future<Docker::Image> Docker::_pull(const Docker&, const
> process::Subprocess&, const string&, const string&, const string&, const
> string&, process::Future<std::__cxx11::basic_string<char> >)’:
> ../../src/docker/docker.cpp:1097:23: error: ‘*((void*)& status +4)’ may be
> used uninitialized in this function [-Werror=maybe-uninitialized]
> if (status.isSome() && status.get() == 0) {
> ^
> cc1plus: all warnings being treated as errors
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)