Bug 10859

Summary: crosstap doesn't work with error: runtime_defines.h: No such file or directory
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Yi Zhao <yi.zhao>
Component: meta-yoctoAssignee: Saul Wold <sgw>
Status: RESOLVED WORKSFORME QA Contact: Yi Zhao <yi.zhao>
Severity: normal    
Priority: Medium CC: jose.perez.carranza, poky.bs.watcher, poky.watcher, sgw, yi.zhao
Version: 2.3   
Target Milestone: 2.4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Yi Zhao 2016-12-27 03:38:58 UTC
Git rev: master/573c646d4cc62dcd0c230381df4940bdf314d495

Steps:
1. Create the trace_open.stp script:

probe syscall.open
{
    printf ("%s(%d) open\n", execname(), pid())
}

2. bitbake core-image-sato-sdk
   bitbake systemtap-native

3. Launch the qemux86

4. Run "crosstap root@192.168.7.2 trace_open.stp"

Error message:

$ crosstap root@192.168.7.2 trace_open.stp
/buildarea/jenkins-yocto/workspace/Yocto2.3-kernel_module_compilation_crosstap/build /buildarea/jenkins-yocto/workspace/Yocto2.3-kernel_module_compilation_crosstap/build
/buildarea/jenkins-yocto/workspace/Yocto2.3-kernel_module_compilation_crosstap/build
/tmp/stapgZH1Z6/trace_open_src.c:10:29: fatal error: runtime_defines.h: No such file or directory
 #include "runtime_defines.h"
                             ^
compilation terminated.
make[3]: *** [/tmp/stapgZH1Z6/trace_open_src.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [_module_/tmp/stapgZH1Z6] Error 2
make[1]: *** [sub-make] Error 2
make: *** [__sub-make] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed.  [man error::pass4]
Comment 1 Alexander Kanavin 2017-01-19 10:42:37 UTC
Wrong assignment I think. Did you mean Alexander Kanevskiy?
Comment 2 Yi Zhao 2017-03-20 00:31:32 UTC
This issue should be fixed in 2.3 M3 rc1.
Please see bug 10990 for more details.
Comment 3 Saul Wold 2017-06-14 17:04:57 UTC
I beleive that this is fixed by the patches for crosstap to work in the Recipe specific sysroot, I am closing this as works for me, if there is still issues, please reopen.