Bug 10366

Summary: trouble with perf do_install
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Maksim E. Kozlov <maksim.e.kozlov>
Component: devtools / tool chainAssignee: Saul Wold <sgw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod
Version: unspecified   
Target Milestone: 2.2 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Maksim E. Kozlov 2016-10-04 12:13:49 UTC
I got an error during building perf tool

xmlto: Can't continue, xsltproc tool not found or not executable.
| make[2]: *** [/work/ram/myimage/tmp-glibc/work/mymachine-oe-linux/perf/1.0-r9/perf-1.0/perf-annotate.1] Error 3
| make[2]: *** Waiting for unfinished jobs....
| make[1]: *** [try-install-man] Error 2
| make: *** [install] Error 2
| make: Leaving directory `/work/ram/myimage/tmp-glibc/work-shared/mymachine/kernel-source/tools/perf'
| ERROR: Function failed: do_install (log file is located at /work/ram/myimage/tmp-glibc/work/mymachine-oe-linux/perf/1.0-r9/temp/log.do_install.6782)
ERROR: Task (/work/openembedded/meta/recipes-kernel/perf/perf.bb:do_install) failed with exit code '1'

It seems that there is a missing dependency, but I am not sure if this is a bug. I resolved this for myself with this patch

diff --git a/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb b/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb
index 886e7b4..a2cee10 100644
--- a/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb
+++ b/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb
@@ -19,6 +19,7 @@ RDEPENDS_${PN} = "docbook-xml-dtd4 \
                   docbook-xsl-stylesheets \
                   util-linux \
                   libxml2 \
+                  libxslt \
                   bash \
 "
 RDEPENDS_${PN}_append_class-target = " \

I do not know if it is a correct solution and I will be grateful if someone points to right solution


I use master branch from git://git.openembedded.org/openembedded-core
Comment 1 Maksim E. Kozlov 2016-10-05 12:18:58 UTC
Sorry, I forgot to say that this trouble appears during image build which is a  custom image and recipe contains the following:

IMAGE_INSTALL = " \
    base-files \
    base-passwd \
    busybox \
    busybox-mdev \
    netbase \
    netperf \
    openssh \
    initscripts \
    perf \
"
IMAGE_FSTYPES += "${INITRAMFS_FSTYPES}"

IMAGE_FEATURES = ""
IMAGE_LINGUAS = ""
USE_DEVFS = "0"
IMAGE_DEVICE_TABLES = "files/device_table-boot.txt"

inherit core-image

IMAGE_ROOTFS_SIZE = "8192"

BAD_RECOMMENDATIONS += "busybox-syslog"
Comment 2 Richard Purdie 2016-10-06 14:58:02 UTC
At the very least the dependency is wrong since its a build failure and should depend on xslt-native for tools which are run. The target dependency doesn't make sense for a build time issue.
Comment 3 Saul Wold 2016-10-06 18:37:16 UTC
I think the correct patch is for a build DEPENDS, since xsltproc is needed for xmlto, my host happen to provide it, when removed it from my host I got the dependency failure.

DEPENDS_class-native += "libxslt"