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 error on arm64 (open-embedded build)


Hi Frank,

I have tried with latest changes from git systemtap (commit#
fa814a35c294f01e50567237a797589af29e87b6) but still observing the same
issue:

-------------------------------------------------------------
/usr/share/systemtap/runtime/transport/control.c: In function
'_stp_ctl_write_cmd':
211 include/linux/cred.h:333:25: error: incompatible types when
initializing type 'uid_t' using type 'kuid_t'
212  #define current_euid()  (current_cred_xxx(euid))
213                          ^
214 /usr/share/systemtap/runtime/transport/control.c:41:15: note: in
expansion of macro 'current_euid'
215   uid_t euid = current_euid();
216                ^
217 In file included from /usr/share/systemtap/runtime/linux/print.c:17:0,
218                  from /usr/share/systemtap/runtime/print.c:17,
219                  from /usr/share/systemtap/runtime/runtime_context.h:22,
220                  from /tmp/stapebbEul/hello_src.c:48:
221 /usr/share/systemtap/runtime/transport/transport.c: In function
'_stp_transport_init':
222 /usr/share/systemtap/runtime/transport/transport.c:344:11: error:
incompatible types when assigning to type 'uid_t' from type 'kuid_t'
223   _stp_uid = current_uid();
224            ^
225 /usr/share/systemtap/runtime/transport/transport.c:345:11: error:
incompatible types when assigning to type 'gid_t' from type 'kgid_t'
226   _stp_gid = current_gid();
227            ^
228 scripts/Makefile.build:308: recipe for target
'/tmp/stapebbEul/hello_src.o' failed
229 make[1]: *** [/tmp/stapebbEul/hello_src.o] Error 1
230 Makefile:1272: recipe for target '_module_/tmp/stapebbEul' failed
231 make: *** [_module_/tmp/stapebbEul] Error 2
232 WARNING: kbuild exited with status: 2
233 Pass 4: compilation failed.  [man error::pass4]
234 root@genericarmv8:~#
-------------------------------------------------------------

What is the latest kernel revision verified with systemtap? Our
patches are based out of 3.14-rc3 kernel.

Thanks,
Sandeepa

On 17 March 2014 20:29, Frank Ch. Eigler <fche@redhat.com> wrote:
> Hi, Sandeepa -
>
>> [...]
>> While running sample hello program, the systemtap is failing to
>> generate the source file and failing with errors -pasted- below.
>> [...]
>> WARNING: kbuild exited with status: 2
>> Pass 4: compilation failed.  [man error::pass4]
>
> The error::pass4 page advises that such problems can occur if your
> kernel is much newer than your version of systemtap.  Try again
> with git systemtap.
>
>
> - FChE
>


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