bug-bison
[Top][All Lists]
Advanced

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

Re: Bison 3.7.90 (beta)


From: Dagobert Michelsen
Subject: Re: Bison 3.7.90 (beta)
Date: Wed, 18 Aug 2021 16:28:46 +0200

Hi Akim,

Am 17.08.2021 um 08:59 schrieb Akim Demaille <akim@lrde.epita.fr>:
>> Le 13 août 2021 à 09:50, Dagobert Michelsen <dam@opencsw.org> a écrit :
>> and there are also errors on Solaris 10 Sparc:
>> YACC     examples/c/lexcalc/parse.c
>> /home/dam/mgar/pkg/bison/trunk/work/solaris10-sparc/build-isa-sparcv8plus/bison-3.7.90/examples/c/lexcalc/parse.y:
>>  error: 1 nonterminal useless in grammar [-Werror=other]
>> /home/dam/mgar/pkg/bison/trunk/work/solaris10-sparc/build-isa-sparcv8plus/bison-3.7.90/examples/c/lexcalc/parse.y:
>>  error: 1 rule useless in grammar [-Werror=other]
>> /home/dam/mgar/pkg/bison/trunk/work/solaris10-sparc/build-isa-sparcv8plus/bison-3.7.90/examples/c/lexcalc/parse.y:79.25-27:
>>  error: start symbol NUM does not derive any sentence  
>>  79 | %start input expression NUM
>>     |                         ^~~  
>> gmake[3]: *** [Makefile:9538: examples/c/lexcalc/parse.c] Error 1
> 
> That makes no sense to me: bison is emitting an incorrect
> diagnostic.  I absolutely do not understand how this is possible.
> Except if we actually are not running the shipped bison, but another
> one.
> 
> Could you please run `make check-examples V=1`?

Sure:

dam@unstable10s 
[unstable10s]:/home/dam/mgar/pkg/bison/trunk/work/solaris10-sparc/build-isa-sparcv8plus/bison-3.7.90
 > gmake check-examples V=1 
/bin/bash ./build-aux/ylwrap examples/c/lexcalc/parse.y y.tab.c 
examples/c/lexcalc/parse.c y.tab.h `echo examples/c/lexcalc/parse.c | sed -e 
s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output 
examples/c/lexcalc/parse.output -- ./tests/bison -o y.tab.c --defines -Werror 
-Wall,dangling-alias --report=all --no-lines 
/home/dam/mgar/pkg/bison/trunk/work/solaris10-sparc/build-isa-sparcv8plus/bison-3.7.90/examples/c/lexcalc/parse.y:
 error: 1 nonterminal useless in grammar [-Werror=other]
/home/dam/mgar/pkg/bison/trunk/work/solaris10-sparc/build-isa-sparcv8plus/bison-3.7.90/examples/c/lexcalc/parse.y:
 error: 1 rule useless in grammar [-Werror=other]
/home/dam/mgar/pkg/bison/trunk/work/solaris10-sparc/build-isa-sparcv8plus/bison-3.7.90/examples/c/lexcalc/parse.y:79.25-27:
 error: start symbol NUM does not derive any sentence
   79 | %start input expression NUM
      |                         ^~~
gmake: *** [Makefile:9538: examples/c/lexcalc/parse.c] Error 1


> BTW, please also run `make check-tests`.  Because you had errors in the tests 
> of the examples, the main test suite was not run.

There are quite a lot of failures:
  testsuite: 4 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 
487 48 500 failed

The log is attached:

Attachment: testsuite.log
Description: Binary data


>> The compiler in Oracle Studio 12.6 raised some time ago as discussed in
>> https://lists.gnu.org/archive/html/bug-bison/2019-10/msg00045.html
> 
> But did that cause `make` to fail?  Or is it just warnings?

Well, versions below 12.6 did fail and 12.6 was required with the earlier 
version
of bison.


Best regards

  — Dago


-- 
"You don't become great by trying to be great, you become great by wanting to 
do something,
and then doing it so hard that you become great in the process." - xkcd #896


reply via email to

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