* cross compiling perf tool on ARM fails in yocto-linux environment
@ 2014-08-12 18:04 Suresh Nagarajan
2014-08-13 4:45 ` Namhyung Kim
0 siblings, 1 reply; 2+ messages in thread
From: Suresh Nagarajan @ 2014-08-12 18:04 UTC (permalink / raw)
To: linux-perf-users
I am trying to cross-compile perf tool for ARM on x86 machine.
====================================================
[snagarajan@moltar-76 perf]$ alias armmake='make CROSS_COMPILE=arm-linux-
gnueabihf- ARCH=arm'
[snagarajan@moltar-76 perf]$ PATH=~/gcc-linaro-arm-linux-gnueabihf-4.9-
2014.07_linux/bin:$PATH
[snagarajan@moltar-76 perf]$ armmake install
BUILD: Doing 'make -j4' parallel build
Auto-detecting system features:
... backtrace: [ on ]
... dwarf: [ on ]
... fortify-source: [ on ]
... glibc: [ on ]
... gtk2: [ OFF ]
... gtk2-infobar: [ OFF ]
... libaudit: [ on ]
... libbfd: [ on ]
... libelf: [ on ]
... libelf-getphdrnum: [ on ]
... libelf-mmap: [ on ]
... libnuma: [ OFF ]
... libperl: [ on ]
... libpython: [ on ]
... libpython-version: [ on ]
... libslang: [ OFF ]
... libunwind: [ OFF ]
... on-exit: [ on ]
... stackprotector: [ on ]
... stackprotector-all: [ on ]
... timerfd: [ on ]
config/Makefile:329: No libunwind found, disabling post unwind support.
Please install libunwind-dev[el] >= 1.1
config/Makefile:368: slang not found, disables TUI support. Please install
slang-devel or libslang-dev
config/Makefile:381: GTK2 not found, disables GTK2 support. Please install
gtk2-devel or libgtk2.0-dev
config/Makefile:536: No numa.h found, disables 'perf bench numa mem'
benchmark, please install numa-libs-devel or libnuma-dev
FLEX util/pmu-flex.c
CC util/environment.o
CC util/event.o
CC util/evlist.o
In file included from util/callchain.h:8:0,
from util/hist.h:6,
from util/evsel.h:11,
from util/evlist.h:8,
from util/evlist.c:15:
util/symbol.h:17:20: fatal error: libelf.h: No such file or directory
#include <libelf.h>
^
compilation terminated.
make[1]: *** [util/evlist.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from util/sort.h:11:0,
from util/event.c:5:
util/symbol.h:17:20: fatal error: libelf.h: No such file or directory
#include <libelf.h>
^
compilation terminated.
make[1]: *** [util/event.o] Error 1
make: *** [install] Error 2
====================================================================
I have libelf.h file compiled for ARM, I tried replacing it in
/usr/include and also in ../arm-none-linux-gnueabi/libc/usr/include.
However, I face the same error. (I am not exactly sure about where the
compiler is looking for libelf.h)
I noticed that this issue existed from 2012... Is this not fixed?
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: cross compiling perf tool on ARM fails in yocto-linux environment
2014-08-12 18:04 cross compiling perf tool on ARM fails in yocto-linux environment Suresh Nagarajan
@ 2014-08-13 4:45 ` Namhyung Kim
0 siblings, 0 replies; 2+ messages in thread
From: Namhyung Kim @ 2014-08-13 4:45 UTC (permalink / raw)
To: Suresh Nagarajan; +Cc: linux-perf-users
Hi Suresh,
On Tue, 12 Aug 2014 18:04:10 +0000 (UTC), Suresh Nagarajan wrote:
> I am trying to cross-compile perf tool for ARM on x86 machine.
>
>
> ====================================================
>
> [snagarajan@moltar-76 perf]$ alias armmake='make CROSS_COMPILE=arm-linux-
> gnueabihf- ARCH=arm'
> [snagarajan@moltar-76 perf]$ PATH=~/gcc-linaro-arm-linux-gnueabihf-4.9-
> 2014.07_linux/bin:$PATH
> [snagarajan@moltar-76 perf]$ armmake install
> BUILD: Doing 'make -j4' parallel build
>
> Auto-detecting system features:
> ... backtrace: [ on ]
> ... dwarf: [ on ]
> ... fortify-source: [ on ]
> ... glibc: [ on ]
> ... gtk2: [ OFF ]
> ... gtk2-infobar: [ OFF ]
> ... libaudit: [ on ]
> ... libbfd: [ on ]
> ... libelf: [ on ]
> ... libelf-getphdrnum: [ on ]
> ... libelf-mmap: [ on ]
> ... libnuma: [ OFF ]
> ... libperl: [ on ]
> ... libpython: [ on ]
> ... libpython-version: [ on ]
> ... libslang: [ OFF ]
> ... libunwind: [ OFF ]
> ... on-exit: [ on ]
> ... stackprotector: [ on ]
> ... stackprotector-all: [ on ]
> ... timerfd: [ on ]
>
> config/Makefile:329: No libunwind found, disabling post unwind support.
> Please install libunwind-dev[el] >= 1.1
> config/Makefile:368: slang not found, disables TUI support. Please install
> slang-devel or libslang-dev
> config/Makefile:381: GTK2 not found, disables GTK2 support. Please install
> gtk2-devel or libgtk2.0-dev
> config/Makefile:536: No numa.h found, disables 'perf bench numa mem'
> benchmark, please install numa-libs-devel or libnuma-dev
> FLEX util/pmu-flex.c
> CC util/environment.o
> CC util/event.o
> CC util/evlist.o
> In file included from util/callchain.h:8:0,
> from util/hist.h:6,
> from util/evsel.h:11,
> from util/evlist.h:8,
> from util/evlist.c:15:
> util/symbol.h:17:20: fatal error: libelf.h: No such file or directory
> #include <libelf.h>
> ^
> compilation terminated.
> make[1]: *** [util/evlist.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> In file included from util/sort.h:11:0,
> from util/event.c:5:
> util/symbol.h:17:20: fatal error: libelf.h: No such file or directory
> #include <libelf.h>
> ^
> compilation terminated.
> make[1]: *** [util/event.o] Error 1
> make: *** [install] Error 2
>
>
> ====================================================================
>
> I have libelf.h file compiled for ARM, I tried replacing it in
> /usr/include and also in ../arm-none-linux-gnueabi/libc/usr/include.
> However, I face the same error. (I am not exactly sure about where the
> compiler is looking for libelf.h)
>
> I noticed that this issue existed from 2012... Is this not fixed?
Hmm.. don't know. You can try to build with setting EXTRA_CFLAGS and
LDFLAGS to point your include and lib directory in the sysroot.
Thanks,
Namhyung
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-13 4:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-12 18:04 cross compiling perf tool on ARM fails in yocto-linux environment Suresh Nagarajan
2014-08-13 4:45 ` Namhyung Kim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).