lilypond-devel
[Top][All Lists]
Advanced

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

Re: GUB failure in parser.yy


From: Phil Holmes
Subject: Re: GUB failure in parser.yy
Date: Sat, 22 Sep 2012 17:20:07 +0100

----- Original Message ----- From: "David Kastrup" <address@hidden>
To: "Phil Holmes" <address@hidden>
Cc: "Devel" <address@hidden>
Sent: Saturday, September 22, 2012 4:56 PM
Subject: Re: GUB failure in parser.yy


"Phil Holmes" <address@hidden> writes:

I'm trying to build 2.17.3.  I get this failure:

make[1]: Entering directory
/home/gub/gub/target/darwin-ppc/build/lilypond-git.sv.gnu.org--lilypond.git-release-unstable/lily'
bison -o out/parser-tmp.cc -d
/home/gub/gub/target/darwin-ppc/src/lilypond-git.sv.gnu.org--lilypond.git-release-unstable/lily/parser.yy
/home/gub/gub/target/darwin-ppc/src/lilypond-git.sv.gnu.org--lilypond.git-release-unstable/lily/parser.yy:30.1-5:
invalid directive: `%code'
/home/gub/gub/target/darwin-ppc/src/lilypond-git.sv.gnu.org--lilypond.git-release-unstable/lily/parser.yy:30.7-14:
syntax error, unexpected identifier
make[1]: *** [out/parser.hh] Error 1

I'll have another go once this is fixed.

That would likely be a Bison version that is too old.  There are two
options to deal with it:

a) update the required version of Bison in the configure script and in GUB
b) try to make do without %code

I'd prefer option a) since a smaller range of supported versions makes
for fewer surprises, in particular since I was planning to make some
changes soon that will require somewhat predictable details in the
generated Bison code.

It is just the question how much pain requiring newer versions will be.
"Let's keep GUB old" is not really an overly convincing reason, but if
it breaks other supported configurations, that might be cause to
retract.


My preference _right now_ would be to remove the code that's causing the old version of Bison a problem. To fix Gub, rebuild Gub and then rebuild lilypond would take considerable time which I don't have now. I'd like to get an updated version of lilypond out over this weekend. I'd be happy to discuss how to update Gub and then rebuild it starting next week.

--
Phil Holmes



reply via email to

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