AC_PROG_LEX issue when compiling with -Werror

2022-07-14 Thread Tobias Brunner
Hi all, On FreeBSD, the Autoconf port was recently updated to 2.71. This had the side-effect that our automated CI builds failed on that platform because our lexers were not generated anymore. As it turned out, the reason is that we build with -Werror in CFLAGS (passed directly to the confi

Re: AC_PROG_LEX issue when compiling with -Werror

2022-07-14 Thread Paul Eggert
On 7/14/22 03:03, Tobias Brunner wrote: how to handle -Werror when we explicitly want to fail our automated builds based on warnings without affecting the tests in configure.  Is there a proper way to do this with Autoconf? The way Gnulib-using programs do it, is to not use -Werror when runnin

Re: AC_PROG_LEX issue when compiling with -Werror

2022-07-14 Thread Todd C. Miller
On Thu, 14 Jul 2022 12:03:42 +0200, Tobias Brunner wrote: > This is caused by the following warnings turned errors from the > generated lexer: > > lex.yy.c:673:13: error: misleading indentation; statement is not part of > the previous 'if' [-Werror,-Wmisleading-indentation] > if ( !

Re: AC_PROG_LEX issue when compiling with -Werror

2022-07-14 Thread Todd C. Miller
Sorry, I missed the fact that you are trying to build on FreeBSD, not develop FreeBSD itself. Still, I'd suggest filing a bug with FreeBSD to fix their flex.skl. - todd

Re: AC_PROG_LEX issue when compiling with -Werror

2022-07-14 Thread Tobias Brunner
On 14.07.22 15:50, Paul Eggert wrote: On 7/14/22 03:03, Tobias Brunner wrote: how to handle -Werror when we explicitly want to fail our automated builds based on warnings without affecting the tests in configure.  Is there a proper way to do this with Autoconf? The way Gnulib-using programs do

Re: AC_PROG_LEX issue when compiling with -Werror

2022-07-14 Thread Tobias Brunner
On 14.07.22 15:56, Todd C. Miller wrote: On Thu, 14 Jul 2022 12:03:42 +0200, Tobias Brunner wrote: This is caused by the following warnings turned errors from the generated lexer: lex.yy.c:673:13: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-i

Re: AC_PROG_LEX issue when compiling with -Werror

2022-07-14 Thread Zack Weinberg
On Thu, Jul 14, 2022, at 9:56 AM, Todd C. Miller wrote: > On Thu, 14 Jul 2022 12:03:42 +0200, Tobias Brunner wrote: >> [AC_PROG_LEX fails because of] the following warnings turned errors from the >> generated lexer: >> >> lex.yy.c:673:13: error: misleading indentation; statement is not part of >>