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/5975] New: Systemtap build error with -DNDEBUG


I run a Gentoo system and my CFLAGS are:
CFLAGS="-march=athlon64 -pipe -O2 -g -DNDEBUG -funit-at-a-time
-finline-functions -freorder-blocks-and-partition"

Gentoo identifies the Systemtap version as:
systemtap-0.6.2_p20080315

Systemtap compile fails with:
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.  -DBINDIR='"/usr/bin"'
-DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/libexec/systemtap"'  
-Wall -Werror -march=athlon64 -pipe -O2 -g -DNDEBUG -funit-at-a-time
-finline-functions -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2 -MT
stap-tapsets.o -MD -MP -MF .deps/stap-tapsets.Tpo -c -o stap-tapsets.o `test -f
'tapsets.cxx' || echo './'`tapsets.cxx
cc1plus: warnings being treated as errors
tapsets.cxx: In constructor 'base_query::base_query(systemtap_session&, probe*,
probe_point*, dwflpp&, const std::map<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, literal*,
std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> >
>, std::allocator<std::pair<const std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, literal*> > >&,
std::vector<derived_probe*, std::allocator<derived_probe*> >&)':
tapsets.cxx:2114: warning: unused variable 'has_module'
tapsets.cxx: In member function 'virtual void
uprobe_builder::build(systemtap_session&, probe*, probe_point*, const
std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >,
literal*, std::less<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, literal*> > >&,
std::vector<derived_probe*, std::allocator<derived_probe*> >&)':
tapsets.cxx:4289: warning: unused variable 'b1'
tapsets.cxx:4290: warning: unused variable 'b2'
tapsets.cxx: In member function 'virtual void
mark_builder::build(systemtap_session&, probe*, probe_point*, const
std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >,
literal*, std::less<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, literal*> > >&,
std::vector<derived_probe*, std::allocator<derived_probe*> >&)':
tapsets.cxx:5781: warning: unused variable 'has_mark_str'

Obviously, no one has tested the build with NDEBUG, ever.  It might be a good idea.

-- 
           Summary: Systemtap build error with -DNDEBUG
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: zlynx at acm dot org
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=5975

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


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