bug-gettext
[Top][All Lists]
Advanced

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

[bug-gettext] Fwd: make fails with invalid directive errors when running


From: Amit Chaudhuri
Subject: [bug-gettext] Fwd: make fails with invalid directive errors when running ylwrap
Date: Thu, 15 Mar 2018 13:31:27 +0000

Hi,

an update: I now understand that %empty is a bison specific extension
that does not work with yacc. On my system, I have bison 2.7-11.15.
However, the ylwrap script is invoking bison with a -y option. I
believe this instructs bison to emulate yacc which causes bison to
object to %empty.

If I comment out the %empty directives things are fine.

This seems like a bug to me. But is it the invocation of bison with -y
or is it the syntax of the grammer file?

Regards,


Amit

---------- Forwarded message ----------
From: Amit Chaudhuri <address@hidden>
Date: 15 March 2018 at 12:02
Subject: make fails with invalid directive errors when running ylwrap
To: address@hidden


Hi,

I am trying to update gettext from the savangh git repo: branch
master, sha1 7b967191976bf013cca0a5b21b1e3dbe34e86889. This in order
to attempt to build make itself from current master.

After two aborted attempts due to a lack of dependencies
(libtool/gperf) I performed a clean, autoreconf -if, configure and
make.

I get a build failure when the gettext supplied ylwrap script
processes cldr-plural.y:

/bin/sh ../../build-aux/ylwrap cldr-plural.y y.tab.c cldr-plural.c
y.tab.h `echo cldr-plural.c | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e
s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output cldr-plural.output --
bison -y -d
 gettext/gettext-tools/src/cldr-plural.y:254.13-18: error: invalid
directive: ‘%empty’
 gettext/gettext-tools/src/cldr-plural.y:258.13-18: error: invalid
directive: ‘%empty’
 gettext/gettext-tools/src/cldr-plural.y:267.18-23: error: invalid
directive: ‘%empty’

Any advice on how to get around this?

Regards,

Amit Chaudhuri

Platform x86_64

cat /etc/os-release
NAME="openSUSE Leap"
VERSION="42.3"
ID=opensuse
ID_LIKE="suse"
VERSION_ID="42.3"
PRETTY_NAME="openSUSE Leap 42.3"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:42.3"
BUG_REPORT_URL="https://bugs.opensuse.org";
HOME_URL="https://www.opensuse.org/";



reply via email to

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