Similar error is also found in automake-1.16.1 make check with bison 3.3, such as
checking for bison... bison -y checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: executing depfiles commands + make /bin/sh ../ylwrap ../zardoz.yy y.tab.c zardoz.cc y.tab.h `echo zardoz.cc | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output zardoz.output -- bison -y -d /tmp/automake-1.16.1/t/yacc-bison-skeleton-cxx.dir/build/../zardoz.yy:1.1-9: error: POSIX Yacc does not support %skeleton [-Werror=yacc] %skeleton "lalr1.cc" ^~~~~~~~~ /tmp/automake-1.16.1/t/yacc-bison-skeleton-cxx.dir/build/../zardoz.yy:1.11-20: error: POSIX Yacc does not support string literals [-Werror=yacc] %skeleton "lalr1.cc" ^~~~~~~~~~ /tmp/automake-1.16.1/t/yacc-bison-skeleton-cxx.dir/build/../zardoz.yy:2.1-8: error: POSIX Yacc does not support %defines [-Werror=yacc] %defines ^~~~~~~~ make: *** [Makefile:414: zardoz.cc] Error 1 + am_exit_trap 2 Regards, --- Kiyoshi ----- Original Message ----- > From: Kiyoshi KANAZAWA <yoi_no_myou...@yahoo.co.jp> > To: "bug-bison@gnu.org" <bug-bison@gnu.org> > Cc: > Date: 2019/1/27, Sun 12:58 > Subject: [bison-3.3] sideeffect to flex ? > > Hello, > > Trying to check other OSS's after installing bison-3.3, > and found flex-2.6.4's make ckech failes. > This is not occur with bison-3.2.4. > I can not distinguish which has the problem. > > $ uname -a > SunOS xxx 5.11 11.3 i86pc i386 i86pc > > > $ gcc --version > gcc (GCC) 7.4.0 > > > Error in flex-2.6.4 is as follows. > === > gcc -DHAVE_CONFIG_H -I. -I../src -I../src -I../src -g -O2 -MT basic_r.o > -MD > -MP -MF $depbase.Tpo -c -o basic_r.o basic_r.c &&\ > mv -f $depbase.Tpo $depbase.Po > /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o basic_r basic_r.o > > -lm > libtool: link: gcc -g -O2 -o basic_r basic_r.o -lm > ../src/flex -o bison_nr_scanner.c bison_nr_scanner.l > /bin/sh ../build-aux/ylwrap bison_nr_parser.y y.tab.c bison_nr_parser.c > y.tab.h > `echo bison_nr_parser.c | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e > s/c++$/h++/ -e s/c$/h/` y.output bison_nr_parser.output -- bison -y -d -p > test > /tmp/flex-2.6.4/tests/bison_nr_parser.y:64.15-17: error: POSIX Yacc does not > support string literals [-Werror=yacc] > %token EQUAL "=" > ^~~ > /tmp/flex-2.6.4/tests/bison_nr_parser.y:65.15-17: error: POSIX Yacc does not > support string literals [-Werror=yacc] > %token COLON ":" > ^~~ > /tmp/flex-2.6.4/tests/bison_nr_parser.y:66.15-17: error: POSIX Yacc does not > support string literals [-Werror=yacc] > %token SPACE " " > ^~~ > make[2]: *** [Makefile:2124: bison_nr_parser.c] Error 1 > make[2]: Leaving directory '/tmp/flex-2.6.4/tests' > make[1]: *** [Makefile:2731: check-am] Error 2 > make[1]: Leaving directory '/tmp/flex-2.6.4/tests' > make: *** [Makefile:533: check-recursive] Error 1 > === > > > Regards, > > --- Kiyoshi >