This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Systemtap source compile for ARM arch


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]