Vinod Kone created MESOS-1481:
---------------------------------

             Summary: glog build error on CentOS 6 w/ clang
                 Key: MESOS-1481
                 URL: https://issues.apache.org/jira/browse/MESOS-1481
             Project: Mesos
          Issue Type: Bug
         Environment: CentOS 6, clang
            Reporter: Vinod Kone


make[7]: Entering directory 
`/var/jenkins/workspace/mesos-centos-6-clang/3rdparty/libprocess/3rdparty/glog-0.3.3'
/bin/sh ./libtool  --tag=CXX   --mode=compile clang++ -DHAVE_CONFIG_H -I. 
-I./src  -I./src    -Wall -Wwrite-strings -Woverloaded-virtual 
-Wno-sign-compare  -DNO_FRAME_POINTER  -DNDEBUG -g -g2 -O2 -std=c++11 -MT 
libglog_la-logging.lo -MD -MP -MF .deps/libglog_la-logging.Tpo -c -o 
libglog_la-logging.lo `test -f 'src/logging.cc' || echo './'`src/logging.cc
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall 
-Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER 
-DNDEBUG -g -g2 -O2 -std=c++11 -MT libglog_la-logging.lo -MD -MP -MF 
.deps/libglog_la-logging.Tpo -c src/logging.cc  -fPIC -DPIC -o 
libglog_la-logging.o
In file included from src/logging.cc:32:
In file included from ./src/utilities.h:75:
In file included from 
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/string:43:
In file included from 
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/allocator.h:48:
In file included from 
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/c++allocator.h:34:
In file included from 
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/ext/new_allocator.h:33:
In file included from 
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/new:40:
In file included from 
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/exception:148:
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/exception_ptr.h:143:13:
 error: unknown type name 'type_info'
      const type_info*
            ^
In file included from src/logging.cc:32:
In file included from ./src/utilities.h:75:
In file included from 
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/string:42:
In file included from 
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/char_traits.h:41:
In file included from 
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:66:
In file included from 
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_pair.h:60:
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:57:14:
 error: rvalue reference to type 'typename std::remove_reference<LogSink 
*&>::type' (aka 'google::LogSink *') cannot bind to lvalue of type 
'google::LogSink *'
    { return __t; }
             ^~~
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/vector.tcc:302:7:
 note: in instantiation of function template specialization 
'std::move<google::LogSink *&>' requested here
                                  _GLIBCXX_MOVE(*(this->_M_impl._M_finish
                                  ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:61:33:
 note: expanded from macro '_GLIBCXX_MOVE'
#define _GLIBCXX_MOVE(_Tp) std::move(_Tp)
                                ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_vector.h:741:4:
 note: in instantiation of function template specialization 
'std::vector<google::LogSink *, std::allocator<google::LogSink *> 
>::_M_insert_aux<google::LogSink *const &>' requested here
          _M_insert_aux(end(), __x);
          ^
src/logging.cc:577:11: note: in instantiation of member function 
'std::vector<google::LogSink *, std::allocator<google::LogSink *> >::push_back' 
requested here
  sinks_->push_back(destination);
          ^
In file included from src/logging.cc:32:
In file included from ./src/utilities.h:75:
In file included from 
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/string:43:
In file included from 
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/allocator.h:48:
In file included from 
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/c++allocator.h:34:
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/ext/new_allocator.h:111:27:
 error: no matching function for call to 'forward'
        { ::new((void *)__p) _Tp(std::forward<_Args>(__args)...); }
                                 ^~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/vector.tcc:301:18:
 note: in instantiation of function template specialization 
'__gnu_cxx::new_allocator<google::LogSink *>::construct<google::LogSink *>' 
requested here
          this->_M_impl.construct(this->_M_impl._M_finish,
                        ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_vector.h:741:4:
 note: in instantiation of function template specialization 
'std::vector<google::LogSink *, std::allocator<google::LogSink *> 
>::_M_insert_aux<google::LogSink *const &>' requested here
          _M_insert_aux(end(), __x);
          ^
src/logging.cc:577:11: note: in instantiation of member function 
'std::vector<google::LogSink *, std::allocator<google::LogSink *> >::push_back' 
requested here
  sinks_->push_back(destination);
          ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:51:5:
 note: candidate function [with _Tp = google::LogSink *] not viable: no known 
conversion from 'google::LogSink *' to 'typename std::identity<LogSink *>::type 
&&' (aka 'google::LogSink *&&') for 1st argument
    forward(typename std::identity<_Tp>::type&& __t)
    ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:57:14:
 error: rvalue reference to type 'basic_string<[3 * ...]>' cannot bind to 
lvalue of type 'basic_string<[3 * ...]>'
    { return __t; }
             ^~~
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_vector.h:747:27:
 note: in instantiation of function template specialization 
'std::move<std::basic_string<char> &>' requested here
      { emplace_back(std::move(__x)); }
                          ^
src/logging.cc:1488:21: note: in instantiation of member function 
'std::vector<std::basic_string<char>, std::allocator<std::basic_string<char> > 
>::push_back' requested here
    data_->outvec_->push_back(string(start, len));
                    ^
In file included from src/logging.cc:32:
In file included from ./src/utilities.h:82:
In file included from ./src/glog/logging.h:49:
In file included from 
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/vector:69:
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/vector.tcc:96:9:
 error: no matching function for call to 'forward'
                                    std::forward<_Args>(__args)...);
                                    ^~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_vector.h:747:9:
 note: in instantiation of function template specialization 
'std::vector<std::basic_string<char>, std::allocator<std::basic_string<char> > 
>::emplace_back<std::basic_string<char> >' requested here
      { emplace_back(std::move(__x)); }
        ^
src/logging.cc:1488:21: note: in instantiation of member function 
'std::vector<std::basic_string<char>, std::allocator<std::basic_string<char> > 
>::push_back' requested here
    data_->outvec_->push_back(string(start, len));
                    ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:51:5:
 note: candidate function [with _Tp = std::basic_string<char>] not viable: no 
known conversion from 'std::basic_string<char>' to 'typename 
std::identity<basic_string<char> >::type &&' (aka 'std::basic_string<char> &&') 
for 1st argument
    forward(typename std::identity<_Tp>::type&& __t)
    ^
In file included from src/logging.cc:32:
In file included from ./src/utilities.h:82:
In file included from ./src/glog/logging.h:49:
In file included from 
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/vector:69:
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/vector.tcc:302:7:
 error: no matching function for call to 'move'
                                  _GLIBCXX_MOVE(*(this->_M_impl._M_finish
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:61:28:
 note: expanded from macro '_GLIBCXX_MOVE'
#define _GLIBCXX_MOVE(_Tp) std::move(_Tp)
                           ^~~~~~~~~
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_vector.h:741:4:
 note: in instantiation of function template specialization 
'std::vector<std::basic_string<char>, std::allocator<std::basic_string<char> > 
>::_M_insert_aux<const std::basic_string<char> &>' requested here
          _M_insert_aux(end(), __x);
          ^
src/logging.cc:1761:11: note: in instantiation of member function 
'std::vector<std::basic_string<char>, std::allocator<std::basic_string<char> > 
>::push_back' requested here
    list->push_back(dstr);
          ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:56:5:
 note: candidate template ignored: substitution failure [with _Tp = 
std::basic_string<char> &]
    move(_Tp&& __t)
    ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:491:5:
 note: candidate function template not viable: requires 3 arguments, but 1 was 
provided
    move(_II __first, _II __last, _OI __result)
    ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:561:20:
 error: no matching function for call to 'move'
            *--__result = std::move(*--__last);
                          ^~~~~~~~~
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:593:45:
 note: in instantiation of function template specialization 
'std::__copy_move_backward<true, false, 
std::random_access_iterator_tag>::__copy_move_b<std::basic_string<char> *, 
std::basic_string<char> *>' requested here
                                       _Category>::__copy_move_b(__first,
                                                   ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:602:24:
 note: in instantiation of function template specialization 
'std::__copy_move_backward_a<true, std::basic_string<char> *, 
std::basic_string<char> *>' requested here
      return _BI2(std::__copy_move_backward_a<_IsMove>
                       ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:674:20:
 note: in instantiation of function template specialization 
'std::__copy_move_backward_a2<true, std::basic_string<char> *, 
std::basic_string<char> *>' requested here
      return (std::__copy_move_backward_a2<true>
                   ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/vector.tcc:308:4:
 note: in instantiation of function template specialization 
'std::move_backward<std::basic_string<char> *, std::basic_string<char> *>' 
requested here
          _GLIBCXX_MOVE_BACKWARD3(__position.base(),
          ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:679:53:
 note: expanded from macro '_GLIBCXX_MOVE_BACKWARD3'
#define _GLIBCXX_MOVE_BACKWARD3(_Tp, _Up, _Vp) std::move_backward(_Tp, _Up, _Vp)
                                                    ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_vector.h:741:4:
 note: in instantiation of function template specialization 
'std::vector<std::basic_string<char>, std::allocator<std::basic_string<char> > 
>::_M_insert_aux<const std::basic_string<char> &>' requested here
          _M_insert_aux(end(), __x);
          ^
src/logging.cc:1761:11: note: in instantiation of member function 
'std::vector<std::basic_string<char>, std::allocator<std::basic_string<char> > 
>::push_back' requested here
    list->push_back(dstr);
          ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:56:5:
 note: candidate template ignored: substitution failure [with _Tp = 
std::basic_string<char> &]
    move(_Tp&& __t)
    ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:491:5:
 note: candidate function template not viable: requires 3 arguments, but 1 was 
provided
    move(_II __first, _II __last, _OI __result)
    ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:362:20:
 error: no matching function for call to 'move'
              *__result = std::move(*__first);
                          ^~~~~~~~~
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:397:36:
 note: in instantiation of function template specialization 
'std::__copy_move<true, false, 
std::random_access_iterator_tag>::__copy_m<std::basic_string<char> *, 
std::basic_string<char> *>' requested here
                              _Category>::__copy_m(__first, __last, __result);
                                          ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:433:23:
 note: in instantiation of function template specialization 
'std::__copy_move_a<true, std::basic_string<char> *, std::basic_string<char> 
*>' requested here
      return _OI(std::__copy_move_a<_IsMove>
                      ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:499:20:
 note: in instantiation of function template specialization 
'std::__copy_move_a2<true, __gnu_cxx::__normal_iterator<std::basic_string<char> 
*, std::vector<std::basic_string<char>, std::allocator<std::basic_string<char> 
> > >, __gnu_cxx::__normal_iterator<std::basic_string<char> *, 
std::vector<std::basic_string<char>, std::allocator<std::basic_string<char> > > 
> >' requested here
      return (std::__copy_move_a2<true>
                   ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/vector.tcc:137:2:
 note: in instantiation of function template specialization 
'std::move<__gnu_cxx::__normal_iterator<std::basic_string<char> *, 
std::vector<std::basic_string<char>, std::allocator<std::basic_string<char> > > 
>, __gnu_cxx::__normal_iterator<std::basic_string<char> *, 
std::vector<std::basic_string<char>, std::allocator<std::basic_string<char> > > 
> >' requested here
        _GLIBCXX_MOVE3(__position + 1, end(), __position);
        ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:504:44:
 note: expanded from macro '_GLIBCXX_MOVE3'
#define _GLIBCXX_MOVE3(_Tp, _Up, _Vp) std::move(_Tp, _Up, _Vp)
                                           ^
src/logging.cc:1812:21: note: in instantiation of member function 
'std::vector<std::basic_string<char>, std::allocator<std::basic_string<char> > 
>::erase' requested here
      i_dir = list->erase(i_dir);
                    ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:56:5:
 note: candidate template ignored: substitution failure [with _Tp = 
std::basic_string<char> &]
    move(_Tp&& __t)
    ^
8 errors generated.
make[7]: *** [libglog_la-logging.lo] Error 1
make[7]: Leaving directory 
`/var/jenkins/workspace/mesos-centos-6-clang/3rdparty/libprocess/3rdparty/glog-0.3.3'
make[6]: *** [glog-0.3.3/libglog.la] Error 2
make[6]: Leaving directory 
`/var/jenkins/workspace/mesos-centos-6-clang/3rdparty/libprocess/3rdparty'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory 
`/var/jenkins/workspace/mesos-centos-6-clang/3rdparty/libprocess/3rdparty'
make[4]: *** [all] Error 2
make[4]: Leaving directory 
`/var/jenkins/workspace/mesos-centos-6-clang/3rdparty/libprocess/3rdparty'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory 
`/var/jenkins/workspace/mesos-centos-6-clang/3rdparty/libprocess'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/var/jenkins/workspace/mesos-centos-6-clang/3rdparty'
make[1]: *** [all] Error 2
make[1]: Leaving directory 
`/var/jenkins/workspace/mesos-centos-6-clang/3rdparty'
make: *** [all-recursive] Error 1
Build step 'Execute shell' marked build as failure
erreicht: 56207
Finished: FAILURE




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

Reply via email to