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

Wenji Huang wenji.huang@oracle.com
Wed Apr 2 05:25:00 GMT 2008


Thanks for the report.

tsjaseen wrote:
> 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

It looks like the same problem reported in threads 
http://sources.redhat.com/ml/systemtap/2008-q1/msg00397.html.

> /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.

Already switched to EXTRA_CFLAGS

> 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


They should be fixed. Please update the latest sourcecode and try it again.

Best regards,
Wenji



More information about the Systemtap mailing list