GNU bug report logs - #25740
Error reporting with confess mangles messages

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: autoconf; Reported by: Christophe de Dinechin <dinechin@HIDDEN>; dated Wed, 15 Feb 2017 16:26:02 UTC; Maintainer for autoconf is (unknown).
bug reassigned from package 'automake' to 'autoconf'. Request was from Mathieu Lirzin <mthl@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 25740 <at> debbugs.gnu.org:


Received: (at 25740) by debbugs.gnu.org; 8 Mar 2017 07:46:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 08 02:46:01 2017
Received: from localhost ([127.0.0.1]:45313 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1clWIL-000685-16
	for submit <at> debbugs.gnu.org; Wed, 08 Mar 2017 02:46:01 -0500
Received: from mail-wr0-f170.google.com ([209.85.128.170]:33399)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dinechin@HIDDEN>) id 1clWIH-00067m-PQ
 for 25740 <at> debbugs.gnu.org; Wed, 08 Mar 2017 02:45:59 -0500
Received: by mail-wr0-f170.google.com with SMTP id u48so17329997wrc.0
 for <25740 <at> debbugs.gnu.org>; Tue, 07 Mar 2017 23:45:57 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:message-id:mime-version:subject:date
 :in-reply-to:cc:to:references;
 bh=uS1R4/m+jZVe/cQhJI1mUVbJScbox/jHKXMCoVs0DP8=;
 b=IzBdOFKyRWlWkHxOFO/dpALbefXjQNq1ESFZlbWHf9nhnzy68QKlHZAsGBksvp+Dgj
 bX08LZRzCu2kh2Ayyr1HQmvjBZTe0mz4Trz1WuJQhiWV4/EFNSNuc6muGDp5443ZxtTu
 bsKAekzuDgSjvF4a4HJwOHvxYR2pA5k49+X8fZM/EXgx5w0M9bOSlvg2ZoJ1u4jjkqbP
 Cg2SEJmq0kQtxmIWOdGuUiZU1IJoWx0yZfx/q56rKor0d+MN4yvKAfwt23FItBJDnHIa
 YwCxa1gm/M5RBVT5AamSUgx55FII9HlOMf+vNHAuGXWoY9aEslht2/HgbqyolY9F0Roz
 TOXA==
X-Gm-Message-State: AMke39n7ujhQYYYxe+Q9bJDBe3VCvwtgZHxoAr+ffRSYfSJ0ZO3Nj2eY0Hr/Cw14bI0m5jKi
X-Received: by 10.223.133.228 with SMTP id 33mr4357871wru.0.1488959151996;
 Tue, 07 Mar 2017 23:45:51 -0800 (PST)
Received: from [192.168.77.22] (val06-1-88-182-161-34.fbx.proxad.net.
 [88.182.161.34])
 by smtp.gmail.com with ESMTPSA id b10sm22043638wmi.34.2017.03.07.23.45.50
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 07 Mar 2017 23:45:51 -0800 (PST)
From: Christophe de Dinechin <dinechin@HIDDEN>
Message-Id: <5A074384-0EB7-4EE8-BD60-432BFABED957@HIDDEN>
Content-Type: multipart/alternative;
 boundary="Apple-Mail=_1B1D5E62-D1FB-4748-B03F-BB178ACFB032"
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Subject: Re: bug#25740: [PATCH] Swallow m4traces that have no file/line number
Date: Wed, 8 Mar 2017 08:45:49 +0100
In-Reply-To: <6ef6ea08-3d23-7c6b-35e4-fb9493ea02c4@HIDDEN>
To: Eric Blake <eblake@HIDDEN>
References: <A80C6E4E-93C7-4AD9-84CE-04870F4715AA@HIDDEN>
 <466E4AC8-E690-4CFC-B8CB-2BD3699DD9F1@HIDDEN>
 <6ef6ea08-3d23-7c6b-35e4-fb9493ea02c4@HIDDEN>
X-Mailer: Apple Mail (2.3259)
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 25740
Cc: Autoconf Patches List <autoconf-patches@HIDDEN>, 25740 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)


--Apple-Mail=_1B1D5E62-D1FB-4748-B03F-BB178ACFB032
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


> On 7 Mar 2017, at 23:51, Eric Blake <eblake@HIDDEN> wrote:
>=20
> autom4te is maintained by autoconf, not automake; redirecting your =
patch
> there.
>=20
> On 03/07/2017 04:00 PM, Christophe de Dinechin wrote:
>> The symptoms are something like:
>>=20
>>  Use of uninitialized value $msg in concatenation (.) or string at =
/usr/local/Cellar/autoconf/2.69/bin/autom4te line 1032.
>>  Use of uninitialized value $stacktrace in pattern match (m//) at =
/usr/local/Cellar/autoconf/2.69/bin/autom4te line 1032.
>>  unknown channel m4trace: -1- AS_VAR_APPEND(ac_configure_args, " =
'$ac_arg'")
>>   at =
/usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/Channels.pm line =
638.
>>      Autom4te::Channels::msg('m4trace: -1- =
AS_VAR_APPEND(ac_configure_args, " \'$ac_arg\'")\x{a}', undef, 'warning: =
', 'partial', 0) called at /usr/local/Cellar/autoconf/2.69/bin/autom4te =
line 1032
>>=20
>> The root cause is m4 traces without a file/line number shown.
>>=20
>> So instead of something like:
>>=20
>>   m4trace:configure.ac:48: -1- ...
>>=20
>> you have something like:
>>=20
>>  m4trace: -1- ...
>>=20
>> In the scenarios I ran into, this is due to some error that throws m4 =
out.
>> Eliminating these messages from the temporary m4 file being generated
>> (which will not complete anyway) is sufficient for the rest of =
autoconf
>> to complete, until it prints errors.
>>=20
>> In my case, the final error looks like:
>>=20
>>  common/Makefile.am:20: error: Libtool library used but 'LIBTOOL' is =
undefined
>>  common/Makefile.am:20:   The usual way to define 'LIBTOOL' is to add =
'LT_INIT'
>>  common/Makefile.am:20:   to 'configure.ac' and run 'aclocal' and =
'autoconf' again.
>>  common/Makefile.am:20:   If 'LT_INIT' is in 'configure.ac', make =
sure
>>  common/Makefile.am:20:   its definition is in aclocal's search path.
>>  autoreconf: automake failed with exit status: 1
>>=20
>> But I've seen various reports for other root causes that ran into the =
same
>> problem (see bug report)
>>=20
>> Signed-off-by: Christophe de Dinechin <dinechin@HIDDEN>
>> ---
>> bin/autom4te.in | 2 ++
>> 1 file changed, 2 insertions(+)
>>=20
>> diff --git a/bin/autom4te.in b/bin/autom4te.in
>> index 964ac1a..b3f3831 100644
>> --- a/bin/autom4te.in
>> +++ b/bin/autom4te.in
>> @@ -821,6 +821,8 @@ EOF
>>   my $traces =3D new Autom4te::XFile ($tcache . $req->id, "<");
>>   while ($_ =3D $traces->getline)
>>     {
>> +      # Traces without file/line
>> +      next if (m{^m4trace: -(\d+)- ([^(]+)\((.*)$});
>=20
> Would it be better to keep the error message, but set the file and =
line
> to placeholders, instead of completely discarding the message?

I had tried, and that works too in my case. I.e. you can use if this =
seems to be better:

> Subject: [PATCH 2/2] Alternate fix for #25740 (error reporting mangles
>  messages)
>=20
> The symptoms are something like:
>=20
>   Use of uninitialized value $msg in concatenation (.) or string at =
/usr/local/Cellar/autoconf/2.69/bin/autom4te line 1032.
>   Use of uninitialized value $stacktrace in pattern match (m//) at =
/usr/local/Cellar/autoconf/2.69/bin/autom4te line 1032.
>   unknown channel m4trace: -1- AS_VAR_APPEND(ac_configure_args, " =
'$ac_arg'")
>    at =
/usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/Channels.pm line =
638.
>       Autom4te::Channels::msg('m4trace: -1- =
AS_VAR_APPEND(ac_configure_args, " \'$ac_arg\'")\x{a}', undef, 'warning: =
', 'partial', 0) called at /usr/local/Cellar/autoconf/2.69/bin/autom4te =
line 1032
>=20
> The root cause is m4 traces without a file/line number shown.
>=20
> So instead of something like:
>=20
>    m4trace:configure.ac:48: -1- ...
>=20
> you have something like:
>=20
>   m4trace: -1- ...
>=20
> In the scenarios I ran into, this is due to some error that throws m4 =
out.
> Eliminating these messages from the temporary m4 file being generated
> (which will not complete anyway) is sufficient for the rest of =
autoconf
> to complete, until it prints errors.
>=20
> In my case, the final error looks like:
>=20
>   common/Makefile.am:20: error: Libtool library used but 'LIBTOOL' is =
undefined
>   common/Makefile.am:20:   The usual way to define 'LIBTOOL' is to add =
'LT_INIT'
>   common/Makefile.am:20:   to 'configure.ac' and run 'aclocal' and =
'autoconf' again.
>   common/Makefile.am:20:   If 'LT_INIT' is in 'configure.ac', make =
sure
>   common/Makefile.am:20:   its definition is in aclocal's search path.
>   autoreconf: automake failed with exit status: 1
>=20
> But I've seen various reports for other root causes that ran into the =
same
> problem (see bug report)
>=20
> Signed-off-by: Christophe de Dinechin <dinechin@HIDDEN>
> ---
>  bin/autom4te.in | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>=20
> diff --git a/bin/autom4te.in b/bin/autom4te.in
> index b3f3831..406ebfe 100644
> --- a/bin/autom4te.in
> +++ b/bin/autom4te.in
> @@ -821,8 +821,6 @@ EOF
>    my $traces =3D new Autom4te::XFile ($tcache . $req->id, "<");
>    while ($_ =3D $traces->getline)
>      {
> -      # Traces without file/line
> -      next if (m{^m4trace: -(\d+)- ([^(]+)\((.*)$});
>        # Trace with arguments, as the example above.  We don't try
>        # to match the trailing parenthesis as it might be on a
>        # separate line.
> @@ -831,6 +829,8 @@ EOF
>        # Traces without arguments, always on a single line.
>        s{^m4trace:(.+):(\d+): -(\d+)- ([^)]*)\n$}
>         {AT_$4([$1], [$2], [$3], [$4])\n};
> +      s{^m4trace: -(\d+)- ([^(]+)\((.*)$}
> +       {AT_$2([nowhere], [0], [$1], [$2], $3};
>        print $trace_m4 "$_";
>      }
>    $trace_m4->close;
> --=20
> 2.10.1 (Apple Git-78)


I thought discarding lines that did not seem to correspond to any known =
file was more efficient and less risky.

>=20
>>       # Trace with arguments, as the example above.  We don't try
>>       # to match the trailing parenthesis as it might be on a
>>       # separate line.
>>=20
>=20
> --=20
> Eric Blake   eblake redhat com    +1-919-301-3266
> Libvirt virtualization library http://libvirt.org =
<http://libvirt.org/>

--Apple-Mail=_1B1D5E62-D1FB-4748-B03F-BB178ACFB032
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 7 Mar 2017, at 23:51, Eric Blake &lt;<a =
href=3D"mailto:eblake@HIDDEN" class=3D"">eblake@HIDDEN</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><span =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; float: none; display: inline =
!important;" class=3D"">autom4te is maintained by autoconf, not =
automake; redirecting your patch</span><br style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;" class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: =
inline !important;" class=3D"">there.</span><br style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;" class=3D""><br style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><span =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; float: none; display: inline =
!important;" class=3D"">On 03/07/2017 04:00 PM, Christophe de Dinechin =
wrote:</span><br style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><blockquote=
 type=3D"cite" style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-size-adjust: auto; =
-webkit-text-stroke-width: 0px;" class=3D"">The symptoms are something =
like:<br class=3D""><br class=3D"">&nbsp;Use of uninitialized value $msg =
in concatenation (.) or string at =
/usr/local/Cellar/autoconf/2.69/bin/autom4te line 1032.<br =
class=3D"">&nbsp;Use of uninitialized value $stacktrace in pattern match =
(m//) at /usr/local/Cellar/autoconf/2.69/bin/autom4te line 1032.<br =
class=3D"">&nbsp;unknown channel m4trace: -1- =
AS_VAR_APPEND(ac_configure_args, " '$ac_arg'")<br =
class=3D"">&nbsp;&nbsp;at =
/usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/Channels.pm line =
638.<br =
class=3D"">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Autom4te::Channels::msg('m4trace:=
 -1- AS_VAR_APPEND(ac_configure_args, " \'$ac_arg\'")\x{a}', undef, =
'warning: ', 'partial', 0) called at =
/usr/local/Cellar/autoconf/2.69/bin/autom4te line 1032<br class=3D""><br =
class=3D"">The root cause is m4 traces without a file/line number =
shown.<br class=3D""><br class=3D"">So instead of something like:<br =
class=3D""><br class=3D"">&nbsp;&nbsp;m4trace:configure.ac:48: -1- =
...<br class=3D""><br class=3D"">you have something like:<br =
class=3D""><br class=3D"">&nbsp;m4trace: -1- ...<br class=3D""><br =
class=3D"">In the scenarios I ran into, this is due to some error that =
throws m4 out.<br class=3D"">Eliminating these messages from the =
temporary m4 file being generated<br class=3D"">(which will not complete =
anyway) is sufficient for the rest of autoconf<br class=3D"">to =
complete, until it prints errors.<br class=3D""><br class=3D"">In my =
case, the final error looks like:<br class=3D""><br =
class=3D"">&nbsp;common/Makefile.am:20: error: Libtool library used but =
'LIBTOOL' is undefined<br class=3D"">&nbsp;common/Makefile.am:20: =
&nbsp;&nbsp;The usual way to define 'LIBTOOL' is to add 'LT_INIT'<br =
class=3D"">&nbsp;common/Makefile.am:20: &nbsp;&nbsp;to 'configure.ac' =
and run 'aclocal' and 'autoconf' again.<br =
class=3D"">&nbsp;common/Makefile.am:20: &nbsp;&nbsp;If 'LT_INIT' is in =
'configure.ac', make sure<br class=3D"">&nbsp;common/Makefile.am:20: =
&nbsp;&nbsp;its definition is in aclocal's search path.<br =
class=3D"">&nbsp;autoreconf: automake failed with exit status: 1<br =
class=3D""><br class=3D"">But I've seen various reports for other root =
causes that ran into the same<br class=3D"">problem (see bug report)<br =
class=3D""><br class=3D"">Signed-off-by: Christophe de Dinechin &lt;<a =
href=3D"mailto:dinechin@HIDDEN" =
class=3D"">dinechin@HIDDEN</a>&gt;<br class=3D"">---<br =
class=3D"">bin/autom4te.in | 2 ++<br class=3D"">1 file changed, 2 =
insertions(+)<br class=3D""><br class=3D"">diff --git a/bin/autom4te.in =
b/bin/autom4te.in<br class=3D"">index 964ac1a..b3f3831 100644<br =
class=3D"">--- a/bin/autom4te.in<br class=3D"">+++ b/bin/autom4te.in<br =
class=3D"">@@ -821,6 +821,8 @@ EOF<br class=3D"">&nbsp;&nbsp;my $traces =
=3D new Autom4te::XFile ($tcache . $req-&gt;id, "&lt;");<br =
class=3D"">&nbsp;&nbsp;while ($_ =3D $traces-&gt;getline)<br =
class=3D"">&nbsp;&nbsp;&nbsp;&nbsp;{<br class=3D"">+ =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# Traces without file/line<br class=3D"">+ =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;next if (m{^m4trace: -(\d+)- =
([^(]+)\((.*)$});<br class=3D""></blockquote><br style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;" class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: =
inline !important;" class=3D"">Would it be better to keep the error =
message, but set the file and line</span><br style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;" class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: =
inline !important;" class=3D"">to placeholders, instead of completely =
discarding the message?</span><br style=3D"font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant-caps: normal; =
font-weight: normal; letter-spacing: normal; orphans: auto; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" =
class=3D""></div></blockquote><div><br class=3D""></div>I had tried, and =
that works too in my case. I.e. you can use if this seems to be =
better:</div><div><br class=3D""></div><div><blockquote type=3D"cite" =
class=3D""><div style=3D"margin: 0px; font-size: 11px; line-height: =
normal; font-family: Menlo; background-color: rgba(207, 223, 255, =
0.882353);" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">Subject: [PATCH 2/2] Alternate fix for =
#25740 (error reporting mangles</span></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp;messages)</span></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353); min-height: 13px;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D""></span><br class=3D""></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">The =
symptoms are something like:</span></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353); min-height: 13px;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D""></span><br class=3D""></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
Use of uninitialized value $msg in concatenation (.) or string at =
/usr/local/Cellar/autoconf/2.69/bin/autom4te line 1032.</span></div><div =
style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
Menlo; background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
Use of uninitialized value $stacktrace in pattern match (m//) at =
/usr/local/Cellar/autoconf/2.69/bin/autom4te line 1032.</span></div><div =
style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
Menlo; background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
unknown channel m4trace: -1- AS_VAR_APPEND(ac_configure_args, " =
'$ac_arg'")</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo; background-color: rgba(207, =
223, 255, 0.882353);" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp;&nbsp; at =
/usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/Channels.pm line =
638.</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo; background-color: rgba(207, =
223, 255, 0.882353);" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; &nbsp; &nbsp; =
Autom4te::Channels::msg('m4trace: -1- AS_VAR_APPEND(ac_configure_args, " =
\'$ac_arg\'")\x{a}', undef, 'warning: ', 'partial', 0) called at =
/usr/local/Cellar/autoconf/2.69/bin/autom4te line 1032</span></div><div =
style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
Menlo; background-color: rgba(207, 223, 255, 0.882353); min-height: =
13px;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D""></span><br class=3D""></div><div =
style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
Menlo; background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">The =
root cause is m4 traces without a file/line number =
shown.</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo; background-color: rgba(207, =
223, 255, 0.882353); min-height: 13px;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D""></span><br class=3D""></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">So =
instead of something like:</span></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353); min-height: 13px;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D""></span><br class=3D""></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp;&nbsp; m4trace:configure.ac:48: -1- =
...</span></div><div style=3D"margin: 0px; font-size: 11px; line-height: =
normal; font-family: Menlo; background-color: rgba(207, 223, 255, =
0.882353); min-height: 13px;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D""></span><br class=3D""></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">you =
have something like:</span></div><div style=3D"margin: 0px; font-size: =
11px; line-height: normal; font-family: Menlo; background-color: =
rgba(207, 223, 255, 0.882353); min-height: 13px;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D""></span><br class=3D""></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
m4trace: -1- ...</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo; background-color: rgba(207, =
223, 255, 0.882353); min-height: 13px;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D""></span><br class=3D""></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">In the =
scenarios I ran into, this is due to some error that throws m4 =
out.</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo; background-color: rgba(207, =
223, 255, 0.882353);" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">Eliminating these messages from the =
temporary m4 file being generated</span></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">(which =
will not complete anyway) is sufficient for the rest of =
autoconf</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo; background-color: rgba(207, =
223, 255, 0.882353);" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">to complete, until it prints =
errors.</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo; background-color: rgba(207, =
223, 255, 0.882353); min-height: 13px;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D""></span><br class=3D""></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">In my =
case, the final error looks like:</span></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353); min-height: 13px;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D""></span><br class=3D""></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
common/Makefile.am:20: error: Libtool library used but 'LIBTOOL' is =
undefined</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo; background-color: rgba(207, =
223, 255, 0.882353);" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; common/Makefile.am:20: &nbsp; The =
usual way to define 'LIBTOOL' is to add 'LT_INIT'</span></div><div =
style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
Menlo; background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
common/Makefile.am:20: &nbsp; to 'configure.ac' and run 'aclocal' and =
'autoconf' again.</span></div><div style=3D"margin: 0px; font-size: =
11px; line-height: normal; font-family: Menlo; background-color: =
rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
common/Makefile.am:20: &nbsp; If 'LT_INIT' is in 'configure.ac', make =
sure</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo; background-color: rgba(207, =
223, 255, 0.882353);" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; common/Makefile.am:20: &nbsp; its =
definition is in aclocal's search path.</span></div><div style=3D"margin: =
0px; font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
autoreconf: automake failed with exit status: 1</span></div><div =
style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
Menlo; background-color: rgba(207, 223, 255, 0.882353); min-height: =
13px;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D""></span><br class=3D""></div><div =
style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
Menlo; background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">But =
I've seen various reports for other root causes that ran into the =
same</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo; background-color: rgba(207, =
223, 255, 0.882353);" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">problem (see bug =
report)</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo; background-color: rgba(207, =
223, 255, 0.882353); min-height: 13px;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D""></span><br class=3D""></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">Signed-off-by: Christophe de Dinechin &lt;<a =
href=3D"mailto:dinechin@HIDDEN" =
class=3D"">dinechin@HIDDEN</a>&gt;</span></div><div style=3D"margin: =
0px; font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">---</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo; background-color: rgba(207, =
223, 255, 0.882353);" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp;bin/autom4te.in | 4 =
++--</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo; background-color: rgba(207, =
223, 255, 0.882353);" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp;1 file changed, 2 insertions(+), 2 =
deletions(-)</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo; background-color: rgba(207, =
223, 255, 0.882353); min-height: 13px;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D""></span><br class=3D""></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">diff =
--git a/bin/autom4te.in b/bin/autom4te.in</span></div><div =
style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
Menlo; background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">index =
b3f3831..406ebfe 100644</span></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">--- =
a/bin/autom4te.in</span></div><div style=3D"margin: 0px; font-size: =
11px; line-height: normal; font-family: Menlo; background-color: =
rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">+++ =
b/bin/autom4te.in</span></div><div style=3D"margin: 0px; font-size: =
11px; line-height: normal; font-family: Menlo; background-color: =
rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">@@ =
-821,8 +821,6 @@ EOF</span></div><div style=3D"margin: 0px; font-size: =
11px; line-height: normal; font-family: Menlo; background-color: =
rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp;&nbsp; my $traces =3D new Autom4te::XFile ($tcache . =
$req-&gt;id, "&lt;");</span></div><div style=3D"margin: 0px; font-size: =
11px; line-height: normal; font-family: Menlo; background-color: =
rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp;&nbsp; while ($_ =3D =
$traces-&gt;getline)</span></div><div style=3D"margin: 0px; font-size: =
11px; line-height: normal; font-family: Menlo; background-color: =
rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp;&nbsp; &nbsp; {</span></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">-&nbsp; =
&nbsp; &nbsp; # Traces without file/line</span></div><div style=3D"margin:=
 0px; font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">-&nbsp; =
&nbsp; &nbsp; next if (m{^m4trace: -(\d+)- =
([^(]+)\((.*)$});</span></div><div style=3D"margin: 0px; font-size: =
11px; line-height: normal; font-family: Menlo; background-color: =
rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp;&nbsp; &nbsp; &nbsp; # Trace with arguments, as the =
example above.&nbsp; We don't try</span></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp;&nbsp; &nbsp; &nbsp; # to match the trailing =
parenthesis as it might be on a</span></div><div style=3D"margin: 0px; =
font-size: 11px; line-height: normal; font-family: Menlo; =
background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp;&nbsp; &nbsp; &nbsp; # separate line.</span></div><div =
style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
Menlo; background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">@@ =
-831,6 +829,8 @@ EOF</span></div><div style=3D"margin: 0px; font-size: =
11px; line-height: normal; font-family: Menlo; background-color: =
rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp;&nbsp; &nbsp; &nbsp; # Traces without arguments, always =
on a single line.</span></div><div style=3D"margin: 0px; font-size: =
11px; line-height: normal; font-family: Menlo; background-color: =
rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp;&nbsp; &nbsp; &nbsp; s{^m4trace:(.+):(\d+): -(\d+)- =
([^)]*)\n$}</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo; background-color: rgba(207, =
223, 255, 0.882353);" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; &nbsp; &nbsp; &nbsp; {AT_$4([$1], =
[$2], [$3], [$4])\n};</span></div><div style=3D"margin: 0px; font-size: =
11px; line-height: normal; font-family: Menlo; background-color: =
rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">+&nbsp; =
&nbsp; &nbsp; s{^m4trace: -(\d+)- ([^(]+)\((.*)$}</span></div><div =
style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
Menlo; background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">+ =
&nbsp; &nbsp; &nbsp; {AT_$2([nowhere], [0], [$1], [$2], =
$3};</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo; background-color: rgba(207, =
223, 255, 0.882353);" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp;&nbsp; &nbsp; &nbsp; print =
$trace_m4 "$_";</span></div><div style=3D"margin: 0px; font-size: 11px; =
line-height: normal; font-family: Menlo; background-color: rgba(207, =
223, 255, 0.882353);" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp;&nbsp; &nbsp; }</span></div><div =
style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
Menlo; background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp;&nbsp; $trace_m4-&gt;close;</span></div><div =
style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
Menlo; background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">--&nbsp;</span></div><div style=3D"margin: 0px; font-size: =
11px; line-height: normal; font-family: Menlo; background-color: =
rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">2.10.1 =
(Apple Git-78)</span></div></blockquote><div class=3D""><div =
style=3D"margin: 0px; font-size: 11px; line-height: normal; font-family: =
Menlo; background-color: rgba(207, 223, 255, 0.882353);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""><br =
class=3D""></span></div></div><div><br class=3D""></div><div>I thought =
discarding lines that did not seem to correspond to any known file was =
more efficient and less risky.</div><div><br class=3D""></div><blockquote =
type=3D"cite" class=3D""><div class=3D""><br style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;" class=3D""><blockquote type=3D"cite" style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; =
-webkit-text-stroke-width: 0px;" =
class=3D"">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# Trace with arguments, =
as the example above. &nbsp;We don't try<br =
class=3D"">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# to match the trailing =
parenthesis as it might be on a<br =
class=3D"">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# separate line.<br =
class=3D""><br class=3D""></blockquote><br style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;" class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: =
inline !important;" class=3D"">--<span =
class=3D"Apple-converted-space">&nbsp;</span></span><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
float: none; display: inline !important;" class=3D"">Eric Blake =
&nbsp;&nbsp;eblake redhat com =
&nbsp;&nbsp;&nbsp;+1-919-301-3266</span><br style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: =
0px;" class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: =
inline !important;" class=3D"">Libvirt virtualization library<span =
class=3D"Apple-converted-space">&nbsp;</span></span><a =
href=3D"http://libvirt.org/" style=3D"font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; orphans: auto; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; widows: =
auto; word-spacing: 0px; -webkit-text-size-adjust: auto; =
-webkit-text-stroke-width: 0px;" =
class=3D"">http://libvirt.org</a></div></blockquote></div><br =
class=3D""></body></html>=

--Apple-Mail=_1B1D5E62-D1FB-4748-B03F-BB178ACFB032--




Information forwarded to bug-automake@HIDDEN:
bug#25740; Package automake. Full text available.

Message received at 25740 <at> debbugs.gnu.org:


Received: (at 25740) by debbugs.gnu.org; 7 Mar 2017 22:51:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 07 17:51:55 2017
Received: from localhost ([127.0.0.1]:45155 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1clNxT-0001Wz-EF
	for submit <at> debbugs.gnu.org; Tue, 07 Mar 2017 17:51:55 -0500
Received: from mx1.redhat.com ([209.132.183.28]:39592)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eblake@HIDDEN>) id 1clNxR-0001Wj-Kw
 for 25740 <at> debbugs.gnu.org; Tue, 07 Mar 2017 17:51:54 -0500
Received: from int-mx13.intmail.prod.int.phx2.redhat.com
 (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mx1.redhat.com (Postfix) with ESMTPS id CF9E361BA8;
 Tue,  7 Mar 2017 22:51:48 +0000 (UTC)
Received: from [10.10.124.84] (ovpn-124-84.rdu2.redhat.com [10.10.124.84] (may
 be forged))
 by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id
 v27Mpl3g004687; Tue, 7 Mar 2017 17:51:47 -0500
Subject: Re: bug#25740: [PATCH] Swallow m4traces that have no file/line number
To: Christophe de Dinechin <dinechin@HIDDEN>, 25740 <at> debbugs.gnu.org,
 Autoconf Patches List <autoconf-patches@HIDDEN>
References: <A80C6E4E-93C7-4AD9-84CE-04870F4715AA@HIDDEN>
 <466E4AC8-E690-4CFC-B8CB-2BD3699DD9F1@HIDDEN>
From: Eric Blake <eblake@HIDDEN>
Openpgp: url=http://people.redhat.com/eblake/eblake.gpg
Organization: Red Hat, Inc.
Message-ID: <6ef6ea08-3d23-7c6b-35e4-fb9493ea02c4@HIDDEN>
Date: Tue, 7 Mar 2017 16:51:46 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <466E4AC8-E690-4CFC-B8CB-2BD3699DD9F1@HIDDEN>
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="vKhbA1EnwgES41ambsg5tV3xa6IOWWpJk"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
 (mx1.redhat.com [10.5.110.39]); Tue, 07 Mar 2017 22:51:48 +0000 (UTC)
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 25740
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--vKhbA1EnwgES41ambsg5tV3xa6IOWWpJk
Content-Type: multipart/mixed; boundary="j08IH2QHANo68aQd7t2UhhW7tM8RCbtpt";
 protected-headers="v1"
From: Eric Blake <eblake@HIDDEN>
To: Christophe de Dinechin <dinechin@HIDDEN>, 25740 <at> debbugs.gnu.org,
 Autoconf Patches List <autoconf-patches@HIDDEN>
Message-ID: <6ef6ea08-3d23-7c6b-35e4-fb9493ea02c4@HIDDEN>
Subject: Re: bug#25740: [PATCH] Swallow m4traces that have no file/line number
References: <A80C6E4E-93C7-4AD9-84CE-04870F4715AA@HIDDEN>
 <466E4AC8-E690-4CFC-B8CB-2BD3699DD9F1@HIDDEN>
In-Reply-To: <466E4AC8-E690-4CFC-B8CB-2BD3699DD9F1@HIDDEN>

--j08IH2QHANo68aQd7t2UhhW7tM8RCbtpt
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

autom4te is maintained by autoconf, not automake; redirecting your patch
there.

On 03/07/2017 04:00 PM, Christophe de Dinechin wrote:
> The symptoms are something like:
>=20
>   Use of uninitialized value $msg in concatenation (.) or string at /us=
r/local/Cellar/autoconf/2.69/bin/autom4te line 1032.
>   Use of uninitialized value $stacktrace in pattern match (m//) at /usr=
/local/Cellar/autoconf/2.69/bin/autom4te line 1032.
>   unknown channel m4trace: -1- AS_VAR_APPEND(ac_configure_args, " '$ac_=
arg'")
>    at /usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/Channels.=
pm line 638.
>       Autom4te::Channels::msg('m4trace: -1- AS_VAR_APPEND(ac_configure_=
args, " \'$ac_arg\'")\x{a}', undef, 'warning: ', 'partial', 0) called at =
/usr/local/Cellar/autoconf/2.69/bin/autom4te line 1032
>=20
> The root cause is m4 traces without a file/line number shown.
>=20
> So instead of something like:
>=20
>    m4trace:configure.ac:48: -1- ...
>=20
> you have something like:
>=20
>   m4trace: -1- ...
>=20
> In the scenarios I ran into, this is due to some error that throws m4 o=
ut.
> Eliminating these messages from the temporary m4 file being generated
> (which will not complete anyway) is sufficient for the rest of autoconf=

> to complete, until it prints errors.
>=20
> In my case, the final error looks like:
>=20
>   common/Makefile.am:20: error: Libtool library used but 'LIBTOOL' is u=
ndefined
>   common/Makefile.am:20:   The usual way to define 'LIBTOOL' is to add =
'LT_INIT'
>   common/Makefile.am:20:   to 'configure.ac' and run 'aclocal' and 'aut=
oconf' again.
>   common/Makefile.am:20:   If 'LT_INIT' is in 'configure.ac', make sure=

>   common/Makefile.am:20:   its definition is in aclocal's search path.
>   autoreconf: automake failed with exit status: 1
>=20
> But I've seen various reports for other root causes that ran into the s=
ame
> problem (see bug report)
>=20
> Signed-off-by: Christophe de Dinechin <dinechin@HIDDEN>
> ---
>  bin/autom4te.in | 2 ++
>  1 file changed, 2 insertions(+)
>=20
> diff --git a/bin/autom4te.in b/bin/autom4te.in
> index 964ac1a..b3f3831 100644
> --- a/bin/autom4te.in
> +++ b/bin/autom4te.in
> @@ -821,6 +821,8 @@ EOF
>    my $traces =3D new Autom4te::XFile ($tcache . $req->id, "<");
>    while ($_ =3D $traces->getline)
>      {
> +      # Traces without file/line
> +      next if (m{^m4trace: -(\d+)- ([^(]+)\((.*)$});

Would it be better to keep the error message, but set the file and line
to placeholders, instead of completely discarding the message?

>        # Trace with arguments, as the example above.  We don't try
>        # to match the trailing parenthesis as it might be on a
>        # separate line.
>=20

--=20
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--j08IH2QHANo68aQd7t2UhhW7tM8RCbtpt--

--vKhbA1EnwgES41ambsg5tV3xa6IOWWpJk
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJYvzmCAAoJEKeha0olJ0NqkNMH/i24ZtcpAT+r2MJ+WLv3TwwB
hiSuMfWVOKgQdTh15n6lh3RJZu6WNdLG9tnFV8luUl4Oj5Hy8zsDm9cOK2BEp7WP
Rl1zlMuFHsWl6eqFrm8b7xqEMifhKWf18pNtFBSfO4lHooyBFUdeQRmczCwDFDpx
/vFZqHWTd3M+VbQ5SMk3MNGDyZq4gZ493G3H6Bb8rMtr9y9m5uGUsomvKXWcXSwm
yyG8pSh6cTR9gn3KppF+IS7H8/rtIHJnMRXDAVVX1oYZGBFHJ98tt2xUeJ+XQuuJ
lnIetEBZ2yIC09dNLmsTJQEnj6JmgLv7ezw5uOIIgLdUrZH9l4PGGymlSylAE4E=
=xial
-----END PGP SIGNATURE-----

--vKhbA1EnwgES41ambsg5tV3xa6IOWWpJk--




Information forwarded to bug-automake@HIDDEN:
bug#25740; Package automake. Full text available.

Message received at 25740 <at> debbugs.gnu.org:


Received: (at 25740) by debbugs.gnu.org; 7 Mar 2017 22:00:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 07 17:00:56 2017
Received: from localhost ([127.0.0.1]:45127 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1clNA8-00071P-7N
	for submit <at> debbugs.gnu.org; Tue, 07 Mar 2017 17:00:56 -0500
Received: from mail-wm0-f52.google.com ([74.125.82.52]:37625)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dinechin@HIDDEN>) id 1clNA6-00071A-HA
 for 25740 <at> debbugs.gnu.org; Tue, 07 Mar 2017 17:00:55 -0500
Received: by mail-wm0-f52.google.com with SMTP id n11so16652345wma.0
 for <25740 <at> debbugs.gnu.org>; Tue, 07 Mar 2017 14:00:54 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:content-transfer-encoding:mime-version
 :subject:message-id:date:to;
 bh=Q2OKiTv0y6WULIZeBX+TN249dWUADb0Tf9gC192M2z8=;
 b=bcpZnezfzV6i39t0UlFlCUapHW5pKxSGMhySshKW3/8RstpXpdNT5Z/MuQFXKJ/p0K
 05MFrMNtJ9FK6s5shVOM22GKCqRDFmR8eFR8iaWqzhIZzVWb7L1RP4nIbuMBMSg85kON
 63c0kY0pWq4QCd4fb0/fgdvsx+0Vv9ubRXnrAPSzz8lwp6O/MnhaHhLJ5QOrVTKW7rQH
 80E5nLryptDUtVK+z6QtCNz3P1CWEtD67VEq4/3vdsiAnBQE81YkNiCwwqlzLmeRVmk9
 DcC/e05zhrZGNk4Do/WBIFOkcv4CuPpjHLlknZIViPiURMcWFBZr5HR9UHxhkU7W6qrE
 OtCQ==
X-Gm-Message-State: AMke39loLNsyRjr+uOubKMsk6EZod5SSWe4cz9OJneGAkcG3XEaPC7znoMcQyulqgXGGRGCw
X-Received: by 10.28.167.203 with SMTP id q194mr11492059wme.111.1488924048343; 
 Tue, 07 Mar 2017 14:00:48 -0800 (PST)
Received: from [192.168.77.22] (val06-1-88-182-161-34.fbx.proxad.net.
 [88.182.161.34])
 by smtp.gmail.com with ESMTPSA id v186sm2134169wmv.2.2017.03.07.14.00.47
 for <25740 <at> debbugs.gnu.org>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 07 Mar 2017 14:00:47 -0800 (PST)
From: Christophe de Dinechin <dinechin@HIDDEN>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Subject: [PATCH] Swallow m4traces that have no file/line number
Message-Id: <466E4AC8-E690-4CFC-B8CB-2BD3699DD9F1@HIDDEN>
Date: Tue, 7 Mar 2017 23:00:46 +0100
To: 25740 <at> debbugs.gnu.org
X-Mailer: Apple Mail (2.3259)
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 25740
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

The symptoms are something like:

  Use of uninitialized value $msg in concatenation (.) or string at =
/usr/local/Cellar/autoconf/2.69/bin/autom4te line 1032.
  Use of uninitialized value $stacktrace in pattern match (m//) at =
/usr/local/Cellar/autoconf/2.69/bin/autom4te line 1032.
  unknown channel m4trace: -1- AS_VAR_APPEND(ac_configure_args, " =
'$ac_arg'")
   at =
/usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/Channels.pm line =
638.
      Autom4te::Channels::msg('m4trace: -1- =
AS_VAR_APPEND(ac_configure_args, " \'$ac_arg\'")\x{a}', undef, 'warning: =
', 'partial', 0) called at /usr/local/Cellar/autoconf/2.69/bin/autom4te =
line 1032

The root cause is m4 traces without a file/line number shown.

So instead of something like:

   m4trace:configure.ac:48: -1- ...

you have something like:

  m4trace: -1- ...

In the scenarios I ran into, this is due to some error that throws m4 =
out.
Eliminating these messages from the temporary m4 file being generated
(which will not complete anyway) is sufficient for the rest of autoconf
to complete, until it prints errors.

In my case, the final error looks like:

  common/Makefile.am:20: error: Libtool library used but 'LIBTOOL' is =
undefined
  common/Makefile.am:20:   The usual way to define 'LIBTOOL' is to add =
'LT_INIT'
  common/Makefile.am:20:   to 'configure.ac' and run 'aclocal' and =
'autoconf' again.
  common/Makefile.am:20:   If 'LT_INIT' is in 'configure.ac', make sure
  common/Makefile.am:20:   its definition is in aclocal's search path.
  autoreconf: automake failed with exit status: 1

But I've seen various reports for other root causes that ran into the =
same
problem (see bug report)

Signed-off-by: Christophe de Dinechin <dinechin@HIDDEN>
---
 bin/autom4te.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bin/autom4te.in b/bin/autom4te.in
index 964ac1a..b3f3831 100644
--- a/bin/autom4te.in
+++ b/bin/autom4te.in
@@ -821,6 +821,8 @@ EOF
   my $traces =3D new Autom4te::XFile ($tcache . $req->id, "<");
   while ($_ =3D $traces->getline)
     {
+      # Traces without file/line
+      next if (m{^m4trace: -(\d+)- ([^(]+)\((.*)$});
       # Trace with arguments, as the example above.  We don't try
       # to match the trailing parenthesis as it might be on a
       # separate line.
--=20
2.10.1 (Apple Git-78)





Information forwarded to bug-automake@HIDDEN:
bug#25740; Package automake. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Feb 2017 16:25:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 15 11:25:41 2017
Received: from localhost ([127.0.0.1]:41241 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ce2Oj-0000Ki-0c
	for submit <at> debbugs.gnu.org; Wed, 15 Feb 2017 11:25:41 -0500
Received: from eggs.gnu.org ([208.118.235.92]:51971)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dinechin@HIDDEN>) id 1cdvTk-0003ZR-TS
 for submit <at> debbugs.gnu.org; Wed, 15 Feb 2017 04:02:25 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <dinechin@HIDDEN>) id 1cdvTb-0002kW-8s
 for submit <at> debbugs.gnu.org; Wed, 15 Feb 2017 04:02:19 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: **
X-Spam-Status: No, score=2.4 required=5.0 tests=BAYES_50,RCVD_IN_SORBS_SPAM,
 URI_HEX autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:42500)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <dinechin@HIDDEN>) id 1cdvTb-0002kH-5d
 for submit <at> debbugs.gnu.org; Wed, 15 Feb 2017 04:02:15 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42931)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <dinechin@HIDDEN>) id 1cdvTZ-00034d-6o
 for bug-automake@HIDDEN; Wed, 15 Feb 2017 04:02:14 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <dinechin@HIDDEN>) id 1cdvTV-0002hT-Ub
 for bug-automake@HIDDEN; Wed, 15 Feb 2017 04:02:13 -0500
Received: from mail-wm0-f47.google.com ([74.125.82.47]:38595)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <dinechin@HIDDEN>) id 1cdvTV-0002gb-Ob
 for bug-automake@HIDDEN; Wed, 15 Feb 2017 04:02:09 -0500
Received: by mail-wm0-f47.google.com with SMTP id r141so35287837wmg.1
 for <bug-automake@HIDDEN>; Wed, 15 Feb 2017 01:02:08 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:content-transfer-encoding:mime-version
 :subject:message-id:date:to;
 bh=Jm/+fIZ0f4aO3whie1deHbnnmPPjKMiNuH9M6Zny5cY=;
 b=I82gGYcx3YKwj9DHQR0Jo3vkw8lvUnr872CZKygSUgHKoCHNscU+8RJheP3GTt+Ofq
 s6s+WlP8nigqHYP+JRBpstxpDzaFptTQt7ZidUhQpupr3n+54xBLoFfrU7lEfH7WifMe
 Rcb+qEwI/Gapi3lJy8PLXGvFisY8sfhSdi7pr2bFiEC6EyeXfwgYx7aw2LF+mVu+OmJg
 CFOg62yB9nV4tSRspvcmPKLAsF17za1zl/zlyM8oSygM1L90zFjlHaW8EUaFmz/ghg7Y
 LdntmTGPEbrQ3EHx/m58i0Xd/sOMBFDNaVOGv5lBW8em9dZdxXVbulP8xmrcO20E8OBD
 gzyg==
X-Gm-Message-State: AMke39lc291WJ//zh5ooaTZiGcrMk739RvOavlVnqztEcqylayC7+rjniIlDR5RhiE8Wt/qA
X-Received: by 10.28.229.193 with SMTP id c184mr7537169wmh.83.1487149327387;
 Wed, 15 Feb 2017 01:02:07 -0800 (PST)
Received: from [192.168.77.22] (val06-1-88-182-161-34.fbx.proxad.net.
 [88.182.161.34])
 by smtp.gmail.com with ESMTPSA id w16sm6705659wmd.4.2017.02.15.01.02.06
 for <bug-automake@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 15 Feb 2017 01:02:06 -0800 (PST)
From: Christophe de Dinechin <dinechin@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Subject: Error reporting with confess mangles messages
Message-Id: <A80C6E4E-93C7-4AD9-84CE-04870F4715AA@HIDDEN>
Date: Wed, 15 Feb 2017 10:02:03 +0100
To: bug-automake@HIDDEN
X-Mailer: Apple Mail (2.3259)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 15 Feb 2017 11:25:40 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.8 (--)

I had the following output from running autogen.sh in the spice project =
on macOS:

Use of uninitialized value $msg in concatenation (.) or string at =
/usr/local/Cellar/autoconf/2.69/bin/autom4te line 1032.
Use of uninitialized value $stacktrace in pattern match (m//) at =
/usr/local/Cellar/autoconf/2.69/bin/autom4te line 1032.
unknown channel m4trace: -1- AS_VAR_APPEND(ac_configure_args, " =
'$ac_arg'")
 at /usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/Channels.pm =
line 638.
    Autom4te::Channels::msg('m4trace: -1- =
AS_VAR_APPEND(ac_configure_args, " \'$ac_arg\'")\x{a}', undef, 'warning: =
', 'partial', 0) called at /usr/local/Cellar/autoconf/2.69/bin/autom4te =
line 1032

This is with automake 1.15 and autoconf 2.69, installed using Homebrew.

Google search showed that this kind of error pops up rather frequently, =
here are a few examples:
	https://github.com/jedisct1/libsodium/issues/217
	https://lists.samba.org/archive/samba/2009-November/152184.html
	=
https://lists.gnu.org/archive/html/autoconf/2016-12/msg00003.html
	=
http://lists-archives.com/samba/49430-autogen-sh-failing-over-samba-share.=
html
	http://dangerousprototypes.com/forum/viewtopic.php?f=3D37&t=3D3957=

	=
http://samba.2283325.n4.nabble.com/autogen-sh-failing-over-samba-share-td2=
456468.html

Notice how in at least two cases, there is no follow up, because the =
message gives no clue at what is actually happening.

I added the following instrumentation in autom4te around line 1015:

  open (my $fh, '>', '/tmp/perldebug');
  print $fh "-- Begin warnings --\n";
  print $fh contents ("$tmp/warnings=E2=80=9D);
  print $fh "-- End warnings --\n";
  print $fh "Separator '$separator'\n";
  close($fh);

  # Swallow excessive newlines.
  for (split (/\n*$separator\n*/o, contents ("$tmp/warnings")))

What this showed is that, at that stage, the message was apparently =
perfectly legitimate, but nowhere to be found on the console output:

 -- Begin warnings =E2=80=94
obsolete::configure.ac:34::'AM_CONFIG_HEADER': this macro is obsolete.
You should use the 'AC_CONFIG_HEADERS' macro =
instead.::/usr/local/Cellar/automake/1.15/share/aclocal-1.15/obsolete.m4:1=
5: AM_CONFIG_HEADER is expanded from...
configure.ac:34: the top level
------------------------- END OF WARNING -------------------------


obsolete::configure.ac:189::The macro `AC_TRY_CPP' is obsolete.
You should run autoupdate.::../../lib/autoconf/general.m4:2530: =
AC_TRY_CPP is expanded from...
configure.ac:189: the top level
------------------------- END OF WARNING -------------------------


obsolete::configure.ac:286::AC_OUTPUT should be used without arguments.
You should run autoupdate.::
------------------------- END OF WARNING -------------------------


m4trace: -1- AS_VAR_APPEND(ac_configure_args, " '$ac_arg'")
-- End warnings =E2=80=94


The original message seems to be coming from Channels.pm around line =
642, a line that reads:

  confess "unknown channel $channel" unless exists $channels{$channel};

The same kind of instrumentation added there

	open (my $fh, '>', '/tmp/perldebug');
	print $fh "Unknown channel $channel - We are going to die =
horribly\n";
 	close($fh);

This instrumentation showed that the channel name at that level is legit =
(it=E2=80=99s =E2=80=9Cfatal=E2=80=9D), nothing like the mangled =
=E2=80=98m4trace: -1=E2=80=A6=E2=80=99 mangled stuff that is later sent =
to the console:

	Unknown channel fatal - We are going to die horribly

I also checked that the Perl installation is not the problem with the =
following test:

	use Carp qw/croak confess/;
	sub zoo ()
	{
	    confess "Boo, I'm dead";
	}
	sub bar () { zoo(); }
	sub foo () { bar(); }
	foo();

This results in the expected output:

	Boo, I'm dead at /tmp/truc.pl line 4.
	    main::zoo() called at /tmp/truc.pl line 6
	    main::bar() called at /tmp/truc.pl line 7
	    main::foo() called at /tmp/truc.pl line 8

I=E2=80=99ll keep investigating, but I thought this was worth a bug =
report as is.=




Acknowledgement sent to Christophe de Dinechin <dinechin@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-automake@HIDDEN. Full text available.
Report forwarded to bug-automake@HIDDEN:
bug#25740; Package automake. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 16 Jul 2017 00:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.