This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/22572] New: systemtap 3.2 failed to compile on ARM


https://sourceware.org/bugzilla/show_bug.cgi?id=22572

            Bug ID: 22572
           Summary: systemtap 3.2 failed to compile on ARM
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: mysecondaccountabc at gmail dot com
  Target Milestone: ---

The host OS is a Debian wheeze on ARM. I tried using different combinations
systemtap/gcc/g++/kernels but I always have the same error. Basically, I tried:
- Systemtap git master and release 3.2
- gcc/g++-4.6 and gcc/g++-4.7
- Kernel 3.2.0-4-versatile and custom 3.2.93-versatile

The Systemtap package available in the wheeze apt is not an option because it
is too old (v1.7). Anyway, I tried that Systemtap version and it's working with
my current setup but failing with my current systemtap script because it
doesn't have some of the Systemtap functions I'm using on it.

The isolated issue is when it tries to compile stap-staptree.o, basically:
$ make stap-staptree.o
  CXX      stap-staptree.o
In file included from staptree.cxx:10:0:
staptree.h: In instantiation of ‘void std::_Construct(_T1*, _Args&& ...) [with
_T1 = print_format::format_component; _Args =
{print_format::format_component}]’:
/usr/include/c++/4.7/bits/stl_uninitialized.h:77:3:   required from ‘static
_ForwardIterator
std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator,
_InputIterator, _ForwardIterator) [with _InputIterator =
std::move_iterator<print_format::format_component*>; _ForwardIterator =
print_format::format_component*; bool _TrivialValueTypes = false]’
/usr/include/c++/4.7/bits/stl_uninitialized.h:119:41:   required from
‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator,
_ForwardIterator) [with _InputIterator =
std::move_iterator<print_format::format_component*>; _ForwardIterator =
print_format::format_component*]’
/usr/include/c++/4.7/bits/stl_uninitialized.h:260:63:   required from
‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator,
_ForwardIterator, std::allocator<_Tp>&) [with _InputIterator =
std::move_iterator<print_format::format_component*>; _ForwardIterator =
print_format::format_component*; _Tp = print_format::format_component]’
/usr/include/c++/4.7/bits/stl_uninitialized.h:283:69:   required from
‘_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator,
_InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator =
print_format::format_component*; _ForwardIterator =
print_format::format_component*; _Allocator =
std::allocator<print_format::format_component>]’
/usr/include/c++/4.7/bits/vector.tcc:410:6:   required from ‘void
std::vector<_Tp, _Alloc>::_M_emplace_back_aux(_Args&& ...) [with _Args = {const
print_format::format_component&}; _Tp = print_format::format_component; _Alloc
= std::allocator<print_format::format_component>]’
/usr/include/c++/4.7/bits/stl_vector.h:891:4:   required from ‘void
std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp =
print_format::format_component; _Alloc =
std::allocator<print_format::format_component>; std::vector<_Tp,
_Alloc>::value_type = print_format::format_component]’
staptree.cxx:904:33:   required from here
staptree.h:516:10: error: invalid conversion from ‘unsigned char’ to
‘print_format::width_type’ [-fpermissive]
staptree.h:516:10: error: invalid conversion from ‘unsigned char’ to
‘print_format::precision_type’ [-fpermissive]
staptree.h:516:10: error: invalid conversion from ‘unsigned char’ to
‘print_format::conversion_type’ [-fpermissive]
In file included from /usr/include/c++/4.7/memory:66:0,
                 from staptree.h:14,
                 from staptree.cxx:10:
/usr/include/c++/4.7/bits/stl_construct.h:77:7: note: synthesized method
‘print_format::format_component::format_component(print_format::format_component&&)’
first required here 
make: *** [stap-staptree.o] Error 

Cheers,
Gus

-- 
You are receiving this mail because:
You are the assignee for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]