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/11118] New: CairoWidget.cxx doesn't compile with gcc 4.4.2 on 32bit


The gcc on Fedora 12, i386, fails to compile CairoWidget.cxx:

g++ -DHAVE_CONFIG_H -I. -I/home/mark/src/systemtap/grapher -I.. 
-DPKGDATADIR='"/home/mark/install/systemtap/share/systemtap"' 
-I/usr/include/libglademm-2.4 -I/usr/lib/libglademm-2.4/include
-I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include
-I/usr/include/libglade-2.0 -I/usr/include/giomm-2.4
-I/usr/lib/giomm-2.4/include -I/usr/include/pangomm-1.4
-I/usr/lib/pangomm-1.4/include -I/usr/include/gtk-2.0
-I/usr/include/gtk-unix-print-2.0 -I/usr/include/atkmm-1.6
-I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/glibmm-2.4
-I/usr/lib/glibmm-2.4/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/sigc++-2.0
-I/usr/lib/sigc++-2.0/include -I/usr/include/cairomm-1.0
-I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/libxml2 -O2 -Wall -Werror -g -Werror
-fstack-protector-all -D_FORTIFY_SOURCE=2 -MT stapgraph-CairoWidget.o -MD -MP
-MF .deps/stapgraph-CairoWidget.Tpo -c -o stapgraph-CairoWidget.o `test -f
'CairoWidget.cxx' || echo '/home/mark/src/systemtap/grapher/'`CairoWidget.cxx
cc1plus: warnings being treated as errors
/usr/lib/gcc/i686-redhat-linux/4.4.2/../../../../include/c++/4.4.2/bits/stl_algo.h:
In member function ?virtual void
systemtap::CairoTextBox::draw(Cairo::RefPtr<Cairo::Context>)?:
/usr/lib/gcc/i686-redhat-linux/4.4.2/../../../../include/c++/4.4.2/bits/stl_algo.h:2178:
error: array subscript is above array bounds

gcc-4.4.2-20.fc12.i686

The error message looks somewhat obscure.
It compiles fine on x86_64.
It also compiles without -O2, or with -O3.
So this might be a gcc bug.

P.S. There should be a grapher component in systemtap bugzilla.

-- 
           Summary: CairoWidget.cxx doesn't compile with gcc 4.4.2 on 32bit
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mjw at redhat dot com
                CC: timoore at redhat dot com


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

------- 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]