From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31347 invoked by alias); 26 Oct 2009 17:32:22 -0000 Received: (qmail 31338 invoked by uid 22791); 26 Oct 2009 17:32:21 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-pz0-f172.google.com (HELO mail-pz0-f172.google.com) (209.85.222.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 26 Oct 2009 17:32:17 +0000 Received: by pzk2 with SMTP id 2so5426109pzk.26 for ; Mon, 26 Oct 2009 10:32:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.141.29.17 with SMTP id g17mr1985499rvj.211.1256578335965; Mon, 26 Oct 2009 10:32:15 -0700 (PDT) In-Reply-To: References: Date: Mon, 26 Oct 2009 17:32:00 -0000 Message-ID: Subject: Re: systemTap 1.0 CROSS COMPILE From: naresh kamboju To: "Frank Ch. Eigler" Cc: systemtap@sources.redhat.com Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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 X-SW-Source: 2009-q4/txt/msg00289.txt.bz2 Hi Frank, Thanks for your quick reply. I did not find any documentation for CROSS compilation. Here cross compilation means I have installed ARM tool chain under the /usr/loca/arm/ Currently I am not using client/server mechanism. I have to build and install stap and staprun binaries on the Host Machine by using cross compilation.I=92ll use stap to build .ko files and copy on the target arm architecture board and insert and execute the module with staprun. Target arm architecture will use (nfs ) network file system of host. All these operation will be in text mode. I am not using Systemtap GUI. Steps I have executed 1. Downloaded and un tar systemtap-1.0.tar.gz 2. copy elfutills (v 0.131) to systemtap-1.0 3. export PATH=3D/usr/local/arm/:$PATH 4. export ARCH=3Darm 5. export CROSS_COMPILE=3D/usr/local/arm/arm-dev- 6. export CC=3D/usr/local/arm/arm-dev-gcc 7. =93./configure --host=3Di686-pc-linux-gnueabi --prefix=3D/usr/local/arm/ --with-elfutils=3Delfutils=94 8. make 9. make install Created stap and staprun files are of X86 arch not ARM architecture. I am not sure about the steps I have used to compile. Please give steps or any links to cross compile and install systemtap ARCH=3D arm kernel=3D2.6.29 gcc=3D 4.3.3 glibc=3D2.9 Thank you very much. Best regards Naresh Kamboju On Mon, Oct 26, 2009 at 9:51 PM, Frank Ch. Eigler wrote: > naresh kamboju writes: > >> I have been trying to build it for ARM architectures by exporting the >> PATH, ARCH, CC and CROSS_COMPILE, however I could not make it work. > > You need to provide more details: exact commands and error messages. > http://sourceware.org/systemtap/wiki/HowToReportBugs > >> Please provide me step to build for CROSS compilation. > > The "NEWS" file provides compact steps for having a normal native > systemtap binary build probe modules for a different architecture. > This is intended to be useful to have a network-central > script-compiler server that can create modules for a variety of > clients. =A0Among others things, this requires cross-compilers and a > cross-configured kernel build tree. =A0Is this the kind of > cross-compilation you had in mind? > > - FChE >