[OE-core] perf triggering a QA error

Otavio Salvador otavio.salvador at ossystems.com.br
Tue Sep 15 19:00:31 UTC 2015


Hello folks,

It seems the commit:

commit 43f965061f8af4c4537e9d9c0257253e613a616d
Author: Roy Li <rongqing.li at windriver.com>
Date:   Wed Aug 26 13:58:17 2015 +0800

    perf: fix the install-python_ext

    1. $(grep xxx xxx) never returns 0, it maybe return empty or string, and
    can not compare with 0, this fixes that python module never are installed.

    2. python library is installed into /usr/lib/ by default, but we expect
    it is installed into ${libdir}, so add --install-lib parameter for python
    setup.py to set the library dir;
    this fixes not shipped warning, since python modules are installed into
    /usr/lib/, but FILE_${PN}-python expects it is under ${libdir}, which is
    /usr/lib64/ for 64bit machine

    3. the makefile target install-python_ext is moved from Makefile to
    Makefile.perf from linux v3.13, so match install-python_ext in Makefile.*
    and --root='/\$(DESTDIR_SQ)' before linux v3.13 will install the target
    python library to native sysroot, so replace it with --prefix as after linux
    3.13;
    this fixes not shipped warning, and install target files to native dir, like
    below:
    ERROR: QA Issue: perf: Files/directories were installed but not
shipped in any package:
      /home
      /home/pokybuild
      /home/pokybuild/yocto-autobuilder
      /home/pokybuild/yocto-autobuilder/yocto-worker
      /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb
      /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build
      /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build
      /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp
      /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots
      /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux
      /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr
      /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib
      /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7
      /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages
      /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/perf.so
      /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/perf-0.1-py2.7.egg-info

    Signed-off-by: Roy Li <rongqing.li at windriver.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>


did not address the issue.

I am capable of reproduce the issue in kernel 3.14. See the log below:

NOTE: make -j 2 -C $S/tools/perf O=$B
CROSS_COMPILE=arm-oel-linux-gnueabi- ARCH=arm
CC=arm-oel-linux-gnueabi-gcc  -march=armv7-a -marm  -mthumb-interwork
-mfloat-abi=hard -mfpu=neon -mtune=cortex-a9
--sysroot=$TMPDIR/sysroots/imx6sxsabresd AR=arm-oel-linux-gnueabi-ar
EXTRA_CFLAGS=-ldw perfexecdir=/usr/lib/perf NO_GTK2=1 NO_DWARF=1
NO_LIBUNWIND=1 NO_LIBDW_DWARF_UNWIND=1 NO_LIBNUMA=1 prefix=/usr
bindir=/usr/bin sharedir=/usr/share sysconfdir=/etc
perfexecdir=/usr/lib/perf/perf-core ETC_PERFCONFIG=../etc
sharedir=share mandir=share/man infodir=share/info
DESTDIR=$WORKDIR/image install-python_ext
make: Entering directory '$S/tools/perf'
  BUILD:   Doing 'make -j8' parallel build
Auto-detecting system features:
...                     backtrace: [ on  ]
...                         dwarf: [ on  ]
...                fortify-source: [ on  ]
...                         glibc: [ on  ]
...                          gtk2: [ OFF ]
...                  gtk2-infobar: [ OFF ]
...                      libaudit: [ OFF ]
...                        libbfd: [ on  ]
...                        libelf: [ on  ]
...             libelf-getphdrnum: [ on  ]
...                   libelf-mmap: [ on  ]
...                       libnuma: [ OFF ]
...                       libperl: [ on  ]
...                     libpython: [ on  ]
...             libpython-version: [ on  ]
...                      libslang: [ on  ]
...                     libunwind: [ OFF ]
...                       on-exit: [ on  ]
...            stackprotector-all: [ on  ]
...                       timerfd: [ on  ]
config/Makefile:350: No libaudit.h found, disables 'trace' tool,
please install audit-libs-devel or libaudit-dev
'$TMPDIR/sysroots/x86_64-linux/usr/bin/python-native/python'
util/setup.py --quiet install --root='/$WORKDIR/image'
make: Leaving directory '$S/tools/perf'
DEBUG: Shell function do_install finished

and the error:

ERROR: QA Issue: perf: Files/directories were installed but not
shipped in any package:
  /home
  /home/otavio
  /home/otavio/src
  /home/otavio/src/yocto
  /home/otavio/src/yocto/build
  /home/otavio/src/yocto/build/tmp
  /home/otavio/src/yocto/build/tmp/sysroots
  /home/otavio/src/yocto/build/tmp/sysroots/x86_64-linux
  /home/otavio/src/yocto/build/tmp/sysroots/x86_64-linux/usr
  /home/otavio/src/yocto/build/tmp/sysroots/x86_64-linux/usr/lib
  /home/otavio/src/yocto/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7
  /home/otavio/src/yocto/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages
  /home/otavio/src/yocto/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/perf-0.1-py2.7.egg-info
  /home/otavio/src/yocto/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/perf.so
Please set FILES such that these items are packaged. Alternatively if
they are unneeded, avoid installing them or delete them within
do_install. [installed-vs-shipped]

Any thoughts?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list