Till Toenshoff created MESOS-1095:
-------------------------------------

             Summary: Build failure on OSX when using gcc-4.7
                 Key: MESOS-1095
                 URL: https://issues.apache.org/jira/browse/MESOS-1095
             Project: Mesos
          Issue Type: Bug
          Components: libprocess
    Affects Versions: 0.19.0
         Environment: Darwin lobomacpro2.fritz.box 13.1.0 Darwin Kernel Version 
13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 
x86_64
g++-4.7 (GCC) 4.7.3


            Reporter: Till Toenshoff


../configure CXX=g++-4.7 CC=gcc-4.7 PYTHON=/usr/local/bin/python
make check
[...]
Making check in .
/bin/sh ./libtool  --tag=CXX   --mode=compile g++-4.7 
-DPACKAGE_NAME=\"libprocess\" -DPACKAGE_TARNAME=\"libprocess\" 
-DPACKAGE_VERSION=\"0.0.1\" -DPACKAGE_STRING=\"libprocess\ 0.0.1\" 
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libprocess\" 
-DVERSION=\"0.0.1\" -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 -DHAVE_LIBZ=1 -I. 
-I../../../3rdparty/libprocess  -I../../../3rdparty/libprocess/include 
-I../../../3rdparty/libprocess/3rdparty/stout/include -I3rdparty/boost-1.53.0 
-I3rdparty/glog-0.3.3/src -I3rdparty/ry-http-parser-1c3624a 
-I3rdparty/libev-4.15 -I3rdparty/picojson-4f93734     -g -g2 -O2 -std=c++11 
-DGTEST_USE_OWN_TR1_TUPLE=1 -MT libprocess_la-http.lo -MD -MP -MF 
.deps/libprocess_la-http.Tpo -c -o libprocess_la-http.lo `test -f 
'src/http.cpp' || echo '../../../3rdparty/libprocess/'`src/http.cpp
libtool: compile:  g++-4.7 -DPACKAGE_NAME=\"libprocess\" 
-DPACKAGE_TARNAME=\"libprocess\" -DPACKAGE_VERSION=\"0.0.1\" 
"-DPACKAGE_STRING=\"libprocess 0.0.1\"" -DPACKAGE_BUGREPORT=\"\" 
-DPACKAGE_URL=\"\" -DPACKAGE=\"libprocess\" -DVERSION=\"0.0.1\" 
-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 -DHAVE_LIBZ=1 -I. -I../../../3rdparty/libprocess 
-I../../../3rdparty/libprocess/include 
-I../../../3rdparty/libprocess/3rdparty/stout/include -I3rdparty/boost-1.53.0 
-I3rdparty/glog-0.3.3/src -I3rdparty/ry-http-parser-1c3624a 
-I3rdparty/libev-4.15 -I3rdparty/picojson-4f93734 -g -g2 -O2 -std=c++11 
-DGTEST_USE_OWN_TR1_TUPLE=1 -MT libprocess_la-http.lo -MD -MP -MF 
.deps/libprocess_la-http.Tpo -c ../../../3rdparty/libprocess/src/http.cpp  
-fno-common -DPIC -o libprocess_la-http.o
In file included from 
/usr/local/Cellar/gcc47/4.7.3/lib/gcc/x86_64-apple-darwin13.0.2/4.7.3/include/c++/bits/move.h:57:0,
                 from 
/usr/local/Cellar/gcc47/4.7.3/lib/gcc/x86_64-apple-darwin13.0.2/4.7.3/include/c++/bits/stl_pair.h:61,
                 from 
/usr/local/Cellar/gcc47/4.7.3/lib/gcc/x86_64-apple-darwin13.0.2/4.7.3/include/c++/bits/stl_algobase.h:65,
                 from 
/usr/local/Cellar/gcc47/4.7.3/lib/gcc/x86_64-apple-darwin13.0.2/4.7.3/include/c++/deque:61,
                 from ../../../3rdparty/libprocess/src/http.cpp:6:
/usr/local/Cellar/gcc47/4.7.3/lib/gcc/x86_64-apple-darwin13.0.2/4.7.3/include/c++/type_traits:
 In instantiation of 'struct std::_Result_of_impl<false, false, 
std::_Bind<process::Future<process::http::Response> 
(*(std::_Placeholder<1>))(const std::basic_string<char>&)> >':
/usr/local/Cellar/gcc47/4.7.3/lib/gcc/x86_64-apple-darwin13.0.2/4.7.3/include/c++/type_traits:1857:12:
   required from 'class 
std::result_of<std::_Bind<process::Future<process::http::Response> 
(*(std::_Placeholder<1>))(const std::basic_string<char>&)>()>'
../../../3rdparty/libprocess/include/process/future.hpp:343:25:   required by 
substitution of 'template<class F> decltype (this->.then(forward<F>(f), 
process::Future<T>::Prefer())) process::Future::then(F&&) const [with F = F; T 
= std::basic_string<char>] [with F = 
std::_Bind<process::Future<process::http::Response> 
(*(std::_Placeholder<1>))(const std::basic_string<char>&)>]'
../../../3rdparty/libprocess/src/http.cpp:141:54:   required from here
/usr/local/Cellar/gcc47/4.7.3/lib/gcc/x86_64-apple-darwin13.0.2/4.7.3/include/c++/type_traits:1834:9:
 error: no match for call to 
'(std::_Bind<process::Future<process::http::Response> 
(*(std::_Placeholder<1>))(const std::basic_string<char>&)>) ()'
[...]
../../../3rdparty/libprocess/include/process/future.hpp:337:25:   required by 
substitution of 'template<class F> decltype (this->.then(forward<F>(f), 
process::Future<T>::Prefer())) process::Future::then(F&&) const [with F = F; T 
= std::basic_string<char>] [with F = process::http::Response]'
../../../3rdparty/libprocess/include/process/future.hpp:340:57:   required from 
'process::Future<X> process::Future<T>::then(F&&, process::Future<T>::Prefer) 
const [with F = std::_Bind<process::Future<process::http::Response> 
(*(std::_Placeholder<1>))(const std::basic_string<char>&)>; X = 
process::http::Response; T = std::basic_string<char>]'
../../../3rdparty/libprocess/include/process/future.hpp:354:45:   required from 
'decltype (this->.then(forward<F>(f), process::Future<T>::Prefer())) 
process::Future<T>::then(F&&) const [with F = 
std::_Bind<process::Future<process::http::Response> 
(*(std::_Placeholder<1>))(const std::basic_string<char>&)>; T = 
std::basic_string<char>; decltype (this->.then(forward<F>(f), 
process::Future<T>::Prefer())) = process::Future<process::http::Response>]'
../../../3rdparty/libprocess/src/http.cpp:141:54:   required from here
/usr/local/Cellar/gcc47/4.7.3/lib/gcc/x86_64-apple-darwin13.0.2/4.7.3/include/c++/type_traits:1834:9:
 error: no match for call to '(process::http::Response) (const 
std::basic_string<char>&)'
make[4]: *** [libprocess_la-http.lo] Error 1
make[3]: *** [check-recursive] Error 1
make[2]: *** [check-recursive] Error 1
make[1]: *** [check] Error 2
make: *** [check-recursive] Error 1


Reverting commits
git revert ffda972f7bc3c118a24becb3a8edcadfe08a851d
git revert 5aa7073e101cc63be58c26929d98ec83c42d769d
fixes the problem for me.



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

Reply via email to