<?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>7538</bug_id>
          
          <creation_ts>2015-03-30 13:31:30 +0000</creation_ts>
          <short_desc>Casual failure on yasm recipe</short_desc>
          <delta_ts>2015-08-28 12:59:57 +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.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.9</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pau Espin Pedrol">pespin.shar</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>ross.burton</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <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>49913</commentid>
    <comment_count>0</comment_count>
      <attachid>2459</attachid>
    <who name="Pau Espin Pedrol">pespin.shar</who>
    <bug_when>2015-03-30 13:31:30 +0000</bug_when>
    <thetext>Created attachment 2459
patch

I write this in here as bug report as I didn&apos;t receive response in IRC:

[14:51] &lt;pespin&gt; Hi, a colleague of mine got this error while building yasm in poky a few days ago: configure.ac:99: error: possibly undefined macro: AM_WITH_DMALLOC | If this token and others are legitimate, please use m4_pattern_allow.
[14:51] &lt;pespin&gt; I am not able to reproduce it now, but I read several topics on the internet
[14:51] &lt;pespin&gt; and it seems related to AC stuff being read from aclocal.m4 which gets deleted at some point in build
[14:51] &lt;pespin&gt; and I saw several recipes copying the file to acinclude.m4
[14:52] &lt;pespin&gt; can someone give me five cents on wheter that should be done for yasm?
[14:52] &lt;pespin&gt; it is indeed reading from aclocal.m4 too



ERROR: Function failed: do_configure (log file is located at /home/extra/git/mydistro/build/tmp/work/x86_64-linux/yasm-native/1.2.0-r0/temp/log.do_configure.726)
ERROR: Logfile of failure stored in: /home/extra/git/mydistro/build/tmp/work/x86_64-linux/yasm-native/1.2.0-r0/temp/log.do_configure.726
Log data follows: | DEBUG: Executing python function sysroot_cleansstate | DEBUG: Python function sysroot_cleansstate finished | 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 | 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 | NOTE: Executing ACLOCAL=&quot;aclocal --system-acdir=/home/extra/git/mydistro/build/tmp/work/x86_64-linux/yasm-native/1.2.0-r0/build/aclocal-copy/&quot; autoreconf --verbose --install --force --exclude=autopoint -I /home/extra/git/mydistro/build/tmp/work/x86_64-linux/yasm-native/1.2.0-r0/yasm-1.2.0/m4/ | autoreconf: Entering directory `.&apos; | autoreconf: configure.ac: not using Gettext | autoreconf: running: aclocal --system-acdir=/home/extra/git/mydistro/build/tmp/work/x86_64-linux/yasm-native/1.2.0-r0/build/aclocal-copy/ -I /home/extra/git/mydistro/build/tmp/work/x86_64-linux/yasm-native/1.2.0-r0/yasm-1.2.0/m4/ -I /home/extra/git/mydistro/build/tmp/work/x86_64-linux/yasm-native/1.2.0-r0/yasm-1.2.0/m4/ --force -I m4 | configure.ac:99: warning: macro &apos;AM_WITH_DMALLOC&apos; not found in library | 1.2.0 | autoreconf: configure.ac: tracing | autoreconf: configure.ac: AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_VERSION | autoreconf: configure.ac: not using Libtool | autoreconf: running: /home/extra/git/mydistro/build/tmp/sysroots/x86_64-linux/usr/bin/autoconf --include=/home/extra/git/mydistro/build/tmp/work/x86_64-linux/yasm-native/1.2.0-r0/yasm-1.2.0/m4/ --force | configure.ac:99: error: possibly undefined macro: AM_WITH_DMALLOC | If this token and others are legitimate, please use m4_pattern_allow. | See the Autoconf documentation. | autoreconf: /home/extra/git/mydistro/build/tmp/sysroots/x86_64-linux/usr/bin/autoconf failed with exit status: 1 | ERROR: autoreconf execution failed. | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_configure (log file is located at /home/extra/git/mydistro/build/tmp/work/x86_64-linux/yasm-native/1.2.0-r0/temp/log.do_configure.726)
ERROR: Task 1879 (virtual:native:/home/extra/git/mydistro/build/../poky/meta/recipes-devtools/yasm/yasm_1.2.0.bb, do_configure) failed with exit code &apos;1&apos;

I also found some message like this one, which makes me think acincude.m4 should be used instead of aclocal.m4:
dnl acinclude.m4. Change *this* file to add new or change macros.
dnl When changes have been made, delete aclocal.m4 and run
dnl &quot;aclocal&quot;.
dnl
dnl DO NOT change aclocal.m4 !
dnl



I attach a patch as a fix in case it is actually needed, as seen in other recipes:
https://lists.yoctoproject.org/pipermail/yocto/2012-March/005712.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50047</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-04-02 16:05:56 +0000</bug_when>
    <thetext>The upstream aclocal.m4 appears to be a correctly generated file instead of hand-coded which is the usual problem, so this isn&apos;t the correct fix.  I also can&apos;t replicate this.

What release of oe-core/poky/etc are you using?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50138</commentid>
    <comment_count>2</comment_count>
    <who name="Pau Espin Pedrol">pespin.shar</who>
    <bug_when>2015-04-08 08:18:25 +0000</bug_when>
    <thetext>I wasn&apos;t able to replicate it neither, it was only triggered once by a colleague of mine, but I though it would be worth reporting it in case someone had similar problems.

I am using yocto 1.6.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51582</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-06-09 17:14:11 +0000</bug_when>
    <thetext>So at the moment given the bug doesn&apos;t seem to be reproducible and the attached fix isn&apos;t the correct one, I&apos;m inclined to close this I&apos;m afraid - but if you do figure out a way to reproduce it or even better you manage to fix the underlying cause, please do reopen the bug and we&apos;ll dig into it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51617</commentid>
    <comment_count>4</comment_count>
    <who name="Pau Espin Pedrol">pespin.shar</who>
    <bug_when>2015-06-10 14:34:47 +0000</bug_when>
    <thetext>Hi, sounds good to me to close it as I was not even able to reproduce it again myself.

Thanks for reviewing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53527</commentid>
    <comment_count>5</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-08-28 11:56:05 +0000</bug_when>
    <thetext>can not be reproduced by reporter</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>2459</attachid>
            <date>2015-03-30 13:31:30 +0000</date>
            <delta_ts>2015-03-30 13:31:30 +0000</delta_ts>
            <desc>patch</desc>
            <filename>0001-yasm-Move-aclocal.m4-to-acinclude.m4-to-avoid-autore.patch</filename>
            <type>text/plain</type>
            <size>909</size>
            <attacher name="Pau Espin Pedrol">pespin.shar</attacher>
            
              <data encoding="base64">RnJvbSA2NjIyY2U1MDk5YzJkMzhkZGY4MDQwNGQ5OTMzZjQwYTgzMjIxY2UyIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBQYXUgRXNwaW4gUGVkcm9sIDxwYXUuZXNwaW5AZXNzZW5zaXVt
LmNvbT4KRGF0ZTogTW9uLCAzMCBNYXIgMjAxNSAxNToxMzoyOCArMDIwMApTdWJqZWN0OiBbUEFU
Q0hdIHlhc206IE1vdmUgYWNsb2NhbC5tNCB0byBhY2luY2x1ZGUubTQgdG8gYXZvaWQgYXV0b3Jl
bW92YWwgb24KIHNvbWUgY2FzZXMKClNpZ25lZC1vZmYtYnk6IFBhdSBFc3BpbiBQZWRyb2wgPHBh
dS5lc3BpbkBlc3NlbnNpdW0uY29tPgotLS0KIG1ldGEvcmVjaXBlcy1kZXZ0b29scy95YXNtL3lh
c21fMS4yLjAuYmIgfCA2ICsrKysrKwogMSBmaWxlIGNoYW5nZWQsIDYgaW5zZXJ0aW9ucygrKQoK
ZGlmZiAtLWdpdCBhL21ldGEvcmVjaXBlcy1kZXZ0b29scy95YXNtL3lhc21fMS4yLjAuYmIgYi9t
ZXRhL3JlY2lwZXMtZGV2dG9vbHMveWFzbS95YXNtXzEuMi4wLmJiCmluZGV4IGNjNzQ1OWIuLmRk
MTg2OWYgMTAwNjQ0Ci0tLSBhL21ldGEvcmVjaXBlcy1kZXZ0b29scy95YXNtL3lhc21fMS4yLjAu
YmIKKysrIGIvbWV0YS9yZWNpcGVzLWRldnRvb2xzL3lhc20veWFzbV8xLjIuMC5iYgpAQCAtMTAs
NCArMTAsMTAgQEAgU1JDX1VSSVtzaGEyNTZzdW1dID0gIjc2OGZmYWI0NTdiOTBhMjBhNmQ4OTVj
Mzk3NDlhZGI1NDdjMWI3Y2I1YzEwOGU4NGIxNTFhODM4YTIKIAogaW5oZXJpdCBhdXRvdG9vbHMg
Z2V0dGV4dAogCitkb19jb25maWd1cmVfcHJlcGVuZCAoKSB7CisJaWYgWyAtZiBhY2xvY2FsLm00
IF0gJiYgWyAhIC1mIGFjaW5jbHVkZS5tNCBdOyB0aGVuCisJCW12IGFjbG9jYWwubTQgYWNpbmNs
dWRlLm00CisJZmkKK30KKwogQkJDTEFTU0VYVEVORCA9ICJuYXRpdmUiCi0tIAoxLjkuMQoK
</data>

          </attachment>
      

    </bug>

</bugzilla>