public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* problems with sysroot variable when cross compiling uprobes
@ 2016-02-25 16:50 Holger Brunck
  0 siblings, 0 replies; 4+ messages in thread
From: Holger Brunck @ 2016-02-25 16:50 UTC (permalink / raw)
  To: systemtap

Hi all,
I am working on a powerpc board with 32 bit architecture and try to compile
userspace probes. This means I have my own cross compiled root filesystem and I
am using stap then with the --sysroot option.

I had a setup up and running with systemtap version 2.5 for a longer time. Now I
tried to upgrade my sytemtap version to 2.9. But already with version 2.6 I see
the following problem: When I try to compile my stap probe it complains with an
error message that the executable can not be found. And what I see that the path
I specified for my sysroot variable is duplicated.

My probe is e.g.:

#!/usr/bin/env stap

probe process("/bin/my_process.out").function("my_function")
{
  printf ("Hello World!\n");
}

My stap command is:
stap -a powerpc --sysroot=/opt/root -B CROSS_COMPILE=powerpc-linux- -m hello -r
<kernel_dir> hello.stp

And the error message is:
semantic error: while resolving probe point: identifier 'process' at hello.stp:3:7
        source: probe process("/bin/my_process.out").function("my_function")
                      ^

semantic error: cannot find executable '/opt/root//opt/root//bin/my_process.out'

Pass 2: analysis failed.  [man error::pass2]


And as you can see  the path I specified with my --sysroot parameter is
duplicated and of course this path (/opt/root//opt/root//usr/...) is not present.

As I said it works fine with an own build systemtap 2.5 but does not work with
an own build systemtap 2.9. Also the official installed stap version 2.8 on my
host system shows the same error.

Am I am doing something wrong here or has anybody seen the same problem? Any
help is appreciated.

Regards
Holger Brunck

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-03-30 20:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <5ECCFFB6-1FDD-4BB9-A93F-EFC7249B80FC@gmx.de>
2016-03-02  9:38 ` problems with sysroot variable when cross compiling uprobes Holger Brunck
2016-03-02 16:53   ` David Smith
2016-03-30 20:04   ` Torsten Polle
2016-02-25 16:50 Holger Brunck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).