This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: systemtap error on arm64 (open-embedded build)
- From: Sandeepa Prabhu <sandeepa dot prabhu at linaro dot org>
- To: "Frank Ch. Eigler" <fche at redhat dot com>
- Cc: systemtap at sourceware dot org, William Cohen <wcohen at redhat dot com>, fche at sourceware dot org, Deepak Saxena <dsaxena at linaro dot org>, "sandeepa dot prabhu at linux dot com" <sandeepa dot prabhu at linux dot com>
- Date: Thu, 20 Mar 2014 10:27:10 +0530
- Subject: Re: systemtap error on arm64 (open-embedded build)
- Authentication-results: sourceware.org; auth=none
- References: <CA+b37P37eDqd01hdJO144eOp6RFsqqWitSRB3oeNVPpeusW81w at mail dot gmail dot com> <20140317145931 dot GA6444 at redhat dot com>
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
>