This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Error: staprun syntax error on Target
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Satish Kumar <sakumar at mvista dot com>
- Cc: systemtap at sourceware dot org
- Date: Wed, 29 Nov 2017 13:12:01 -0500
- Subject: Re: Error: staprun syntax error on Target
- Authentication-results: sourceware.org; auth=none
- References: <CABx0mK+5iuWQ8gDUb3GQHUsYWbVX+bMLioxvnA7ygAj5oicrHw@mail.gmail.com>
Satish Kumar <sakumar@mvista.com> writes:
> [...]
> root@xilinx-zynq-le:~# staprun
> /usr/target/bin/staprun: line 1: syntax error: unexpected "("
> following web page
> https://drzhf9.wordpress.com/2015/02/19/systemtap-for-arm/
The staprun binary needs to be built for the same architecture on which
it will be executed. (This is the same as any other binary.) It sounds
as though you did the "building for target board" part without the
appropriate --host=XXXXX configure option, or something went wrong with
that build process.
Can the ARM board run a full enough OS to natively build systemtap
(with --disable-translator if you like), so cross-compilation is not
needed?
- FChE