<?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>861</bug_id>
          
          <creation_ts>2011-03-13 22:53:53 +0000</creation_ts>
          <short_desc>aclocal loses track of .m4 causing task do_configure to fail (gmp as illustrated here)</short_desc>
          <delta_ts>2011-08-04 03:30:20 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.0</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.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dexuan Cui">dexuan.cui</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>liangliang.wang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12549</commentid>
    <comment_count>0</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-03-13 22:53:53 +0000</bug_when>
    <thetext>Looks we need to add a dependency on flac.

http://autobuilder.yoctoproject.org:8010/builders/nightly-external/builds/73/steps/shell_5/logs/stdio


ERROR: Function &apos;do_configure&apos; failed (see /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/i586-poky-linux/gmp-5.0.1-r0/temp/log.do_configure.31251 for further information)
ERROR: Logfile of failure stored in: /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/i586-poky-linux/gmp-5.0.1-r0/temp/log.do_configure.31251
Log data follows:
| ERROR: Function &apos;do_configure&apos; failed (see /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/i586-poky-linux/gmp-5.0.1-r0/temp/log.do_configure.31251 for further information)
| automake (GNU automake) 1.11.1
| Copyright (C) 2009 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.11
| NOTE: Executing autoreconf --verbose --install --force --exclude=autopoint -I/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.11 -I /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemux86/usr/share/aclocal
| autoreconf: Entering directory `.&apos;
| autoreconf: configure.in: not using Gettext
| autoreconf: running: aclocal -I /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.11 -I /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemux86/usr/share/aclocal -I /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.11 -I /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemux86/usr/share/aclocal --force
| aclocal: aclocal: file `/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemux86/usr/share/aclocal/libFLAC.m4&apos; does not exist
| autoreconf: aclocal failed with exit status: 1
| FATAL: autoreconf execution failed.
NOTE: package gmp-5.0.1-r0: task do_configure: Failed
NOTE: package flac-1.2.1-r0: task do_configure: Started</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12554</commentid>
    <comment_count>1</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-03-14 00:28:52 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; Looks we need to add a dependency on flac.
&gt; ...
&gt; | aclocal: aclocal: file
&gt; `/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemux86/usr/share/aclocal/libFLAC.m4&apos;
&gt; does not exist
&gt; | autoreconf: aclocal failed with exit status: 1
&gt; | FATAL: autoreconf execution failed.
&gt; NOTE: package gmp-5.0.1-r0: task do_configure: Failed
&gt; NOTE: package flac-1.2.1-r0: task do_configure: Started

BTW: I can&apos;t reproduce the issue locally.
gmp is an arithmetic library, I don&apos;t think it could depend on flac, an audio codec. I&apos;m not sure what happened here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12565</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-03-14 15:15:11 +0000</bug_when>
    <thetext>This probably happens if something removes a .m4 file such as the one for flac whilst a do_configure is running, iterating over the files. We do probably need to find a way to avoid this but equally, this bug will only affect incremental builds and they will succeed afterwards.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13655</commentid>
    <comment_count>3</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-05-10 00:00:15 +0000</bug_when>
    <thetext>With 20100506-4 build on autobuilder
git info: 856a5e496b7ddd814f6a94552d02074f0ab30842
This issue caused x86_64-arm toolchain build failure. The package gmp-nativesdk was build failed.

ERROR: Logfile of failure stored in: /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/gmp-nativesdk-5.0.1-r0/temp/log.do_configure.3621
Log data follows:
| automake (GNU automake) 1.11.1
| Copyright (C) 2009 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.11
| NOTE: Executing autoreconf --verbose --install --force --exclude=autopoint -I/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.11 -I /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/opt/poky/1.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/share/aclocal
| autoreconf: Entering directory `.&apos;
| autoreconf: configure.in: not using Gettext
| autoreconf: running: aclocal -I /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.11 -I /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/opt/poky/1.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/share/aclocal -I /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.11 -I /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/opt/poky/1.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/share/aclocal --force
| autoreconf: configure.in: tracing
| autoreconf: running: libtoolize --copy --force
| libtoolize: putting auxiliary files in `.&apos;.
| libtoolize: copying file `./ltmain.sh&apos;
| libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])&apos; to configure.in and
| libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
| libtoolize: Consider adding `-I m4&apos; to ACLOCAL_AMFLAGS in Makefile.am.
| libtoolize: `AC_PROG_RANLIB&apos; is rendered obsolete by `LT_INIT&apos;
| autom4te: /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/opt/poky/1.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/share/aclocal/argz.m4: no such file or directory
| aclocal: /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-linux/usr/bin/autom4te failed with exit status: 1
| autoreconf: aclocal failed with exit status: 1
| ERROR: autoreconf execution failed.
| ERROR: Function &apos;do_configure&apos; failed (see /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/gmp-nativesdk-5.0.1-r0/temp/log.do_configure.3621 for further information)
| ERROR: Function &apos;do_configure&apos; failed (see /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/gmp-nativesdk-5.0.1-r0/temp/log.do_configure.3621 for further information)
NOTE: package gmp-nativesdk-5.0.1-r0: task do_configure: Failed

For more details, please see:
http://autobuilder.pokylinux.org:8010/builders/nightly-external/builds/117/steps/shell_47/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13657</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-05-10 07:16:08 +0000</bug_when>
    <thetext>Two solution ideas for this:

a) We add locking around the m4 files so when autoreconf is running, nothing can touch the sysroots. It will badly impact performance

b) We make a copy of the m4 files to a temporary directory (hardlink?) and then work against the copy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14469</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-06-29 03:10:25 +0000</bug_when>
    <thetext>*** Bug 1200 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15203</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-08-04 03:30:20 +0000</bug_when>
    <thetext>Fixed in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=23774530c1c2df8c306807d20baaea693250ef16</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>