This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: systemtap in xen enabled kernel gives compilation error
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: yashwanth dot reddy at atc dot tcs dot com
- Cc: systemtap at sourceware dot org
- Date: Mon, 20 Apr 2009 11:40:44 -0400
- Subject: Re: systemtap in xen enabled kernel gives compilation error
- References: <1240220205.7797.10.camel@localhost.localdomain>
yashwanth <yashwanth.reddy@atc.tcs.com> writes:
> Dear all,
> while building kernel object using systemtap(»¿version 0.6.2/0.131)
> in xen enabled kernel(2.6.21-7.fc7xen) i am getting warnings which are
> treated as errors due to -Werror set inside stap Makefile. [...]
> cc1: warnings being treated as errors
> In file included from include/linux/list.h:8,
> from include/linux/module.h:10,
> from /usr/share/systemtap/runtime/runtime.h:14,
>
> from /tmp/staprXvPjg/stap_fb2dadc85c9f006e93459e4a44ed8875_234.c:42:
> include/linux/prefetch.h: In function 'prefetch_range':
> include/linux/prefetch.h:62: warning: pointer of type 'void *' used in
> arithmetic
> [...]
You could comment out the '-Werror' part in stap src/buildrun.cxx. Or
if you can find a gcc flag to suppress that particular warning, we
could add it.
- FChE