bug-bison
[Top][All Lists]
Advanced

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

[bison-3.3] sideeffect to flex ?


From: Kiyoshi KANAZAWA
Subject: [bison-3.3] sideeffect to flex ?
Date: Sun, 27 Jan 2019 12:58:32 +0900 (JST)

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



reply via email to

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