My system (uname --all)
Linux shyamdaramubtnb 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
ARM Cortex A7
I am in the process of cross compiling
perf tools for ARM, but
perf while compilation requires the
elfutils package to read the VMLinux file later, can any one suggest me a way to cross compile elfutils
Downloaded package from here.
Currently I am following the below procedure:
$ automake --add-missing
$ ./configure --host=arm-none-linux-gnueabi \
$ make install
but i stuck at the process of executing ./configure, which throws me an error of
./configure: line 5115: syntax error near unexpected token `zlib,ZLIB,z,gzdirect,gzip'
./configure: line 5115: `eu_ZIPLIB(zlib,ZLIB,z,gzdirect,gzip)'
What may be the reason ? Strange that I did not find a Makefile in the folder downloaded does configure is supposed to create a make file ?(I see files like
LATEST DEVELOPMENTS 1: i started following the link which has few hacks for my problems and trying to do the same as what i am trying
previously i faced some warnings which i ignored, and i understood they are the real cause of problems, on running
aclocal i recieved an error saying
warning: macro AM_PO_SUBDIRS not found in library.
which were resolved by installing
automake --add-missing i received an warning saying that
libdwfl/Makefile.am:73: ZLIB does not appear in AM_CONDITIONAL
libdwfl/Makefile.am:76: BZLIB does not appear in AM_CONDITIONAL
libdwfl/Makefile.am:79: LZMA does not appear in AM_CONDITIONAL
tests/Makefile.am:59: BIARCH does not appear in AM_CONDITIONAL
tests/Makefile.am:122: BIARCH does not appear in AM_CONDITIONAL
tests/Makefile.am:135: LZMA does not appear in AM_CONDITIONAL
tests/Makefile.am:139: ZLIB does not appear in AM_CONDITIONAL
so as suggested by the link i tried
autoreconf -f -i and then
automake --add-missing again which worked like charm
then i ran the ./configure as above which actually did not stop any where, provided i have also done few thinks like commenting parts of Makefile and backends/Makefile which involve in some script related to i386 and x86_64 which have solved my problem in building elfutils for ARM !
Can anyone explain what actually is happening in the above steps ?