<?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>5086</bug_id>
          
          <creation_ts>2013-08-30 10:03:15 +0000</creation_ts>
          <short_desc>cannot use hello world sample for testing lttng-ust</short_desc>
          <delta_ts>2013-08-30 12:12:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>ADT</product>
          <component>kernel analysis</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandru Georgescu">alexandru.c.georgescu</reporter>
          <assigned_to name="Tom Zanussi">tom.zanussi</assigned_to>
          <cc>yp.sdk.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36083</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-08-30 10:03:15 +0000</bug_when>
    <thetext>poky: 5745e45b18e5099e94b4d5a73bc97dc6d4cdc91f
HOST: Fedora 18 64bit.


1. Prepare a core-image-sato-sdk image for qemux86-64
2. Boot it.
3. Copy the hello sample for testing lttng-ust to the qemu image. e.g: 
 /mnt/big/8-28-M4/poky/build/tmp/work/x86_64-poky-linux/lttng-ust/2_2.2.0-r0/build/tests/hello

4. Run it under qemu


EXPECTED RESULTS
4. Program runs

ACTUAL RESULTS
4. the following errors appear:


root@qemux86-64:~# ./hello 
./hello: line 146: /usr/bin/sed: No such file or directory
./hello: line 150: /usr/bin/sed: No such file or directory
./hello: line 202: cd: /mnt/big/8-28-M4/poky/build/tmp/work/x86_64-poky-linux/lttng-ust/2_2.2.0-r0/build/tests/hello: No such file or directory
x86_64-poky-linux-gcc: error: hello-hello.o: No such file or directory
x86_64-poky-linux-gcc: error: hello-tp.o: No such file or directory
x86_64-poky-linux-gcc: error: ../../liblttng-ust/.libs/liblttng-ust.so: No such file or directory
x86_64-poky-linux-gcc: error: /mnt/big/8-28-M4/poky/build/tmp/work/x86_64-poky-linux/lttng-ust/2_2.2.0-r0/build/liblttng-ust/.libs/liblttng-ust-tracepoint.so: No such file or directory
x86_64-poky-linux-gcc: error: /mnt/big/8-28-M4/poky/build/tmp/sysroots/qemux86-64/usr/lib/liburcu-bp.so: No such file or directory
x86_64-poky-linux-gcc: error: /mnt/big/8-28-M4/poky/build/tmp/sysroots/qemux86-64/usr/lib/liburcu-cds.so: No such file or directory
x86_64-poky-linux-gcc: error: /mnt/big/8-28-M4/poky/build/tmp/sysroots/qemux86-64/usr/lib/liburcu-common.so: No such file or directorynroot@qemux86-64:~# 



maybe incompatible with busybox?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36093</commentid>
    <comment_count>1</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-08-30 12:01:14 +0000</bug_when>
    <thetext>Tit&apos;s because the hello program you copied is actually a script - you need to use the binary in .libs/hello instead:

/mnt/big/8-28-M4/poky/build/tmp/work/x86_64-poky-linux/lttng-ust/2_2.2.0-r0/build/tests/hello/.libs/hello</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36094</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-08-30 12:11:51 +0000</bug_when>
    <thetext>Seems that I copied the wrong file.

Thanks Tom!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36095</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-08-30 12:12:09 +0000</bug_when>
    <thetext>.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>