bug-bison
[Top][All Lists]
Advanced

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

Re: [bison-3.3.90] make check fails on Solaris 11.3 x86/x64


From: Akim Demaille
Subject: Re: [bison-3.3.90] make check fails on Solaris 11.3 x86/x64
Date: Mon, 29 Apr 2019 22:31:46 +0200

Hi Kiyoshi,

> Le 29 avr. 2019 à 07:57, Kiyoshi KANAZAWA <address@hidden> a écrit :
> 
> Hello,
> 
> Tried bison-3.3.90.
> 
> $ uname -a
> SunOS hidden 5.11 11.3 i86pc i386 i86pc
> 
> $ gcc --version
> gcc (GCC) 7.4.0
> 
> $ ./configure CC=gcc
> $ make
> $ make check
> fails as
> 
> 127: Tabulations and multibyte characters            FAILED 
> (diagnostics.at:168)
> 444: Calculator lalr1.d                              FAILED (calc.at:849)
> 445: Calculator D                                    FAILED (calc.at:858)
> 446: Calculator D parse.error=verbose api.prefix={calc} %verbose  FAILED 
> (calc.at:861)

The D part is quite easy (and should have been avoided, sorry about
that).  I'll install the patch below.


The other part (127) is more of a problem:

> 127. diagnostics.at:168: testing Tabulations and multibyte characters ...
> en_US.UTF-8
> ./diagnostics.at:168: perl -p -e 's{</?\w+>}{}g' <experr.orig >experr
> ./diagnostics.at:168: LC_ALL=en_US.UTF-8 bison -fcaret -Wall input.y
> --- experr      2019-04-29 14:18:12.974122904 +0000
> +++ /tmp/bison-3.3.90/tests/testsuite.dir/at-groups/127/stderr  2019-04-29 
> 14:18:13.074395653 +0000
> @@ -10,9 +10,9 @@
>  input.y:14.4-17: warning: empty rule without %empty [-Wempty-rule]
>     14 | d: {éééééééééééé}
>        |    ^~~~~~~~~~~~~~
> -input.y:15.4-17: warning: empty rule without %empty [-Wempty-rule]
> +input.y:15.4-20: warning: empty rule without %empty [-Wempty-rule]
>     15 | e: {∇⃗×𝐸⃗ = -∂𝐵⃗/∂t}
> -      |    ^~~~~~~~~~~~~~
> +      |    ^~~~~~~~~~~~~~~~~
>  input.y:16.4-17: warning: empty rule without %empty [-Wempty-rule]
>     16 | f: {   42      }
>        |    ^~~~~~~~~~~~~~
> 127. diagnostics.at:168: 127. Tabulations and multibyte characters 
> (diagnostics.at:168): FAILED (diagnostics.at:168)

it shows that mbswidth does not work properly in your environment
with LC_ALL=en_US.UTF-8.

Could you tell me what

$ LC_ALL=en_US.UTF-8 locale

gives?  Thanks!


commit 15f9f8c85310577874a000bcb0b1773e4f23b8b3
Author: Akim Demaille <address@hidden>
Date:   Mon Apr 29 18:14:53 2019 +0200

    tests: don't require a D compiler
    
    Reported by Kiyoshi Kanazawa.
    http://lists.gnu.org/archive/html/bug-bison/2019-04/msg00018.html
    
    * tests/atlocal.in (BISON_DC_WORKS): New.
    * tests/local.at (AT_COMPILE_D): Use it.

diff --git a/tests/atlocal.in b/tests/atlocal.in
index f7db41e9..d8141cb9 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -118,8 +118,14 @@ fi
 ## Other.  ##
 ## ------- ##
 
+# Empty if no D compiler was found.
 : ${DC='@DC@'}
 : ${DCFLAGS='@DCFLAGS@'}
+if test x"$DC" = x; then
+    BISON_DC_WORKS=false
+else
+    BISON_DC_WORKS=true
+fi
 
 # Empty if no javac was found
 : ${CONF_JAVAC='@CONF_JAVAC@'}
diff --git a/tests/local.at b/tests/local.at
index 1f55bedc..9c0e85e3 100644
--- a/tests/local.at
+++ b/tests/local.at
@@ -977,6 +977,7 @@ AT_CHECK(m4_join([ ],
 # with trailing ".o" removed, and ".cc" appended.
 m4_define([AT_COMPILE_D],
 [AT_KEYWORDS(d)
+AT_SKIP_IF([[! $BISON_DC_WORKS]])
 AT_CHECK(m4_join([ ],
                  [$DC $DCFLAGS $3],
                  [m4_bmatch([$1], [[.]], [-c])],




reply via email to

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