GNU bug report logs - #9708
aclocal -W error does not treat warnings as errors

Previous Next

Package: automake;

Reported by: Křištof Želechovski <giecrilj <at> stegny.2a.pl>

Date: Sun, 9 Oct 2011 15:21:02 UTC

Severity: normal

Tags: wontfix

Done: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Křištof Želechovski <giecrilj <at> stegny.2a.pl>
To: bug-automake <at> gnu.org
Subject: aclocal -W error does not treat warnings as errors
Date: Sun, 9 Oct 2011 17:27:32 +0200
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 >




This bug report was last modified 13 years and 199 days ago.

Previous Next


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