This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Systemtap source compile for ARM arch
- From: Naren chandru <naren_lin at yahoo dot co dot in>
- To: "Frank Ch. Eigler" <fche at redhat dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: Thu, 12 Jul 2007 09:31:49 +0100 (BST)
- Subject: Re: Systemtap source compile for ARM arch
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=UjbpoT/UwExGFGVEgFqJEk/nW4an8tiSHr5xJrQ19GZxbJC34+BBcZ1uLrBqGhdFQKtRPsEepGouJn3LHWoIlkxdp+pFJ+dUy16t5gLx4P10+YPnGOreGMB/yEtCuIonwVB6W/x6XabFVM6C8VT7BZ4TNRjFqE9mr+yn+Z7jEoA=;
Frank,
Thanks for the quick reply.
>"Frank Ch. Eigler" <fche@redhat.com> wrote:
>
> > [...] Now I am trying to build it for ARM
> architecture. I don't
> > know how to cross compile systemtap for ARM
> architecture. [...]
>
> If you mean building a systemtap binary that will
> run on an ARM host
> (and thus run a native ARM compiler to build the
> modules), this is how
> it should work:
>
> PATH=...path.to.arm.toolchain..:$PATH .../configure
> --host=CONFIG_TRIPLET ...
>
> However, this breaks for a few different reasons.
> One of them is the
> missing passing down of "--host" to a bundled
> elfutils build, which is
> the likely configuration for a cross tool. There
> are some other
> obstacles. But in principle, it should be workable.
>
I have started the compilation of systemtap src in
native ARM compiler.
Source details:
- elfutils-0.128 with elfutils-portability.patch
applied.
- systemtap-20070630.tar.bz2 snapshot.
I have compiled the "src" with following commands
# tar -xvjf systemtap-20070630.tar.bz2
# cd src
# ./configure
--with-elfutils=/home/naren/elfutils-0.128
# make all check
I got the following error:
r -Wunused -Wextra -ffunction-sections -g -O2 -MT
xmalloc.o -MD -MP -MF .deps/xmalloc.Tpo -c -o
xmalloc.o /home/naren/elfutils-0.128/lib/xmalloc.c
cc1: warnings being treated as errors
/home/naren/elfutils-0.128/lib/xmalloc.c: In function
'xmalloc':
/home/naren/elfutils-0.128/lib/xmalloc.c:51: warning:
implicit declaration of function 'gettext'
/home/naren/elfutils-0.128/lib/xmalloc.c:51: warning:
incompatible implicit declaration of built-in function
'gettext'
/home/naren/elfutils-0.128/lib/xmalloc.c: In function
'xcalloc':
/home/naren/elfutils-0.128/lib/xmalloc.c:65: warning:
incompatible implicit declaration of built-in function
'gettext'
/home/naren/elfutils-0.128/lib/xmalloc.c: In function
'xrealloc':
/home/naren/elfutils-0.128/lib/xmalloc.c:79: warning:
incompatible implicit declaration of built-in function
'gettext'
make[3]: *** [xmalloc.o] Error 1
make[3]: Leaving directory
`/home/naren/src/build-elfutils/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/naren/src/build-elfutils'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/naren/src/build-elfutils'
make: *** [stamp-elfutils] Error 2
- Naren
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/