bug-bison
[Top][All Lists]
Advanced

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

bison problems


From: Boyd Lynn Gerber
Subject: bison problems
Date: Wed, 2 Feb 2022 10:53:22 -0700

Hello,

I need to debug errors with bison on UnixWare 7 Definitive.

without the CFLAGS="-O0 -g"

bison builds but test tests fail with

 "bison: input/output error"

trying to debug using this configure

/configure CFLAGS="-O0 -g" --disable-yacc --enable-nls \
           --with-libiconv-prefix=/usr/pkg --prefix=/usr/pkg \
           --build=i486-unknown-sysv5UnixWare7.1.4 \
           --host=i486-unknown-sysv5UnixWare7.1.4  \
           --infodir=/usr/pkg/info --mandir=/usr/pkg/man \
           --enable-option-checking=yes

I see all these errors.

updating examples/c/bistromathic/parse.output
updating examples/c/bistromathic/parse.h
  CC       examples/c/bistromathic/bistromathic-parse.o
examples/c/bistromathic/parse.c: In function 'yy_lac':
examples/c/bistromathic/parse.c:1048:18: error: 'YYSYMBOL_YYUNDEF' undeclared (first use in this function); did you mean 'YYSYMBOL_YYEMPTY'?
   if (yytoken == YYSYMBOL_YYUNDEF)
                  ^~~~~~~~~~~~~~~~
                  YYSYMBOL_YYEMPTY
examples/c/bistromathic/parse.c:1048:18: note: each undeclared identifier is reported only once for each function it appears in
examples/c/bistromathic/parse.c: In function 'yypstate_expected_tokens':
examples/c/bistromathic/parse.c:1170:20: error: 'YYSYMBOL_YYerror' undeclared (first use in this function); did you mean 'YYSYMBOL_YYEMPTY'?
       if (yysym != YYSYMBOL_YYerror && yysym != YYSYMBOL_YYUNDEF)
                    ^~~~~~~~~~~~~~~~
                    YYSYMBOL_YYEMPTY
examples/c/bistromathic/parse.c:1170:49: error: 'YYSYMBOL_YYUNDEF' undeclared (first use in this function); did you mean 'YYSYMBOL_YYerror'?
       if (yysym != YYSYMBOL_YYerror && yysym != YYSYMBOL_YYUNDEF)
                                                 ^~~~~~~~~~~~~~~~
                                                 YYSYMBOL_YYerror
examples/c/bistromathic/parse.c: In function 'yypush_parse':
examples/c/bistromathic/parse.c:1522:17: error: 'TOK_YYEOF' undeclared (first use in this function); did you mean 'TOK_YYEMPTY'?
   if (yychar <= TOK_YYEOF)
                 ^~~~~~~~~
                 TOK_YYEMPTY
examples/c/bistromathic/parse.c:1525:17: error: 'YYSYMBOL_YYEOF' undeclared (first use in this function); did you mean 'YYSYMBOL_YYEMPTY'?
       yytoken = YYSYMBOL_YYEOF;
                 ^~~~~~~~~~~~~~
                 YYSYMBOL_YYEMPTY
examples/c/bistromathic/parse.c:1528:22: error: 'TOK_YYerror' undeclared (first use in this function); did you mean 'TOK_YYEOF'?
   else if (yychar == TOK_YYerror)
                      ^~~~~~~~~~~
                      TOK_YYEOF
examples/c/bistromathic/parse.c:1534:16: error: 'TOK_YYUNDEF' undeclared (first use in this function); did you mean 'TOK_YYEOF'?
       yychar = TOK_YYUNDEF;
                ^~~~~~~~~~~
                TOK_YYEOF
examples/c/bistromathic/parse.c:1535:17: error: 'YYSYMBOL_YYerror' undeclared (first use in this function); did you mean 'YYSYMBOL_YYEOF'?
       yytoken = YYSYMBOL_YYerror;
                 ^~~~~~~~~~~~~~~~
                 YYSYMBOL_YYEOF
examples/c/bistromathic/parse.c:437:6: error: 'YYSYMBOL_YYUNDEF' undeclared (first use in this function); did you mean 'YYSYMBOL_YYEOF'?
    : YYSYMBOL_YYUNDEF)
      ^
examples/c/bistromathic/parse.c:1541:17: note: in expansion of macro 'YYTRANSLATE'
       yytoken = YYTRANSLATE (yychar);
                 ^~~~~~~~~~~
examples/c/bistromathic/parse.c:1618:41: error: 'YYSTYPE {aka union YYSTYPE}' has no member named 'TOK_exp'
           { printf ("%.10g\n", (yyvsp[0].TOK_exp)); }
                                         ^
examples/c/bistromathic/parse.c:1626:29: error: 'YYSTYPE {aka union YYSTYPE}' has no member named 'TOK_exp' { (yyval.TOK_exp) = (yyvsp[0].TOK_VAR)->value.var; }
                             ^
examples/c/bistromathic/parse.c:1626:50: error: 'YYSTYPE {aka union YYSTYPE}' has no member named 'TOK_VAR' { (yyval.TOK_exp) = (yyvsp[0].TOK_VAR)->value.var; }
                                                  ^
examples/c/bistromathic/parse.c:1630:29: error: 'YYSTYPE {aka union YYSTYPE}' has no member named 'TOK_exp' { (yyval.TOK_exp) = (yyvsp[0].TOK_exp); (yyvsp[-2].TOK_VAR)->value.var = (yyvsp[0].TOK_exp); }
                             ^
examples/c/bistromathic/parse.c:1630:50: error: 'YYSTYPE {aka union YYSTYPE}' has no member named 'TOK_exp' { (yyval.TOK_exp) = (yyvsp[0].TOK_exp); (yyvsp[-2].TOK_VAR)->value.var = (yyvsp[0].TOK_exp); }
                                                  ^
examples/c/bistromathic/parse.c:1630:71: error: 'YYSTYPE {aka union YYSTYPE}' has no member named 'TOK_VAR' { (yyval.TOK_exp) = (yyvsp[0].TOK_exp); ... examples/c/bistromathic/parse.c:2292:26: error: 'TOK_FUN' undeclared (first use in this f
unction)
           if (s->type == TOK_FUN && strncmp (text, s->name, len) == 0)
                          ^~~~~~~
examples/c/bistromathic/parse.c:2295:12: error: 'YYSYMBOL_VAR' undeclared (first use in t
his function); did you mean 'YYSYMBOL_FUN'?
       case YYSYMBOL_VAR:
            ^~~~~~~~~~~~
            YYSYMBOL_FUN
examples/c/bistromathic/parse.c:2297:26: error: 'TOK_VAR' undeclared (first use in this function); did you mean 'TOK_FUN'?
           if (s->type == TOK_VAR && strncmp (text, s->name, len) == 0)
                          ^~~~~~~
                          TOK_FUN



I was to to get the latest source, I did the following

git clone https://git.savannah.gnu.org/git/bison.git
cd bison
./bootstrap
git submodule update --init
./bootstrap
rm build-aux/javaexec.sh.in
ln -s gnulib/build-aux/javaexec.sh.in build-aux/javaexec.sh.in


configure: creating ./config.status
config.status: creating src/yacc
config.status: error: cannot find input file: `build-aux/javacomp.sh.in'

find * -name javaexec.sh.in -exec ls -la {} \;#
-rw-r--r-- 1 gerberb dos 2464 Feb 2 12:16 build-aux/javaexec.sh.in -rw-r--r-- 1 gerberb dos 2464 Feb 2 12:16 gnulib/build-aux/javaexec.sh.in

or
find * -name javaexec.sh.in -exec ls -la {} \;
lrwxrwxrwx 1 gerberb dos 31 Feb 2 12:10 build-aux/javaexec.sh.in -> gnu
lib/build-aux/javaexec.sh.in
-rw-r--r-- 1 gerberb dos 2464 Feb 2 11:25 gnulib/build-aux/javaexec.sh.in

I can't get past the error

cannot find input file: `build-aux/javacomp.sh.in'

but is is there as shown above.

I need to debug the biso-3.8.2 test failures.

Regards,

--
Boyd Gerber <gerberb@zenez.com> 801 849-0213
ZENEZ   1042 East Fort Union #135, Midvale Utah  84047




reply via email to

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