Met Problem on Enable SystemTap on Android

Turgis, Frederic f-turgis@ti.com
Thu Sep 1 16:44:00 GMT 2011


>I tried to cross-compile the syscall_by_pid.stp

There is an error at Pass1 => semantic error: ELF machine |x86_64 (code 62) mismatch with target arm in '/home/lwan1/WORKING_DIRECTORY/kernel/vmlinux' => it means you want to go for an ARM arch but your kernel has been compiled for x86_64. Try "file xxx/vmlinux", it will confirm.

Have you compiled it yourself ? You then forgot the ARCH=arm and CROSS_COMPILE=arm-none-gnuxxxxx variables


>So I tried the most simple script helloworld.stp, but it still
>does not work.

It is quite the same. It will try to compile for an ARM arch with kernel configuration set for x86_64. Therefore compilation flags interact in weird manner with headers.


By the way, we use a 2010 toolchain or more recent, 2008 is quite old but shall still work.
Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920





More information about the Systemtap mailing list