[yocto] ERROR: Function failed: do_install_perf

Tom Zanussi tom.zanussi at intel.com
Sat Jul 21 17:00:47 PDT 2012


On Sat, 2012-07-21 at 15:01 -0700, Bodke, Kishore K wrote:
> 
> >-----Original Message-----
> >From: yocto-bounces at yoctoproject.org [mailto:yocto-
> >bounces at yoctoproject.org] On Behalf Of Tom Zanussi
> >Sent: Friday, July 20, 2012 7:20 PM
> >To: Saxena, Rahul
> >Cc: yocto at yoctoproject.org
> >Subject: Re: [yocto] ERROR: Function failed: do_install_perf
> >
> >On Sat, 2012-07-21 at 00:02 +0000, Saxena, Rahul wrote:
> >> Hi,
> >>
> >>
> >>
> >> I suddenly started to get the following error when  running bitbake. I
> >> am using Denzil branches of poky, meta-intel and poky-extras. I
> >> installed libper-dev as suggested by the error message, but it made no
> >> difference.
> >>
> >>
> >>
> >> Any suggestions ?
> >>
> >I think the meta-kernel-dev with denzil is causing the problem i.e the
> >AUTOREV is causing the tip of linux-yocto-3.0 to get picked up.  So just
> >removing poky-extras from your layers should fix the problem.
> 
> Is there any work around if we want to use meta-kernel-dev with denzil?
> I see the same issue now with these combination on Linux-yocto-3.2 as well.
> 

One workaround would be to revert the perf commits in the cedartrail
branch of whatever kernel you're using e.g.:

perf: add sgidefs.h to for mips builds
perf: change --root to --prefix for python install
perf: add 'libperl not found' warning
perf: use pkg-config instead of python-config
perf tools: Add support to install perf python extension
Revert "perf: hard-code NO_LIBPERL/NO_LIBPYTHON"

Or create a new cedartrail branch e.g. cedartrail-denzil with those
commits lopped off and use that instead...

Or use master...

Tom

> Thanks
> Kishore.
> 
> >
> >Using the meta-kernel-dev AUTOREV with master should be fine though, and
> >in fact I did update the cedartrail SRCREVs in master to catch the perf
> >updates in linux-yocto-3.0, so advancing them won't hurt anything.  I
> >guess master is where you want to make new kernel changes anyway...
> >
> >Tom
> >
> >>
> >>
> >> Thanks
> >>
> >> Rahul
> >>
> >>
> >>
> >> ERROR: Function failed: do_install_perf
> >> (see /home/rsaxena/YoctoWork3x/cedartraiv12p/tmp/work/cedartrail-
> >poky-linux/linux-yocto-
> >3.0.32+git1+46e8fc2bbbe73514e8d99101adaaa373f760ffa7_1+81fd8c307997aff
> >37916828dc8b4ef72f5d35a94-r4/temp/log.do_install_perf.69672 for further
> >information)
> >>
> >> NOTE: make
> >> -C /home/rsaxena/YoctoWork3x/cedartraiv12p/tmp/work/cedartrail-poky-
> >linux/linux-yocto-
> >3.0.32+git1+46e8fc2bbbe73514e8d99101adaaa373f760ffa7_1+81fd8c307997aff
> >37916828dc8b4ef72f5d35a94-r4/linux/tools/perf CC=i586-poky-linux-gcc  -m32
> >-march=core2 -msse3 -mtune=generic -mfpmath=sse --
> >sysroot=/home/rsaxena/YoctoWork3x/cedartraiv12p/tmp/sysroots/cedartrail
> >LD=i586-poky-linux-ld --
> >sysroot=/home/rsaxena/YoctoWork3x/cedartraiv12p/tmp/sysroots/cedartrail
> >prefix=/usr
> >DESTDIR=/home/rsaxena/YoctoWork3x/cedartraiv12p/tmp/work/cedartrail-
> >poky-linux/linux-yocto-
> >3.0.32+git1+46e8fc2bbbe73514e8d99101adaaa373f760ffa7_1+81fd8c307997aff
> >37916828dc8b4ef72f5d35a94-r4/image install NO_NEWT=1 NO_DWARF=1
> >>
> >> make: Entering directory
> >> `/home/rsaxena/YoctoWork3x/cedartraiv12p/tmp/work/cedartrail-poky-
> >linux/linux-yocto-
> >3.0.32+git1+46e8fc2bbbe73514e8d99101adaaa373f760ffa7_1+81fd8c307997aff
> >37916828dc8b4ef72f5d35a94-r4/linux/tools/perf'
> >>
> >> Makefile:484: libperl not found, disables Perl scripting support.
> >> Please install libperl-dev or perl-devel
> >>
> >>     * new build flags or prefix
> >>
> >>     CC perf.o
> >>
> >>     CC builtin-annotate.o
> >>
> >>     CC builtin-bench.o
> >>
> >>     CC bench/sched-messaging.o
> >>
> >>     CC bench/sched-pipe.o
> >>
> >>     CC bench/mem-memcpy.o
> >>
> >>     CC builtin-diff.o
> >>
> >>     CC builtin-evlist.o
> >>
> >>     CC builtin-help.o
> >>
> >>     CC builtin-sched.o
> >>
> >>     CC builtin-buildid-list.o
> >>
> >>     CC builtin-buildid-cache.o
> >>
> >>     CC builtin-list.o
> >>
> >>     CC builtin-record.o
> >>
> >>     CC builtin-report.o
> >>
> >>     CC builtin-stat.o
> >>
> >>     CC builtin-timechart.o
> >>
> >>     CC builtin-top.o
> >>
> >>     CC builtin-script.o
> >>
> >>     CC builtin-probe.o
> >>
> >>     CC builtin-kmem.o
> >>
> >>     CC builtin-lock.o
> >>
> >>     CC builtin-kvm.o
> >>
> >>     CC builtin-test.o
> >>
> >>     CC builtin-inject.o
> >>
> >>     CC util/abspath.o
> >>
> >>     CC util/alias.o
> >>
> >>     CC util/annotate.o
> >>
> >>     CC util/build-id.o
> >>
> >>     CC util/config.o
> >>
> >>     CC util/ctype.o
> >>
> >>     CC util/debugfs.o
> >>
> >>     CC util/environment.o
> >>
> >>     CC util/event.o
> >>
> >>     CC util/evlist.o
> >>
> >>     CC util/evsel.o
> >>
> >>     CC util/exec_cmd.o
> >>
> >>     CC util/help.o
> >>
> >>     CC util/levenshtein.o
> >>
> >>     CC util/parse-options.o
> >>
> >>     CC util/parse-events.o
> >>
> >>     CC util/path.o
> >>
> >>     CC util/rbtree.o
> >>
> >>     CC util/bitmap.o
> >>
> >>     CC util/hweight.o
> >>
> >>     CC util/run-command.o
> >>
> >>     CC util/quote.o
> >>
> >>     CC util/strbuf.o
> >>
> >>     CC util/string.o
> >>
> >>     CC util/strlist.o
> >>
> >>     CC util/strfilter.o
> >>
> >>     CC util/top.o
> >>
> >>     CC util/usage.o
> >>
> >>     CC util/wrapper.o
> >>
> >>     CC util/sigchain.o
> >>
> >>     CC util/symbol.o
> >>
> >>     CC util/color.o
> >>
> >>     CC util/pager.o
> >>
> >>     CC util/header.o
> >>
> >>     CC util/callchain.o
> >>
> >>     CC util/values.o
> >>
> >>     CC util/debug.o
> >>
> >>     CC util/map.o
> >>
> >>     CC util/pstack.o
> >>
> >>     CC util/session.o
> >>
> >>     CC util/thread.o
> >>
> >>     CC util/thread_map.o
> >>
> >>     CC util/trace-event-parse.o
> >>
> >>     CC util/trace-event-read.o
> >>
> >>     CC util/trace-event-info.o
> >>
> >>     CC util/trace-event-scripting.o
> >>
> >>     CC util/svghelper.o
> >>
> >>     CC util/sort.o
> >>
> >>     CC util/hist.o
> >>
> >>     CC util/probe-event.o
> >>
> >>     CC util/util.o
> >>
> >>     CC util/xyarray.o
> >>
> >>     CC util/cpumap.o
> >>
> >>     CC util/cgroup.o
> >>
> >>     CC util/scripting-engines/trace-event-python.o
> >>
> >>     CC scripts/python/Perf-Trace-Util/Context.o
> >>
> >>     AR libperf.a
> >>
> >>     LINK perf
> >>
> >>     GEN python/perf.so
> >>
> >> Traceback (most recent call last):
> >>
> >>   File "util/setup.py", line 6, in <module>
> >>
> >>     from distutils.command.build_ext   import build_ext   as
> >> _build_ext
> >>
> >>   File
> >> "/home/rsaxena/YoctoWork3x/cedartraiv12p/tmp/sysroots/x86_64-
> >linux/usr/lib/python2.7/distutils/command/build_ext.py", line 16, in
> ><module>
> >>
> >>     from distutils.sysconfig import customize_compiler,
> >> get_python_version
> >>
> >>   File
> >> "/home/rsaxena/YoctoWork3x/cedartraiv12p/tmp/sysroots/x86_64-
> >linux/usr/lib/python2.7/distutils/sysconfig.py", line 22, in <module>
> >>
> >>     PREFIX =
> >> os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"),
> >> os.getenv("HOST_SYS") )
> >>
> >> TypeError: expected a character buffer object
> >>
> >> cp: cannot stat `python_ext_build/lib/perf.so': No such file or
> >> directory
> >>
> >> make: *** [python/perf.so] Error 1
> >>
> >> make: Leaving directory
> >> `/home/rsaxena/YoctoWork3x/cedartraiv12p/tmp/work/cedartrail-poky-
> >linux/linux-yocto-
> >3.0.32+git1+46e8fc2bbbe73514e8d99101adaaa373f760ffa7_1+81fd8c307997aff
> >37916828dc8b4ef72f5d35a94-r4/linux/tools/perf'
> >>
> >> ERROR: oe_runmake failed
> >>
> >>
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> yocto mailing list
> >> yocto at yoctoproject.org
> >> https://lists.yoctoproject.org/listinfo/yocto
> >
> >
> >_______________________________________________
> >yocto mailing list
> >yocto at yoctoproject.org
> >https://lists.yoctoproject.org/listinfo/yocto





More information about the yocto mailing list