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?
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
Seems that I copied the wrong file. Thanks Tom!
.