[ 
https://issues.apache.org/jira/browse/MESOS-1242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Mahler updated MESOS-1242:
-----------------------------------

    Fix Version/s:     (was: 0.19.0)

> Build broken using gcc-4.1.2
> ----------------------------
>
>                 Key: MESOS-1242
>                 URL: https://issues.apache.org/jira/browse/MESOS-1242
>             Project: Mesos
>          Issue Type: Bug
>    Affects Versions: 0.19.0
>            Reporter: Jie Yu
>
> {noformat}
> g++ -DPACKAGE_NAME=\"mesos\" -DPACKAGE_TARNAME=\"mesos\" 
> -DPACKAGE_VERSION=\"0.19.0\" -DPACKAGE_STRING=\"mesos\ 0.19.0\" 
> -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mesos\" -DVERSION=\"0.19.0\" 
> -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 
> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" 
> -DHAVE_PTHREAD=1 -DMESOS_HAS_JAVA=1 -DHAVE_LIBZ=1 -DHAVE_LIBCURL=1 
> -DHAVE_LIBSASL2=1 -I. -I../../../mesos/src   -Wall -Werror 
> -DLIBDIR=\"/home/jyu/workspace/mesos-dist/lib\" 
> -DPKGLIBEXECDIR=\"/home/jyu/workspace/mesos-dist/libexec/mesos\" 
> -DPKGDATADIR=\"/home/jyu/workspace/
> mesos-dist/share/mesos\" -I../../../mesos/include 
> -I../../../mesos/3rdparty/libprocess/include 
> -I../../../mesos/3rdparty/libprocess/3rdparty/stout/include -I../include 
> -I../3rdparty/libprocess/3rdparty/boost-1.53.0 
> -I../3rdparty/libprocess/3rdparty/protobuf-2.5.0/src 
> -I../3rdparty/libprocess/3rdparty/picojson-4f93734 -I../3rdparty/libprocess/
> 3rdparty/glog-0.3.3/src -I../3rdparty/leveldb/include 
> -I../3rdparty/zookeeper-3.4.5/src/c/include 
> -I../3rdparty/zookeeper-3.4.5/src/c/generated   -g -g2 -O2 -MT 
> cli/mesos_execute-execute.o -MD -MP -MF cli/.deps/mesos_execute-execute.Tpo 
> -c -o cli/mesos_execute-execute.o `test -f 'cli/execute.cpp' || echo 
> '../../../mesos/src/'`cli/execute.cpp
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/tuple_iterate.h:
>  In function 'std::tr1::tuple<_T1&, std::tr1::_NullClass, 
> std::tr1::_NullClass, std
> ::tr1::_NullClass, std::tr1::_NullClass, std::tr1::_NullClass, 
> std::tr1::_NullClass, std::tr1::_NullClass, std::tr1::_NullClass, 
> std::tr1::_NullClass> std::tr1::tie(_T1&) [with _T1 = const 
> hashset<mesos::ContainerID>]':
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/bind_iterate.h:45:
>    instantiated from 'typename std::tr1::result_of<_Functor ()(typename 
> std::tr1::result_of<std::tr1::_Mu<_T1, 
> std::tr1::is_bind_expression<_T1>::value, 
> (std::tr1::is_placeholder<_T1>::value > 0)> ()(_T1, std::tr1::tuple<_U1, 
> std::tr1::_NullClass, std::
> tr1::_NullClass, std::tr1::_NullClass, std::tr1::_NullClass, 
> std::tr1::_NullClass, std::tr1::_NullClass, std::tr1::_NullClass, 
> std::tr1::_NullClass, std::tr1::_NullClass>)>::type, typename 
> std::tr1::result_of<std::tr1::_Mu<_T1, 
> std::tr1::is_bind_expression<_T1>::value, 
> (std::tr1::is_placeholder<_T1>::value > 0)> ()(_T2, std::tr1::tuple<_U1, s
> td::tr1::_NullClass, std::tr1::_NullClass, std::tr1::_NullClass, 
> std::tr1::_NullClass, std::tr1::_NullClass, std::tr1::_NullClass, 
> std::tr1::_NullClass, std::tr1::_NullClass, 
> std::tr1::_NullClass>)>::type)>::type std::tr1::_Bind<_Functor ()(_T1, 
> _T2)>::operator()(_U1&) [with _U1 = const hashset<mesos::ContainerID>, 
> _Functor = std::tr1::_Mem_fn<bool 
> (process::Future<hashset<mesos::ContainerID> >::*)(const 
> hashset<mesos::ContainerID>&)>, _T1 = 
> process::Future<hashset<mesos::ContainerID> >, _T2 = 
> std::tr1::_Placeholder<1>]'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/functional_iterate.h:502:
>    instantiated from 'static void std::tr1::_Function_handler<void ()(_T1), 
> _Functor>::_M_invoke(const std::tr1::_Any_data&, _T1) [with _Functor = 
> std::tr1::_Bind<std::tr1::_Mem_fn<bool 
> (process::Future<hashset<mesos::ContainerID> >::*)(const 
> hashset<mesos::ContainerID>&)> ()(process::Future<hashset<mesos::ContainerID> 
> >, std::tr1::_Placeholder<1>)>, _T1 = const 
> hashset<mesos::ContainerID>&]'/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/functional_iterate.h:850:
>    instantiated from 'std::tr1::function<_Res ()(_T1)>::function(_Functor, 
> typename std::__enable_if<std::tr1::function<_Res ()(_T1)>::_Useless, (! 
> std::tr1::is_integral<_Functor>::value)>::__type) [with _Functor = 
> std::tr1::_Bind<std::tr1::_Mem_
> fn<bool (process::Future<hashset<mesos::ContainerID> >::*)(const 
> hashset<mesos::ContainerID>&)> ()(process::Future<hashset<mesos::ContainerID> 
> >, std::tr1::_Placeholder<1>)
> >, _Res = void, _T1 = const 
> >hashset<mesos::ContainerID>&]'../../../mesos/3rdparty/libprocess/include/process/future.hpp:765:
> >   instantiated from 'bool process::Promise<T>::associate(const 
> >process::Future<T>&) [with T = hashset<mesos::ContainerID>]'
> ../../../mesos/3rdparty/libprocess/include/process/dispatch.hpp:88:   
> instantiated from 'void process::internal::pdispatcher(process::ProcessBase*, 
> std::tr1::shared_ptr<std::tr1::function<process::Future<T> ()(T*)> >, 
> std::tr1::shared_ptr<process::Promise<T> >) [with R = 
> hashset<mesos::ContainerID>, T = 
> mesos::internal::slave::MesosContainerizerProcess]'
> ../../../mesos/3rdparty/libprocess/include/process/dispatch.hpp:273:   
> instantiated from 'process::Future<T> process::dispatch(const 
> process::PID<T>&, process::Future<T> (T::*)()) [with R = 
> hashset<mesos::ContainerID>, T = 
> mesos::internal::slave::MesosContainerizerProcess]'
> ../../../mesos/3rdparty/libprocess/include/process/dispatch.hpp:293:   
> instantiated from 'process::Future<T> process::dispatch(const 
> process::Process<T>*, process::Future<T> (T::*)()) [with R = 
> hashset<mesos::ContainerID>, T = 
> mesos::internal::slave::MesosContainerizerProcess]'
> ../../../mesos/src/slave/containerizer/mesos_containerizer.cpp:192:   
> instantiated from here
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/tuple_iterate.h:164:
>  error: call of overloaded 'ref(const hashset<mesos::ContainerID>&)' is 
> ambiguous
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/tr1/functional:378:
>  note: candidates are: std::tr1::reference_wrapper<_Tp> std::tr1::ref(_Tp&) 
> [with _Tp = const hashset<mesos::ContainerID>]
> ../3rdparty/libprocess/3rdparty/boost-1.53.0/boost/ref.hpp:64: note:          
>        const boost::reference_wrapper<T> boost::ref(T&) [with T = const 
> hashset<mesos::ContainerID>]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to