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]

error: linux/hrtimer.h: No such file or directory


Hi,

I am facing an issue after installing linux-2.6.24 kernel. 
The issue is when i am executing a simple Hello World stap script i am
getting the following error:

/usr/share/systemtap/runtime/autoconf-hrtimer-rel.c:1:27: error:
linux/hrtimer.h: No such file or directory
/usr/share/systemtap/runtime/autoconf-hrtimer-rel.c:3: error:
'HRTIMER_MODE_REL' undeclared here (not in a function)
+ echo ''
+ gcc -m32 '-DKBUILD_BASENAME="stap_06a9812e2124f56085bc3fb42ad43e2c_258"'
-Werror -S -o /dev/null -xc
/usr/share/systemtap/runtime/autoconf-inode-private.c
/usr/share/systemtap/runtime/autoconf-inode-private.c:6: error: variable 'i'
has initializer but incomplete type
/usr/share/systemtap/runtime/autoconf-inode-private.c:6: error: unknown
field 'i_private' specified in initializer
cc1: warnings being treated as errors
/usr/share/systemtap/runtime/autoconf-inode-private.c:6: warning: excess
elements in struct initializer
/usr/share/systemtap/runtime/autoconf-inode-private.c:6: warning: (near
initialization for 'i')
+ echo ''
scripts/Makefile.build:46: *** CFLAGS was changed in
"/tmp/stapwnkE3t/Makefile". Fix it to use EXTRA_CFLAGS.  Stop.
make: *** [_module_/tmp/stapwnkE3t] Error 2
make: Leaving directory `/root/linux/linux-2.6.24'
Pass 4: compiled C into "stap_06a9812e2124f56085bc3fb42ad43e2c_258.ko" in
240usr/170sys/1043real ms.
Pass 4: compilation failed.  Try again with more '-v' (verbose) options.
Running rm -rf /tmp/stapwnkE3t

When i checked the include folder linux/hrtimer.h file does exist. But still
i am getting this error.

This script was working fine with kernel 2.6.23.1-42.

The systemtap version i am using is version 0.5.14/0.130.

Please help me to solve this issue.

Thanks & Regards,
Jaseen
-- 
View this message in context: http://www.nabble.com/error%3A-linux-hrtimer.h%3A-No-such-file-or-directory-tp16442213p16442213.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.


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