GNU bug report logs -
#9708
aclocal -W error does not treat warnings as errors
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9708 in the body.
You can then email your comments to 9708 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-automake <at> gnu.org
:
bug#9708
; Package
automake
.
(Sun, 09 Oct 2011 15:21:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Křištof Želechovski <giecrilj <at> stegny.2a.pl>
:
New bug report received and forwarded. Copy sent to
bug-automake <at> gnu.org
.
(Sun, 09 Oct 2011 15:21:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I would expect aclocal to fail and terminate the build script if warnings appear [1]; however, it does not happen:
== Steps to reproduce ==
{ cat >configure.ac <<'#>configure.ac' && aclocal -W error && echo $?; }
AC_INIT([name],[0.0.1])
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE
AC_COMPILE_IFELSE()
AC_USE_SYSTEM_EXTENSIONS
#>configure.ac
== Actual results ==
configure.ac:26: warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
0
== Expected results ==
configure.ac:26: warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
== Workaround ==
{ WARNINGS=error aclocal; }
aclocal: autom4te failed with exit status: 1
== Remarks ==
It seems that aclocal fails to pass -Werror to autom4te.
___
[1] <URL: http://sources.redhat.com/automake/automake.html#aclocal-Options >
Information forwarded
to
bug-automake <at> gnu.org
:
bug#9708
; Package
automake
.
(Mon, 10 Oct 2011 10:46:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
On Sunday 09 October 2011, Křištof Želechovski wrote:
> I would expect aclocal to fail and terminate the build script if warnings appear
> [1]; however, it does not happen:
>
> == Steps to reproduce ==
> { cat >configure.ac <<'#>configure.ac' && aclocal -W error && echo $?; }
> AC_INIT([name],[0.0.1])
> AC_CANONICAL_TARGET
> AM_INIT_AUTOMAKE
> AC_COMPILE_IFELSE()
> AC_USE_SYSTEM_EXTENSIONS
> #>configure.ac
>
> == Actual results ==
> configure.ac:26: warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
> 0
>
> == Expected results ==
> configure.ac:26: warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
>
> == Workaround ==
> { WARNINGS=error aclocal; }
> aclocal: autom4te failed with exit status: 1
>
> == Remarks ==
> It seems that aclocal fails to pass -Werror to autom4te.
>
Hi Křištof, thanks for the report and the diagnosis.
But honestly, I'm not sure it would be a good idea to "fix" the current
aclocal behaviour. In fact, aclocal should IMHO be concerned only with
warnings coming from the distinctive functions it performs (e.g., when
it detects an underquoted macro in an .m4 files it has scanned, or when
it finds a macro defined in acinclude.m4 that is not really used in
configure.ac); but aclocal should not be too picky about warnings coming
from other tools (i.e., it's good to pass them along, but not to choke
on them, even when `-Werror' is in use). So, if one wants the autoconf
warnings to be treated as errors, one should pass the `-Werror' flag to
the autoconf invocation.
That said, a documentation patch clarifying the current behaviour of
aclocal and the rationale behind it might be nice. I might give it a
try, but it's quite low-priority. Anyway, patches welcome.
Regards,
Stefano
Information forwarded
to
bug-automake <at> gnu.org
:
bug#9708
; Package
automake
.
(Mon, 10 Oct 2011 10:46:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-automake <at> gnu.org
:
bug#9708
; Package
automake
.
(Mon, 02 Jan 2012 13:58:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 9708 <at> debbugs.gnu.org (full text, mbox):
tags 9708 wontfix
close 9708
thanks
I had forgotten to correctly tag and close this bug report.
I'm doing that now. Sorry for the delay.
Regards,
Stefano
Added tag(s) wontfix.
Request was from
Stefano Lattarini <stefano.lattarini <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Mon, 02 Jan 2012 13:58:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
9708 <at> debbugs.gnu.org and Křištof Želechovski <giecrilj <at> stegny.2a.pl>
Request was from
Stefano Lattarini <stefano.lattarini <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Mon, 02 Jan 2012 13:58:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 31 Jan 2012 12:24:02 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 197 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.