<?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>4358</bug_id>
          
          <creation_ts>2013-04-19 21:24:50 +0000</creation_ts>
          <short_desc>Race condition for autoconf files in alsa-tools</short_desc>
          <delta_ts>2013-06-05 14:37:24 +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>multimedia</component>
          <version>1.5</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.4.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Saul Wold">sgw</reporter>
          <assigned_to name="Cristian Iorga">cristian.iorga</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>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>32409</commentid>
    <comment_count>0</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-04-19 21:24:50 +0000</bug_when>
    <thetext>While building world for dylan with multilib enabled.

| make[1]: Entering directory `/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-world/build/build/tmp/work/x86-pokymllib32-linux/lib32-alsa-tools/1.0.26.1-r1/alsa-tools-1.0.26.1/mixartloader&apos;
| make[1]: warning: jobserver unavailable: using -j1.  Add `+&apos; to parent make rule.
| make[1]: Nothing to be done for `all&apos;.
| make[1]: Leaving directory `/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-world/build/build/tmp/work/x86-pokymllib32-linux/lib32-alsa-tools/1.0.26.1-r1/alsa-tools-1.0.26.1/mixartloader&apos;
| ./pcxhrloader
| aclocal: warning: autoconf input should be named &apos;configure.ac&apos;, not &apos;configure.in&apos;
| aclocal: error: aclocal: file &apos;/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-world/build/build/tmp/sysroots/lib32-qemux86/usr/share/aclocal/guile.m4&apos; does not exist
| make: *** [all] Error 1
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (see /srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-world/build/build/tmp/work/x86-pokymllib32-linux/lib32-alsa-tools/1.0.26.1-r1/temp/log.do_compile.31124 for further information)
NOTE: recipe lib32-alsa-tools-1.0.26.1-r1: task do_compile: Failed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33138</commentid>
    <comment_count>1</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-05-17 14:55:54 +0000</bug_when>
    <thetext>WIP. For now, while trying to reproduce this issue, I hit another one:

| make[4]: Entering directory `/mnt/Yo/yoctoproject/build/tmp/work/x86_64-poky-linux/gnutls/2.12.23-r8.4/gnutls-2.12.23/lib/gcrypt&apos;
| make[4]: Nothing to be done for `all&apos;.
| make[4]: Leaving directory `/mnt/Yo/yoctoproject/build/tmp/work/x86_64-poky-linux/gnutls/2.12.23-r8.4/gnutls-2.12.23/lib/gcrypt&apos;
| make[4]: Entering directory `/mnt/Yo/yoctoproject/build/tmp/work/x86_64-poky-linux/gnutls/2.12.23-r8.4/gnutls-2.12.23/lib&apos;
| ./x86_64-poky-linux-libtool  --tag=CC   --mode=link x86_64-poky-linux-gcc  -m64 --sysroot=/mnt/Yo/yoctoproject/build/tmp/sysroots/qemux86-64    -O2 -pipe -g -feliminate-unused-debug-types -no-undefined -version-info 48:6:22 -Wl,--version-script=./libgnutls.map    -L/mnt/Yo/yoctoproject/build/tmp/sysroots/qemux86-64/usr/lib64 -lgcrypt -L/mnt/Yo/yoctoproject/build/tmp/sysroots/qemux86-64/usr/lib64 -lgpg-error -lcap  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o libgnutls.la -rpath /usr/lib64  gnutls_record.lo gnutls_compress.lo debug.lo gnutls_cipher.lo gnutls_mbuffers.lo gnutls_buffers.lo gnutls_handshake.lo gnutls_num.lo gnutls_errors.lo gnutls_algorithms.lo gnutls_dh.lo gnutls_kx.lo gnutls_priority.lo gnutls_hash_int.lo gnutls_cipher_int.lo gnutls_session.lo gnutls_db.lo x509_b64.lo auth_anon.lo gnutls_extensions.lo gnutls_auth.lo gnutls_v2_compat.lo gnutls_datum.lo auth_rsa.lo gnutls_session_pack.lo gnutls_mpi.lo gnutls_pk.lo gnutls_cert.lo gnutls_global.lo gnutls_constate.lo gnutls_anon_cred.lo pkix_asn1_tab.lo gnutls_asn1_tab.lo gnutls_mem.lo auth_cert.lo gnutls_ui.lo gnutls_sig.lo auth_dhe.lo gnutls_dh_primes.lo ext_max_record.lo gnutls_alert.lo gnutls_str.lo gnutls_state.lo gnutls_x509.lo ext_cert_type.lo gnutls_rsa_export.lo auth_rsa_export.lo ext_server_name.lo auth_dh_common.lo gnutls_helper.lo gnutls_supplemental.lo crypto.lo random.lo ext_signature.lo cryptodev.lo system.lo crypto-api.lo ext_safe_renegotiation.lo gnutls_privkey.lo gnutls_pubkey.lo locks.lo  ext_srp.lo gnutls_srp.lo auth_srp.lo auth_srp_passwd.lo auth_srp_sb64.lo auth_srp_rsa.lo auth_psk.lo auth_psk_passwd.lo gnutls_psk.lo auth_dhe_psk.lo gnutls_psk_netconf.lo ext_session_ticket.lo gl/liblgnu.la x509/libgnutls_x509.la -L/mnt/Yo/yoctoproject/build/tmp/sysroots/qemux86-64/usr/lib64 -lz    -L/mnt/Yo/yoctoproject/build/tmp/sysroots/qemux86-64/usr/lib64 -lpthread openpgp/libgnutls_openpgp.la opencdk/libminiopencdk.la  -L/mnt/Yo/yoctoproject/build/tmp/sysroots/qemux86-64/usr/lib64 -ltasn1   gcrypt/libcrypto.la
| x86_64-poky-linux-libtool: link: warning: library `/mnt/Yo/yoctoproject/build/tmp/sysroots/qemux86-64/usr/lib64/libgcrypt.la&apos; was moved.
| /bin/grep: /mnt/Yo/yoctoproject/build/tmp/sysroots/qemux86-64/usr/lib/libgpg-error.la: No such file or directory
| /bin/sed: can&apos;t read /mnt/Yo/yoctoproject/build/tmp/sysroots/qemux86-64/usr/lib/libgpg-error.la: No such file or directory
| x86_64-poky-linux-libtool: link: `/mnt/Yo/yoctoproject/build/tmp/sysroots/qemux86-64/usr/lib/libgpg-error.la&apos; is not a valid libtool archive
| make[4]: *** [libgnutls.la] Error 1
| make[4]: Leaving directory `/mnt/Yo/yoctoproject/build/tmp/work/x86_64-poky-linux/gnutls/2.12.23-r8.4/gnutls-2.12.23/lib&apos;
| make[3]: *** [all-recursive] Error 1
| make[3]: Leaving directory `/mnt/Yo/yoctoproject/build/tmp/work/x86_64-poky-linux/gnutls/2.12.23-r8.4/gnutls-2.12.23/lib&apos;
| make[2]: *** [all] Error 2
| make[2]: Leaving directory `/mnt/Yo/yoctoproject/build/tmp/work/x86_64-poky-linux/gnutls/2.12.23-r8.4/gnutls-2.12.23/lib&apos;
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/mnt/Yo/yoctoproject/build/tmp/work/x86_64-poky-linux/gnutls/2.12.23-r8.4/gnutls-2.12.23&apos;
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (see /mnt/Yo/yoctoproject/build/tmp/work/x86_64-poky-linux/gnutls/2.12.23-r8.4/temp/log.do_compile.4110 for further information)
ERROR: Task 2160 (/mnt/Yo/yoctoproject/poky/meta/recipes-support/gnutls/gnutls_2.12.23.bb, do_compile) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 2065 tasks of which 2056 didn&apos;t need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  /mnt/Yo/yoctoproject/poky/meta/recipes-support/gnutls/gnutls_2.12.23.bb, do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
ubik@sentry:/mnt/Yo/yoctoproject/build$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33223</commentid>
    <comment_count>2</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-05-23 09:20:58 +0000</bug_when>
    <thetext>Tested this with the following local.conf:

....
#testcase for YB4358
require conf/multilib.conf
MULTILIBS = &quot;multilib:lib32&quot;
DEFAULTTUNE_virtclass-multilib-lib32 = &quot;x86&quot;
MULTILIB_IMAGE_INSTALL = &quot;lib32-alsa-tools&quot;

core-image-sato target for qemux86-64 machine build correctly (started from a &quot;fresh&quot; build dir).

Is this reproducible only on autobuilder?
If so, what is the test case?

Regards,
Cristian</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33363</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-05-29 10:16:46 +0000</bug_when>
    <thetext>The issue here is that aclocal is being called directly, not called by our wrapper in autotools.bbclass. We go to significant lengths to ensure the aclocal directory is &quot;atomic&quot; and that files in there can&apos;t change whilst aclocal is running.

The issue is that guile was installed in the sysroot and was uninstalled whilst the build was running. alsa-tools is running configure without the wrapper protection code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33364</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-05-29 10:18:18 +0000</bug_when>
    <thetext>the second problem you found is likely from changing the multilib configuration on an existing build directory. That problem is known about and is more a case of &quot;don&apos;t do that!&quot;, its a problem in autotools not noticing changes in libdir and there is little we can do about it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33626</commentid>
    <comment_count>5</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-06-05 14:37:24 +0000</bug_when>
    <thetext>Fixed with commits:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=1808552a86c83b53e7f3fa7d88890f661bb98264

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=158d9d82e0880aca33bfd3312376835ff75735c1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>