Bug 10859 - crosstap doesn't work with error: runtime_defines.h: No such file or directory
Summary: crosstap doesn't work with error: runtime_defines.h: No such file or directory
Status: RESOLVED WORKSFORME
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.4
Assignee: Saul Wold
QA Contact: Yi Zhao
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-12-27 03:38 UTC by Yi Zhao
Modified: 2017-06-14 17:04 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.