<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8824</bug_id>
          
          <creation_ts>2015-12-17 03:19:14 +0000</creation_ts>
          <short_desc>bitbake -b fails during task execution</short_desc>
          <delta_ts>2016-01-07 08:21:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>2.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>57315</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-12-17 03:19:14 +0000</bug_when>
    <thetext>If you use bitbake&apos;s -b option, it fails somewhere in executing the tasks:

----------- snip -----------
$ 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        = &quot;1.28.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-14.04&quot;
TARGET_SYS        = &quot;x86_64-poky-linux&quot;
MACHINE           = &quot;qemux86-64&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.0+snapshot-20151217&quot;
TUNE_FEATURES     = &quot;m64 core2&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    
workspace         = &quot;master:f1f3716776078d68bd9e3734bca881a486dc2ea3&quot;

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
No currently running tasks (2 of 13)
can only concatenate tuple (not &quot;int&quot;) to tuple
Summary: There was 1 WARNING message shown.
----------- snip -----------

I say &quot;somewhere&quot; because the other odd thing about this is there&apos;s no traceback shown and the exception doesn&apos;t actually cause the build to fail, even though it clearly caused the build to stop unexpectedly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57421</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2015-12-22 09:09:17 +0000</bug_when>
    <thetext>Fix the the bug: 
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=01d67bfa77e68a5af97dc7dc2507c341cf4f83e4
Fix to ensure we get a decent traceback:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=522dcaa0cb6e099665a29ea1c585270563d33e94</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57587</commentid>
    <comment_count>2</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-01-06 14:51:13 +0000</bug_when>
    <thetext>Trying to verify this bug I notice, build fails because of &apos;m4&apos; 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        = &quot;1.28.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-14.04&quot;
TARGET_SYS        = &quot;arm-poky-linux-gnueabi&quot;
MACHINE           = &quot;beaglebone&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.0+snapshot-20160106&quot;
TUNE_FEATURES     = &quot;arm armv7a vfp neon callconvention-hard cortexa8&quot;
TARGET_FPU        = &quot;vfp-neon&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;master:2cd061a29a94fdcdfec86732e6bcbb71c12c4afc&quot;

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_configure (log file is located at /home/yocto/yocto/BBB/8490/build/tmp/work/cortexa8hf-vfp-neon-poky-linux-gnueabi/dpkg/1.18.2-r0/temp/log.do_configure.24649)
ERROR: Logfile of failure stored in: /home/yocto/yocto/BBB/8490/build/tmp/work/cortexa8hf-vfp-neon-poky-linux-gnueabi/dpkg/1.18.2-r0/temp/log.do_configure.24649
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: SITE files [&apos;endian-little&apos;, &apos;bit-32&apos;, &apos;arm-common&apos;, &apos;arm-32&apos;, &apos;common-linux&apos;, &apos;common-glibc&apos;, &apos;arm-linux&apos;, &apos;arm-linux-gnueabi&apos;, &apos;common&apos;]
| DEBUG: Executing shell function autotools_preconfigure
| Previously configured separate build directory detected, cleaning /home/yocto/yocto/BBB/8490/build/tmp/work/cortexa8hf-vfp-neon-poky-linux-gnueabi/dpkg/1.18.2-r0/build
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_copy_aclocals
| DEBUG: SITE files [&apos;endian-little&apos;, &apos;bit-32&apos;, &apos;arm-common&apos;, &apos;arm-32&apos;, &apos;common-linux&apos;, &apos;common-glibc&apos;, &apos;arm-linux&apos;, &apos;arm-linux-gnueabi&apos;, &apos;common&apos;]
| DEBUG: Python function autotools_copy_aclocals finished
| DEBUG: Executing shell function do_configure
| sed: can&apos;t read /home/yocto/yocto/BBB/8490/build/tmp/work/cortexa8hf-vfp-neon-poky-linux-gnueabi/dpkg/1.18.2-r0/dpkg-1.18.2/configure: No such file or directory
| WARNING: /home/yocto/yocto/BBB/8490/build/tmp/work/cortexa8hf-vfp-neon-poky-linux-gnueabi/dpkg/1.18.2-r0/temp/run.do_configure.24649:1 exit 2 from
|   sed -i -e &apos;s#PERL_LIBDIR=.*$#PERL_LIBDIR=&quot;/usr/lib/perl&quot;#&apos; /home/yocto/yocto/BBB/8490/build/tmp/work/cortexa8hf-vfp-neon-poky-linux-gnueabi/dpkg/1.18.2-r0/dpkg-1.18.2/configure
| ERROR: Function failed: do_configure (log file is located at /home/yocto/yocto/BBB/8490/build/tmp/work/cortexa8hf-vfp-neon-poky-linux-gnueabi/dpkg/1.18.2-r0/temp/log.do_configure.24649)
ERROR: Task 5 (/home/yocto/yocto/BBB/poky/meta/recipes-devtools/dpkg/dpkg_1.18.2.bb, do_configure) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 6 tasks of which 5 didn&apos;t need to be rerun and 1 failed.
No currently running tasks (4 of 14)

Summary: 1 task failed:
  /home/yocto/yocto/BBB/poky/meta/recipes-devtools/dpkg/dpkg_1.18.2.bb, do_configure
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

==============================================================================

 bitbake -b m4
WARNING: Buildfile specified, dependencies will not be handled. If this is not what you want, do not use -b / --buildfile.
ERROR: Unable to match &apos;m4&apos; to a specific recipe file - 4 matches found:
    /home/yocto/yocto/BBB/poky/meta/recipes-devtools/m4/m4_1.4.9.bb
    /home/yocto/yocto/BBB/poky/meta/recipes-devtools/m4/m4-native_1.4.17.bb
    /home/yocto/yocto/BBB/poky/meta/recipes-devtools/m4/m4_1.4.17.bb
    /home/yocto/yocto/BBB/poky/meta/recipes-kernel/libpfm/libpfm4_4.6.0.bb

Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Without &apos;-b&apos; builds work ok:

bitbake m4
Loading cache: 100% |############################################################################################################################################################| ETA:  00:00:00
Loaded 1315 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.28.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-14.04&quot;
TARGET_SYS        = &quot;arm-poky-linux-gnueabi&quot;
MACHINE           = &quot;beaglebone&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.0+snapshot-20160106&quot;
TUNE_FEATURES     = &quot;arm armv7a vfp neon callconvention-hard cortexa8&quot;
TARGET_FPU        = &quot;vfp-neon&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;master:2cd061a29a94fdcdfec86732e6bcbb71c12c4afc&quot;

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 377 tasks of which 377 didn&apos;t need to be rerun and all succeeded.

bitbake dpkg
Loading cache: 100% |############################################################################################################################################################| ETA:  00:00:00
Loaded 1315 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.28.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-14.04&quot;
TARGET_SYS        = &quot;arm-poky-linux-gnueabi&quot;
MACHINE           = &quot;beaglebone&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.0+snapshot-20160106&quot;
TUNE_FEATURES     = &quot;arm armv7a vfp neon callconvention-hard cortexa8&quot;
TARGET_FPU        = &quot;vfp-neon&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;master:2cd061a29a94fdcdfec86732e6bcbb71c12c4afc&quot;

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 732 tasks of which 728 didn&apos;t need to be rerun and all succeeded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57599</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-01-06 19:46:21 +0000</bug_when>
    <thetext>That isn&apos;t the same bug - try it with a different (non-autotools) recipe and it&apos;ll work. I have now filed bug 8890 for that and am marking this one as resolved again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57610</commentid>
    <comment_count>4</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-01-07 08:21:58 +0000</bug_when>
    <thetext>Thank you, Paul!
Marked as verified.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>