Hi Dennis, > Le 13 août 2020 à 10:49, Dennis Clarke <dcla...@blastwave.org> a écrit : > > On 8/3/20 1:51 AM, Akim Demaille wrote: >> >> >>> Le 3 août 2020 à 05:18, Richard Stallman <r...@gnu.org> a écrit : >>> >>> Condolences on the new release ;-{. >> >> Exactly :) And unfortunately I already know there will be more bug fix >> releases :( >> > > I was surprised to see : > > /opt/developerstudio12.6/bin/CC -std=c++11 -std=c++11 -m64 -xarch=sparc > -dalign -erroff=%none -errtags=yes -ftrap=%none -g -xcode=pic32 -m64 -mc > -xunroll=1 -xbuiltin=%none -xdepend=no -xnolibmopt -xlinkopt=0 > -xnolibmil -xregs=no%appl -xs -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS > -D_LARGEFILE64_SOURCE -L/opt/bw/lib -o examples/c++/variant-11 > examples/c++/variant_11-variant-11.o -lrt > build-aux/install-sh -c -d examples/java/calc > ./tests/bison ./examples/java/calc/Calc.y -o examples/java/calc/Calc.java > bison: extra operand '-o' > Try 'bison --help' for more information.
That's super weird, bison does not care about the position of the argument. Except in POSIX mode. Would you have this envvar set? $ bison ~bison/src/parse-gram.y -o foo.c $ POSIXLY_CORRECT=1 bison ~bison/src/parse-gram.y -o foo.c bison: extra operand '-o' Try 'bison --help' for more information. commit 067e35a8be590ef7aaee6a01a3f1c6ba71ab1eca Author: Akim Demaille <akim.demai...@gmail.com> Date: Sun Aug 30 09:38:05 2020 +0200 build: beware of POSIX mode Reported by Dennis Clarke. https://lists.gnu.org/r/bug-bison/2020-08/msg00013.html * examples/d/local.mk, examples/java/calc/local.mk, * examples/java/simple/local.mk: Pass bison's options before its argument, in case we're in POSIX mode. diff --git a/examples/d/local.mk b/examples/d/local.mk index 40f8f63a..4497e5a3 100644 --- a/examples/d/local.mk +++ b/examples/d/local.mk @@ -27,7 +27,7 @@ EXTRA_DIST += %D%/calc.test %D%/calc.d: %D%/calc.y $(dependencies) $(AM_V_GEN)$(MKDIR_P) %D% - $(AM_V_at)$(BISON) $(srcdir)/%D%/calc.y -o $@ + $(AM_V_at)$(BISON) -o $@ $(srcdir)/%D%/calc.y %D%/calc: %D%/calc.d $(AM_V_GEN) $(DC) $(DCFLAGS) -of$@ %D%/calc.d diff --git a/examples/java/calc/local.mk b/examples/java/calc/local.mk index 60fad4b9..ba370ee5 100644 --- a/examples/java/calc/local.mk +++ b/examples/java/calc/local.mk @@ -27,7 +27,7 @@ EXTRA_DIST += %D%/Calc.test %D%/Calc.java: %D%/Calc.y $(dependencies) $(AM_V_GEN)$(MKDIR_P) %D% - $(AM_V_at)$(BISON) $(srcdir)/%D%/Calc.y -o $@ + $(AM_V_at)$(BISON) -o $@ $(srcdir)/%D%/Calc.y %D%/Calc.class: %D%/Calc.java $(AM_V_GEN) $(SHELL) $(top_builddir)/javacomp.sh %D%/Calc.java diff --git a/examples/java/simple/local.mk b/examples/java/simple/local.mk index 09958dc0..8a167d8d 100644 --- a/examples/java/simple/local.mk +++ b/examples/java/simple/local.mk @@ -27,7 +27,7 @@ EXTRA_DIST += %D%/Calc.test %D%/Calc.java: %D%/Calc.y $(dependencies) $(AM_V_GEN)$(MKDIR_P) %D% - $(AM_V_at)$(BISON) $(srcdir)/%D%/Calc.y -o $@ + $(AM_V_at)$(BISON) -o $@ $(srcdir)/%D%/Calc.y %D%/Calc.class: %D%/Calc.java $(AM_V_GEN) $(SHELL) $(top_builddir)/javacomp.sh %D%/Calc.java