[
https://issues.apache.org/jira/browse/MESOS-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13766246#comment-13766246
]
Yong Fu commented on MESOS-688:
-------------------------------
Try boost 1.54. The problem is still there.
...
../3rdparty/libprocess/3rdparty/boost-1.54.0/boost/unordered/detail/unique.hpp:
In member function 'boost::unordered::detail::table_impl<Types>::value_type&
boost::unordered::detail::table_impl<Types>::operator[](const key_type&)':
../3rdparty/libprocess/3rdparty/boost-1.54.0/boost/unordered/detail/unique.hpp:337:54:
error: typedef 'mapped_type' locally defined but not used
[-Werror=unused-local-typedefs]
typedef typename value_type::second_type mapped_type;
^
cc1plus: all warnings being treated as errors
make[2]: *** [sched/libmesos_no_3rdparty_la-sched.lo] Error 1
make[2]: Leaving directory `/home/yfu/projects/BADS/mesos/src'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/yfu/projects/BADS/mesos/src'
...
It seems boost fixed some of this but made more. Maybe we should try Ben
Malher's patch?
BTW: mesos/3rdparty/libprocess/3rdparty/boost-1.53.0/README still uses
third_party as directory name (should be changed as 3rparty)
> error of "unused_local_typedefs" in thirdparty/boost
> ----------------------------------------------------
>
> Key: MESOS-688
> URL: https://issues.apache.org/jira/browse/MESOS-688
> Project: Mesos
> Issue Type: Bug
> Components: release
> Affects Versions: 0.12.0
> Environment: Fedora 19, Linux 3.10.9, x86_64, g++ 4.8.1
> Reporter: Yong Fu
> Assignee: Yong Fu
> Labels: build
>
> Compilation error under g++ 4.8.1 (Fedora 19)
> ....
> ../3rdparty/libprocess/3rdparty/boost-1.53.0/boost/variant/variant.hpp: In
> member function 'void boost::variant<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9,
> T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>::operator<(const U&) const':
> ../3rdparty/libprocess/3rdparty/boost-1.53.0/boost/variant/variant.hpp:2254:135:
> error: typedef 'boost_static_assert_typedef_2254' locally defined but not
> used [-Werror=unused-local-typedefs]
> BOOST_STATIC_ASSERT( false && sizeof(U) );
>
> ^
> cc1plus: all warnings being treated as errors
> ....
> It is a well-known bug in boost.
> https://svn.boost.org/trac/boost/ticket/8546
> https://groups.google.com/forum/#!topic/v8-dev/vxzTVQ5fJ4s
> Before it is fixed totally in boost, the error can be just suppressed here
> mesos/src/Makefile.am: line 73
> MESOS_CPPFLAGS += -Wall -Werror
> =======
> MESOS_CPPFLAGS += -Wall -Werror -Wno-unused-local-typedefs.
> yf
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira