bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bison-3.8] bug or side effect to flex & automake


From: Kiyoshi KANAZAWA
Subject: [bison-3.8] bug or side effect to flex & automake
Date: Wed, 8 Sep 2021 11:11:46 +0900 (JST)

Hello,

Installed bison-3.8, but I'm afraid it is has bug or side effect to flex-2.6.4 
& automake-1.16.4.

$ uname -a
SunOS hidden 5.11 11.3 i86pc i386 i86pc

$ gcc --version
gcc (GCC) 10.3.0

After installing bison-3.8, detected the following make check error, which did 
not with bison-3.7.6.

(1) flex-2.6.4
mv -f $depbase.Tpo $depbase.Po
depbase=`echo bison_nr_parser.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -m32 -DHAVE_CONFIG_H -I. -I../src  -I../src -I../src    -MT 
bison_nr_parser.o -MD -MP -MF $depbase.Tpo -c -o bison_nr_parser.o 
bison_nr_parser.c &&\
mv -f $depbase.Tpo $depbase.Po
bison_nr_parser.c:70:25: error: conflicting types for 'testerror'
   70 | #define yyerror         testerror
      |                         ^~~~~~~~~
bison_nr_parser.y:40:5: note: in expansion of macro 'yyerror'
   40 | int yyerror(const char* msg);
      |     ^~~~~~~
In file included from bison_nr_parser.y:33:
bison_nr_parser.h:110:6: note: previous declaration of 'testerror' was here
  110 | void testerror (const YYLTYPE *yyllocp, const char *msg);
      |      ^~~~~~~~~
bison_nr_parser.c:70:25: error: conflicting types for 'testerror'
   70 | #define yyerror         testerror
      |                         ^~~~~~~~~
bison_nr_parser.y:93:5: note: in expansion of macro 'yyerror'
   93 | int yyerror(const char* msg) {
      |     ^~~~~~~
In file included from bison_nr_parser.y:33:
bison_nr_parser.h:110:6: note: previous declaration of 'testerror' was here
  110 | void testerror (const YYLTYPE *yyllocp, const char *msg);
      |      ^~~~~~~~~
make[2]: *** [Makefile:2076: bison_nr_parser.o] Error 1

And so on.

(2) automake-1.16.4
FAIL: t/cond35.sh
FAIL: t/silent-yacc.sh
FAIL: t/silent-yacc-headers.sh
FAIL: t/subpkg-yacc.sh
FAIL: t/suffix10.tap 7 - make all
FAIL: t/yacc-misc.sh
FAIL: t/yacc-dry.sh
FAIL: t/yacc-basic.sh
FAIL: t/yacc-vpath.sh
FAIL: t/yacc-clean.sh
FAIL: t/yacc-d-basic.sh
FAIL: t/yacc-deleted-headers.sh
FAIL: t/yacc-depend.sh
FAIL: t/yacc-depend2.sh
FAIL: t/yacc-d-vpath.sh
FAIL: t/yacc-dist-nobuild.sh
FAIL: t/yacc-dist-nobuild-subdir.sh
FAIL: t/yacc-line.sh
FAIL: t/yacc-mix-c-cxx.sh
FAIL: t/yacc-nodist.sh
FAIL: t/yacc-subdir.sh
FAIL: t/yflags-cmdline-override.sh
FAIL: t/yflags-force-override.sh

Also have 2 other failures, which occurs also with bison-3.7.6.
FAIL: t/lex-clean-cxx.sh
FAIL: t/lex-depend-cxx.sh


Regards,

--- Kiyoshi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]