* perf cross compilation on yocto-linux for ARM fails
@ 2014-08-12 21:49 Suresh Nagarajan
2014-08-20 1:54 ` David Ahern
0 siblings, 1 reply; 3+ messages in thread
From: Suresh Nagarajan @ 2014-08-12 21:49 UTC (permalink / raw)
To: linux-perf-users
perf cross compilation on yocto-linux for ARM fails. I've seen posts on
this failure on internet but no where a detailed info is given on what was
the fix (or if there is a fix yet)
using yocto package, I have run into issues..
Here are the steps to run into the issue
$ cd ~
$ git clone http://git.rocketboards.org/poky-socfpga.git
$ cd poky-socfpga/
$ git checkout -b <test_branch> ACDS14.0_REL_GSRD_PR
$ source ./altera-init build
$ bitbake perf
Note: replace <test_branch> with the name of the branch you want to use
locally.
This fails with
====================================================
[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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: perf cross compilation on yocto-linux for ARM fails
2014-08-12 21:49 perf cross compilation on yocto-linux for ARM fails Suresh Nagarajan
@ 2014-08-20 1:54 ` David Ahern
[not found] ` <CACbZ9VKTbvfiWmmvhSx3Po4rOaGALNJwk9_Zi_seteCf3ac-Cw@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: David Ahern @ 2014-08-20 1:54 UTC (permalink / raw)
To: Suresh Nagarajan, linux-perf-users
On 8/12/14, 3:49 PM, Suresh Nagarajan wrote:
>
> perf cross compilation on yocto-linux for ARM fails. I've seen posts on
> this failure on internet but no where a detailed info is given on what was
> the fix (or if there is a fix yet)
>
> using yocto package, I have run into issues..
>
> Here are the steps to run into the issue
> $ cd ~
> $ git clone http://git.rocketboards.org/poky-socfpga.git
> $ cd poky-socfpga/
> $ git checkout -b <test_branch> ACDS14.0_REL_GSRD_PR
> $ source ./altera-init build
> $ bitbake perf
>
> Note: replace <test_branch> with the name of the branch you want to use
> locally.
you should create a recipe to build perf within the yocto framework.
David
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: perf cross compilation on yocto-linux for ARM fails
[not found] ` <CACbZ9VKTbvfiWmmvhSx3Po4rOaGALNJwk9_Zi_seteCf3ac-Cw@mail.gmail.com>
@ 2014-08-20 2:35 ` David Ahern
0 siblings, 0 replies; 3+ messages in thread
From: David Ahern @ 2014-08-20 2:35 UTC (permalink / raw)
To: Suresh Nagarajan; +Cc: linux-perf-users
On 8/19/14, 8:17 PM, Suresh Nagarajan wrote:
> can you pls expand on "you should create a recipe to build perf within
> the yocto framework"
>
> there is perf.bb <http://perf.bb> in recipes-kernel/perf.
ok. We use my version of perf internally so I had to write my own. Was
not aware that there was a perf.bb file.
The issue I'm
> running into is
> that perf builds (is put under /works/perf/images/usr/bin)
>
> However, when run it complains that
> root@socfpga_cyclone5:~# ./perf
> .*/perf: error while loading shared libraries:
> /lib/libbfd-2.23.1.20121113.so <http://libbfd-2.23.1.20121113.so>:
> Unable to run arch-specific checks*
> *
> *
> *what does it mean? * Kernel boots fine with uImage...
hmmm... did not hit that problem building ppc images on x86.
Does that lib exist in the image? If not is it in the build env sysroot
(should be)?
David
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-08-20 2:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-12 21:49 perf cross compilation on yocto-linux for ARM fails Suresh Nagarajan
2014-08-20 1:54 ` David Ahern
[not found] ` <CACbZ9VKTbvfiWmmvhSx3Po4rOaGALNJwk9_Zi_seteCf3ac-Cw@mail.gmail.com>
2014-08-20 2:35 ` David Ahern
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).