systemtap in xen enabled kernel gives compilation error

Frank Ch. Eigler fche@redhat.com
Mon Apr 20 15:41:00 GMT 2009


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



More information about the Systemtap mailing list