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: Error building SystemTap scripts with F9-Alpha


On Wed, Feb 13, 2008 at 09:11:45AM -0500, William Cohen wrote:
> Ananth N Mavinakayanahalli wrote:
>> Hi,
>>
>> On a freshly installed F9-Alpha system, I tried running the stap
>> examples shipped with the rpm. The scripts fail to build (Pass 4):
>>
>> [root@jataayu examples]# stap -vv helloworld.stp
>> ...
>>
>> In file included from /usr/share/systemtap/runtime/stack.c:34,
>>                  from
>> /tmp/stapWS6yUb/stap_c69b2769efc746dff9a20e23dd89cb4f_264.c:44:
>> /usr/share/systemtap/runtime/stack-i386.c:26:22: error: #if with no
>> expression
>> In file included from /usr/share/systemtap/runtime/stack.c:34,
>>                  from
>> /tmp/stapWS6yUb/stap_c69b2769efc746dff9a20e23dd89cb4f_264.c:44:
>> /usr/share/systemtap/runtime/stack-i386.c: In function
>> '__stp_stack_print':
>> /usr/share/systemtap/runtime/stack-i386.c:30: error: 'ebp' undeclared
>> (first use in this function)
>> /usr/share/systemtap/runtime/stack-i386.c:30: error: (Each undeclared
>> identifier is reported only once
>> /usr/share/systemtap/runtime/stack-i386.c:30: error: for each function
>> it appears in.)
>> make[1]: ***
>> [/tmp/stapWS6yUb/stap_c69b2769efc746dff9a20e23dd89cb4f_264.o] Error 1
>> make: *** [_module_/tmp/stapWS6yUb] Error 2
>> make: Leaving directory `/usr/src/kernels/2.6.24-2.fc9-i686'
>> Pass 4: compiled C into "stap_c69b2769efc746dff9a20e23dd89cb4f_264.ko"
>> in 1610usr/1180sys/2819real ms.
>> Pass 4: compilation failed.  Try again with more '-v' (verbose) options.
>> Running rm -rf /tmp/stapWS6yUb
>>
>> [root@jataayu examples]# stap -V
>> SystemTap translator/driver (version 0.6.1/0.132 built 2008-01-18)
>> Copyright (C) 2005-2007 Red Hat, Inc. and others
>> This is free software; see the source for copying conditions.
>>
>> [root@jataayu examples]# uname -a
>> Linux jataayu.in.ibm.com 2.6.24-2.fc9 #1 SMP Fri Jan 25 13:14:54 EST
>> 2008 i686 i686 i386 GNU/Linux
>>
>> Ananth
>
>
> There is a correction for this typo, but it yet in the systemtap rpms. From 
> the runtime/ChangeLog:
>
> 2008-01-27  Frank Ch. Eigler  <fche@elastic.org>
>
> 	* stack-i386.c (__stp_stack_print): Correct #elif->#else typo.

Thanks Will. That fixed the problem.

Ananth


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