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]

Re: systemtap in xen enabled kernel gives compilation error


Dear Frank,

Thank you for your reply.

Commenting '-Werror' in stap src/buildrun.cxx will work fine.
Our problem was the stap script was running fine in normal kernel but it
was throwing error in xen enabled kernel.

The root cause for the problem was the presence of the additional
parameter '-Wpointer-arith' in the CFLAGS which is defined in Makefile
of xen enabled
kernel("/lib/modules/2.6.21-7.fc7xen/build/Makefile"),which was not
present in normal kernel.The presence of "-Wpointer-arith" in CFLAGS was
generating warning whenever there is conversion of void pointer to
respective pointer type.These warnings are treated as errors because
"-Werror" was present in stap generated Makefile.

Commenting  the additional parameter '-Wpointer-arith' in the CFLAGS
resolved the issue.

Thanks,
Yashwanth    

On Mon, 2009-04-20 at 11:40 -0400, Frank Ch. Eigler wrote: 
> 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


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