| Summary: | bitbake -b dpkg fails | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Paul Eggleton <bluelightning> |
| Component: | core | Assignee: | Richard Purdie <richard.purdie> |
| Status: | VERIFIED FIXED | QA Contact: | Bogdan Alexandru Voiculescu <bogdanx.a.voiculescu> |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | bogdanx.a.voiculescu, meta.mr.watcher, meta.watcher |
| Version: | 2.0 | ||
| Target Milestone: | 2.1 M3 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
Verified error is fixed. Still some QA issues are displayed: yocto@yocto-PowerEdge-R720:~/yocto/poky-test/8890/build$ bitbake -b dpkg WARNING: Buildfile specified, dependencies will not be handled. If this is not what you want, do not use -b / --buildfile. Build Configuration: BB_VERSION = "1.29.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-14.04" TARGET_SYS = "i586-poky-linux" MACHINE = "qemux86" DISTRO = "poky" DISTRO_VERSION = "2.0+snapshot-20160215" TUNE_FEATURES = "m32 i586" TARGET_FPU = "" meta meta-yocto meta-yocto-bsp = "master:36b43b233c841b3c09fc17e04686b4b758780963" NOTE: Preparing RunQueue NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks WARNING: autotools: Unable to find task dependencies, -b being used? Pulling in all m4 files WARNING: QA Issue: update-alternatives-dpkg rdepends on glibc, but it isn't a build dependency? [build-deps] WARNING: QA Issue: dpkg rdepends on libbz2, but it isn't a build dependency? [build-deps] WARNING: QA Issue: dpkg rdepends on run-postinsts, but it isn't a build dependency? [build-deps] WARNING: QA Issue: dpkg rdepends on glibc, but it isn't a build dependency? [build-deps] WARNING: QA Issue: dpkg rdepends on zlib, but it isn't a build dependency? [build-deps] WARNING: QA Issue: dpkg rdepends on perl, but it isn't a build dependency? [build-deps] WARNING: QA Issue: dpkg rdepends on xz, but it isn't a build dependency? [build-deps] WARNING: QA Issue: dpkg rdepends on update-alternatives-opkg, but it isn't a build dependency? [build-deps] NOTE: Tasks Summary: Attempted 13 tasks of which 0 didn't need to be rerun and all succeeded. |
bitbake -b doesn't take care of dependencies, but if we ensure dpkg's dependencies are built first it should work: 1) Run bitbake dpkg 2) Run bitbake -c cleansstate dpkg 3) Run bitbake -b dpkg Unfortunately it doesn't: -------------- snip -------------- ERROR: Function failed: do_configure (log file is located at /home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/dpkg/1.18.2-r0/temp/log.do_configure.26715) ERROR: Logfile of failure stored in: /home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/dpkg/1.18.2-r0/temp/log.do_configure.26715 Log data follows: | DEBUG: Executing python function sysroot_cleansstate | DEBUG: Python function sysroot_cleansstate finished | DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common'] | DEBUG: Executing shell function autotools_preconfigure | DEBUG: Shell function autotools_preconfigure finished | DEBUG: Executing python function autotools_copy_aclocals | DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common'] | DEBUG: Python function autotools_copy_aclocals finished | DEBUG: Executing shell function do_configure | Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /home/paul/poky/poky/build/tmp/sysroots/x86_64-linux/usr/bin/automake line 3936. | Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /home/paul/poky/poky/build/tmp/sysroots/x86_64-linux/usr/bin/automake line 3936. | automake (GNU automake) 1.15 | Copyright (C) 2014 Free Software Foundation, Inc. | License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html> | This is free software: you are free to change and redistribute it. | There is NO WARRANTY, to the extent permitted by law. | | Written by Tom Tromey <tromey@redhat.com> | and Alexandre Duret-Lutz <adl@gnu.org>. | AUTOV is 1 | NOTE: Executing ACLOCAL="aclocal --system-acdir=/home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/dpkg/1.18.2-r0/build/aclocal-copy/" autoreconf --verbose --install --force --exclude=autopoint -I /home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/dpkg/1.18.2-r0/dpkg-1.18.2/m4/ | autoreconf: Entering directory `.' | autoreconf: running: aclocal --system-acdir=/home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/dpkg/1.18.2-r0/build/aclocal-copy/ -I /home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/dpkg/1.18.2-r0/dpkg-1.18.2/m4/ -I /home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/dpkg/1.18.2-r0/dpkg-1.18.2/m4/ --force -I m4 | configure.ac:17: warning: macro 'AM_GNU_GETTEXT_VERSION' not found in library | configure.ac:18: warning: macro 'AM_GNU_GETTEXT' not found in library | configure.ac:69: error: missing pkg-config macros | /home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/dpkg/1.18.2-r0/dpkg-1.18.2/m4/dpkg-libs.m4:76: DPKG_LIB_SELINUX is expanded from... | configure.ac:69: the top level | autom4te: m4 failed with exit status: 1 | aclocal: error: echo failed with exit status: 1 | autoreconf: aclocal failed with exit status: 1 | ERROR: autoreconf execution failed. -------------- snip -------------- Does this have something to do with aclocal being keyed off task dependencies?