| Summary: | crosstap doesn't work on qemux86 core-image-sato-sdk | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Meta-yocto | Reporter: | Ada Solcan <ada-mihaela.solcan> |
| Component: | meta-yocto | Assignee: | Tom Zanussi <tom.zanussi> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | Undecided | CC: | poky.bs.watcher, poky.watcher |
| Version: | 1.6 | ||
| Target Milestone: | --- | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
This is likely the same thing as: https://bugzilla.yoctoproject.org/show_bug.cgi?id=6016 I'll be submitting the patch in that bug, but I'll see if it fixes this as well first. |
Host: Fedora 20 64-bit & Ubuntu 13.10 64-bit poky: 3e528d3e4bc542ca2f654c54363c56af0fb9f61b STEPS TO REPRODUCE: 1. Create a trace_open.stp script as follows: probe syscall.open { printf ("%s(%d) open (%s)\n", execname(), pid(), argstr) } 2. Bitbake a qemux86 core-image-sato-sdk image and start it under qemu 3. Make sure that the ssh service is started on the qemu machine 4. From the host machine poky build dir run: crosstap root@192.168.7.2 trace_open.stp EXPECTED RESULT The script should successfully connect to the qemu machine and there should be presented a list of services(pid, process name) which run on the qemu machine. ACTUAL RESULT The following error is displayed: [ada@localhost build]$ crosstap root@192.168.7.2 ~/Documents/trace_open.stp ~/work/2014-04-02/poky/build ~/work/2014-04-02/poky/build ~/work/2014-04-02/poky/build In file included from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder.c:17:0, from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/runtime.h:192, from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/runtime.h:24, from /tmp/stapFqB7RG/trace_open_src.c:24: /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder2.c: In function '__stp_utrace_attach_match_filename': /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder2.c:821:11: error: incompatible types when assigning to type 'uid_t' from type 'kuid_t' tsk_euid = task_euid(tsk); ^ /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder2.c: In function 'stap_start_task_finder': /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/task_finder2.c:1711:12: error: incompatible types when assigning to type 'uid_t' from type 'kuid_t' tsk_euid = task_euid(tsk); ^ In file included from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/runtime.h:198:0, from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/runtime.h:24, from /tmp/stapFqB7RG/trace_open_src.c:24: /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/sym.c: In function '_stp_snprint_addr': /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/sym.c:567:4: error: implicit declaration of function 'preempt_enable_no_resched' [-Werror=implicit-function-declaration] preempt_enable_no_resched(); ^ In file included from /home/ada/work/2014-04-02/poky/build/tmp/work/qemux86-poky-linux/linux-yocto/3.14+gitAUTOINC+fc8c30398d_0143c6ebb4-r0/linux/include/linux/sched.h:53:0, from /home/ada/work/2014-04-02/poky/build/tmp/work/qemux86-poky-linux/linux-yocto/3.14+gitAUTOINC+fc8c30398d_0143c6ebb4-r0/linux/include/linux/ptrace.h:5, from /home/ada/work/2014-04-02/poky/build/tmp/work/qemux86-poky-linux/linux-yocto/3.14+gitAUTOINC+fc8c30398d_0143c6ebb4-r0/linux/include/linux/ftrace.h:13, from /home/ada/work/2014-04-02/poky/build/tmp/work/qemux86-poky-linux/linux-yocto/3.14+gitAUTOINC+fc8c30398d_0143c6ebb4-r0/linux/include/linux/kprobes.h:42, from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/runtime.h:21, from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/runtime.h:24, from /tmp/stapFqB7RG/trace_open_src.c:24: /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/transport/control.c: In function '_stp_ctl_write_cmd': /home/ada/work/2014-04-02/poky/build/tmp/work/qemux86-poky-linux/linux-yocto/3.14+gitAUTOINC+fc8c30398d_0143c6ebb4-r0/linux/include/linux/cred.h:333:25: error: incompatible types when initializing type 'uid_t' using type 'kuid_t' #define current_euid() (current_cred_xxx(euid)) ^ /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/transport/control.c:41:15: note: in expansion of macro 'current_euid' uid_t euid = current_euid(); ^ In file included from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/linux/print.c:17:0, from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/print.c:17, from /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/runtime_context.h:22, from /tmp/stapFqB7RG/trace_open_src.c:929: /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/transport/transport.c: In function '_stp_transport_init': /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/transport/transport.c:344:11: error: incompatible types when assigning to type 'uid_t' from type 'kuid_t' _stp_uid = current_uid(); ^ /home/ada/work/2014-04-02/poky/build/tmp/sysroots/x86_64-linux/usr/share/systemtap/runtime/transport/transport.c:345:11: error: incompatible types when assigning to type 'gid_t' from type 'kgid_t' _stp_gid = current_gid(); ^ cc1: all warnings being treated as errors make[3]: *** [/tmp/stapFqB7RG/trace_open_src.o] Error 1 make[2]: *** [_module_/tmp/stapFqB7RG] Error 2 make[1]: *** [sub-make] Error 2 make: *** [all] Error 2 WARNING: kbuild exited with status: 2 Pass 4: compilation failed. [man error::pass4]