Bug 5086

Summary: cannot use hello world sample for testing lttng-ust
Product: [Yocto Project Subprojects] ADT Reporter: Alexandru Georgescu <alexandru.c.georgescu>
Component: kernel analysisAssignee: Tom Zanussi <tom.zanussi>
Status: VERIFIED INVALID QA Contact:
Severity: normal    
Priority: Undecided CC: yp.sdk.watcher, yp.watcher
Version: 1.5   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Alexandru Georgescu 2013-08-30 10:03:15 UTC
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?
Comment 1 Tom Zanussi 2013-08-30 12:01:14 UTC
Tit'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
Comment 2 Alexandru Georgescu 2013-08-30 12:11:51 UTC
Seems that I copied the wrong file.

Thanks Tom!
Comment 3 Alexandru Georgescu 2013-08-30 12:12:09 UTC
.