From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26212 invoked by alias); 29 Nov 2017 19:19:54 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 26204 invoked by uid 89); 29 Nov 2017 19:19:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,KB_WAM_FROM_NAME_SINGLEWORD,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=Hx-spam-relays-external:redhat.com, H*RU:redhat.com, H*r:redhat.com X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 29 Nov 2017 19:19:52 +0000 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 76F047F3ED; Wed, 29 Nov 2017 19:19:51 +0000 (UTC) Received: from redhat.com (ovpn-120-17.rdu2.redhat.com [10.10.120.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 13A4C600C0; Wed, 29 Nov 2017 19:19:51 +0000 (UTC) Received: from [127.0.0.1] (helo=vm-rhel7) by redhat.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) (envelope-from ) id 1eK7tY-0006rV-EU; Wed, 29 Nov 2017 14:19:44 -0500 From: fche@redhat.com (Frank Ch. Eigler) To: Satish Kumar Cc: systemtap@sourceware.org Subject: Re: Error: staprun syntax error on Target Date: Wed, 29 Nov 2017 19:19:00 -0000 References: Message-ID: <87374w99kg.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2017-q4/txt/msg00158.txt.bz2 Satish Kumar 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