<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>10859</bug_id>
          
          <creation_ts>2016-12-27 03:38:58 +0000</creation_ts>
          <short_desc>crosstap doesn&apos;t work with error: runtime_defines.h: No such file or directory</short_desc>
          <delta_ts>2017-06-14 17:04:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>jose.perez.carranza</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69385</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2016-12-27 03:38:58 +0000</bug_when>
    <thetext>Git rev: master/573c646d4cc62dcd0c230381df4940bdf314d495

Steps:
1. Create the trace_open.stp script:

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

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

3. Launch the qemux86

4. Run &quot;crosstap root@192.168.7.2 trace_open.stp&quot;

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 &quot;runtime_defines.h&quot;
                             ^
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]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69924</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2017-01-19 10:42:37 +0000</bug_when>
    <thetext>Wrong assignment I think. Did you mean Alexander Kanevskiy?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71438</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2017-03-20 00:31:32 +0000</bug_when>
    <thetext>This issue should be fixed in 2.3 M3 rc1.
Please see bug 10990 for more details.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74154</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-06-14 17:04:57 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>