<?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>7101</bug_id>
          
          <creation_ts>2014-12-23 10:48:58 +0000</creation_ts>
          <short_desc>Race condition populating site files - tasks getting re-executed after sysroot setscene</short_desc>
          <delta_ts>2015-02-13 14:55:07 +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>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</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>1.8</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>47659</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-12-23 10:48:58 +0000</bug_when>
    <thetext>A string of do_configure failures occurred during the nightly-qa-extras build on the autobuilder:

----------------------- snip ------------------------
ERROR: Function failed: do_configure (log file is located at /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/core2-64-poky-linux/base-passwd/3.5.29-r0/temp/log.do_configure.26397)
ERROR: Function failed: do_configure (log file is located at /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/core2-64-poky-linux/util-macros/1_1.19.0-r0/temp/log.do_configure.26372)
ERROR: Function failed: do_configure (log file is located at /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/core2-64-poky-linux/xcb-proto/1.11-r0/temp/log.do_configure.26406)
NOTE: recipe zlib-1.2.8-r0: task do_install_ptest_base: Started
ERROR: Logfile of failure stored in: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/core2-64-poky-linux/util-macros/1_1.19.0-r0/temp/log.do_configure.26372
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Removing manifest: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/sysroots/qemux86-64/sysroot-providers/util-macros
| DEBUG: Removing manifest: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/sysroots/qemux86-64/usr/share/aclocal/xorg-macros.m4
| DEBUG: Removing manifest: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/sysroots/qemux86-64/usr/share/util-macros/INSTALL
| DEBUG: Removing manifest: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/sysroots/qemux86-64/usr/share/pkgconfig/xorg-macros.pc
| DEBUG: Removing manifest: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/sysroots/qemux86-64/usr/share/util-macros/
| DEBUG: Removing manifest: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/sysroots/qemux86-64/usr/share/pkgconfig/
| DEBUG: Removing manifest: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/sysroots/qemux86-64/usr/share/aclocal/
| DEBUG: Removing manifest: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/sysroots/qemux86-64/sysroot-providers/
| DEBUG: Removing manifest: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/sysroots/qemux86-64/usr/share/
| DEBUG: Removing manifest: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/sysroots/qemux86-64/usr/
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: SITE files [&apos;endian-little&apos;, &apos;common-linux&apos;, &apos;common-glibc&apos;, &apos;bit-64&apos;, &apos;x86_64-linux&apos;, &apos;common&apos;]
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_copy_aclocals
| DEBUG: Python function autotools_copy_aclocals finished
| DEBUG: Executing shell function do_configure
| automake (GNU automake) 1.14.1
| Copyright (C) 2013 Free Software Foundation, Inc.
| License GPLv2+: GNU GPL version 2 or later &lt;http://gnu.org/licenses/gpl-2.0.html&gt;
| 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 &lt;tromey@redhat.com&gt;
|        and Alexandre Duret-Lutz &lt;adl@gnu.org&gt;.
| AUTOV is 1.14
| NOTE: Executing ACLOCAL=&quot;aclocal --system-acdir=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/core2-64-poky-linux/util-macros/1_1.19.0-r0/build/aclocal-copy/ --automake-acdir=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.14&quot; autoreconf --verbose --install --force --exclude=autopoint -I /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/core2-64-poky-linux/util-macros/1_1.19.0-r0/util-macros-1.19.0/
| autoreconf: Entering directory `.&apos;
| autoreconf: configure.ac: not using Gettext
| autoreconf: running: aclocal --system-acdir=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/core2-64-poky-linux/util-macros/1_1.19.0-r0/build/aclocal-copy/ --automake-acdir=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.14 -I /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/core2-64-poky-linux/util-macros/1_1.19.0-r0/util-macros-1.19.0/ -I /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/core2-64-poky-linux/util-macros/1_1.19.0-r0/util-macros-1.19.0/ --force
| autoreconf: configure.ac: tracing
| autoreconf: configure.ac: not using Libtool
| autoreconf: running: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/sysroots/x86_64-linux/usr/bin/autoconf --include=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/core2-64-poky-linux/util-macros/1_1.19.0-r0/util-macros-1.19.0/ --force
| autoreconf: configure.ac: not using Autoheader
| autoreconf: running: automake --add-missing --copy --force-missing
| autoreconf: running: gnu-configize
| autoreconf: Leaving directory `.&apos;
| NOTE: Running /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/core2-64-poky-linux/util-macros/1_1.19.0-r0/util-macros-1.19.0/configure  --build=x86_64-linux 		  --host=x86_64-poky-linux 		  --target=x86_64-poky-linux 		  --prefix=/usr 		  --exec_prefix=/usr 		  --bindir=/usr/bin 		  --sbindir=/usr/sbin 		  --libexecdir=/usr/lib/util-macros 		  --datadir=/usr/share 		  --sysconfdir=/etc 		  --sharedstatedir=/com 		  --localstatedir=/var 		  --libdir=/usr/lib 		  --includedir=/usr/include 		  --oldincludedir=/usr/include 		  --infodir=/usr/share/info 		  --mandir=/usr/share/man 		  --disable-silent-rules 		  --disable-dependency-tracking 		  --with-libtool-sysroot=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/sysroots/qemux86-64
| configure: WARNING: unrecognized options: --disable-dependency-tracking, --with-libtool-sysroot
| configure: loading site script /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/meta/site/endian-little
| configure: loading site script /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/meta/site/common-linux
| configure: loading site script /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/meta/site/common-glibc
| configure: loading site script /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/meta/site/x86_64-linux
| configure: loading site script /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/meta/site/common
| configure: loading site script /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/sysroots/qemux86-64/usr/share/x86_64-poky-linux_config_site.d/glibc_config
| configure: loading site script /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/sysroots/qemux86-64/usr/share/x86_64-poky-linux_config_site.d/ncurses_config
| /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/core2-64-poky-linux/util-macros/1_1.19.0-r0/util-macros-1.19.0/configure: line 1610: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/sysroots/qemux86-64/usr/share/x86_64-poky-linux_config_site.d/ncurses_config: No such file or directory
| Configure failed. The contents of all config.log files follows to aid debugging
| ERROR: oe_runconf failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/core2-64-poky-linux/util-macros/1_1.19.0-r0/temp/log.do_configure.26372)
NOTE: recipe util-macros-1_1.19.0-r0: task do_configure: Failed
----------------------- snip ------------------------

This is likely to be some kind of race condition populating the site files. All of the failures were about missing tmp/sysroots/qemux86-64/usr/share/x86_64-poky-linux_config_site.d/ncurses_config.

Full log:

https://autobuilder.yoctoproject.org/main/builders/nightly-qa-extras/builds/136/steps/BuildImages/logs/stdio

(This was for master-next, but the same issue will be present on master.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47660</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-12-23 10:51:03 +0000</bug_when>
    <thetext>I noticed something else which may or may not be related - in the log you can see ncurses do_populate_sysroot_setscene ran and then it went ahead and ran the real task later on, which in theory shouldn&apos;t happen. (I&apos;ve seen this kind of thing before, but I thought the underlying issue might have been fixed already.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47678</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-12-24 18:39:40 +0000</bug_when>
    <thetext>There are a number of tasks that seem to get rebuilt even though they have been installed via do_populate_sysroot_setscene, possibly an issue with stamps?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48816</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2015-02-13 14:55:07 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=cefc40389e3185c3728c8154dae602a4a11e2f55</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>