[
https://issues.apache.org/jira/browse/MESOS-2690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14529364#comment-14529364
]
Joris Van Remoortere edited comment on MESOS-2690 at 5/5/15 9:59 PM:
---------------------------------------------------------------------
[~bmahler] [~vinodkone] If you are modifying the CXXFLAGS I think it makes the
most sense to add the `Wno-maybe-uninitialized` flag to that CXXFLAGS. As
[~cmaloney] mentioned, the moment you augment CXX flags then this invalidates
the `--enable-optimize` and `--enable-debug`. I think fixing that behavior
should be a separate ticket.
Catching `-02` overall is a more complicated procedure that likely takes away
from the readability of the configure. I would like to encourage people to
start using the `--enable-optimize` and `--enable-debug` flags and make them
more meaningful. Maybe we can incorporate some of the flags you are augmenting
into another `--enable-XXX` flag?
was (Author: jvanremoortere):
[~bmahler] [~vinodkone] If you are modifying the CXXFLAGS I think it makes the
most sense to add the `-Wno-maybe-uninitialized` flag to that CXXFLAGS. As
[~cmaloney] mentioned, the moment you augment CXX flags then this invalidates
the `--enable-optimize` and `--enable-debug`. I think fixing that behavior
should be a separate ticket.
Catching `-02` overall is a more complicated procedure that likely takes away
from the readability of the configure. I would like to encourage people to
start using the `--enable-optimize` and `--enable-debug` flags and make them
more meaningful. Maybe we can incorporate some of the flags you are augmenting
into another `--enable-XXX` flag?
> --enable-optimize build fails with maybe-uninitialized
> ------------------------------------------------------
>
> Key: MESOS-2690
> URL: https://issues.apache.org/jira/browse/MESOS-2690
> Project: Mesos
> Issue Type: Bug
> Components: build
> Environment: GCC 4.8 -> 4.9
> Reporter: Joris Van Remoortere
> Assignee: Joris Van Remoortere
> Priority: Blocker
>
> When building with the `enable-optimize` flag, the build fails with
> `maybe-uninitialized' errors.
> This is due to a bug in GCC when building optimized code triggering false
> positives for this warning. Please see:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59970
> We can disable this warning when using GCC + --enable-optimize.
> A quick work-around until there is a patch:
> ../configure CXXFLAGS="-Wno-maybe-uninitialized" <your-other-flags-here>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)