Issue 29 in gpick: gpick will not compile -- gets stuck at source/cssparser/css_grammar_wrap.cpp

4 views
Skip to first unread message

gp...@googlecode.com

unread,
Apr 27, 2011, 9:13:26 AM4/27/11
to gp...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 29 by 00a...@gmail.com: gpick will not compile -- gets stuck at
source/cssparser/css_grammar_wrap.cpp
http://code.google.com/p/gpick/issues/detail?id=29

1. run 'scons' in the gpick hg checkout directory
2. build continues okay until reaching css parsing.

flex --header-file=build/source/cssparser/css_lex.h -o
build/source/cssparser/css_lex.cpp source/cssparser/css_lex.l
buildAction(["build/source/cssparser/css_grammar.c", "build/source/cssparser/css_grammar.h", "build/source/cssparser/css_grammar.c"],
["source/cssparser/css_grammar.y", "source/cssparser/css_grammar.y"])
Copy("build/lempar.c", "extern/lempar.c")
Copy("build/source/cssparser/css_grammar.y", "source/cssparser/css_grammar.y")
Delete("build/source/cssparser/css_grammar.y")
Compiling ==> build/source/cssparser/css_grammar_wrap.o
In file included from source/cssparser/css_grammar_wrap.cpp:20:0:
../build/source/cssparser/css_grammar.c: In function ‘int
yy_find_shift_action(yyParser*, unsigned char)’:
../build/source/cssparser/css_grammar.c:667:15: error: ‘YY_SHIFT_COUNT’ was
not declared in this scope
In file included from source/cssparser/css_grammar_wrap.cpp:20:0:
../build/source/cssparser/css_grammar.c:673:17: error: ‘YY_ACTTAB_COUNT’
was not declared in this scope
In file included from source/cssparser/css_grammar_wrap.cpp:20:0:
../build/source/cssparser/css_grammar.c: In function ‘int
yy_find_reduce_action(int, unsigned char)’:
../build/source/cssparser/css_grammar.c:731:15: error: ‘YY_REDUCE_COUNT’
was not declared in this scope
In file included from source/cssparser/css_grammar_wrap.cpp:20:0:
../build/source/cssparser/css_grammar.c:742:17: error: ‘YY_ACTTAB_COUNT’
was not declared in this scope


I am using gcc 4.6, scons 2.0.1, flex 2.5.35 on Arch Linux.
I encountered this bug while adding a 'LAB' mixing mode to 'Mix Colors'. It
occurs whether or not I have modified any code.

I tried copying in a more recent lempar.c from
http://code.google.com/p/lemonbind/source/browse/lempar.c -- That reduces
the errors but does not eliminate them

buildAction(["build/source/cssparser/css_grammar.c", "build/source/cssparser/css_grammar.h", "build/source/cssparser/css_grammar.c"],
["source/cssparser/css_grammar.y", "source/cssparser/css_grammar.y"])
Copy("build/lempar.c", "extern/lempar.c")
Copy("build/source/cssparser/css_grammar.y", "source/cssparser/css_grammar.y")
Delete("build/source/cssparser/css_grammar.y")
Compiling ==> build/source/cssparser/css_grammar_wrap.o
In file included from source/cssparser/css_grammar_wrap.cpp:20:0:
../build/source/cssparser/css_grammar.c:101:26: error: uninitialized const
‘yyzerominor’ [-fpermissive]
../build/source/cssparser/css_grammar.c:70:15: note: ‘const union
YYMINORTYPE’ has no user-provided default constructor
In file included from source/cssparser/css_grammar_wrap.cpp:20:0:
../build/source/cssparser/css_grammar.c: In function ‘void
yy_reduce(yyParser*, int)’:
../build/source/cssparser/css_grammar.c:965:39: error: ‘yytestcase’ was not
declared in this scope
scons: *** [build/source/cssparser/css_grammar_wrap.o] Error 1

gp...@googlecode.com

unread,
Apr 27, 2011, 12:48:14 PM4/27/11
to gp...@googlegroups.com
Updates:
Status: Started

Comment #1 on issue 29 by thez...@gmail.com: gpick will not compile -- gets

stuck at source/cssparser/css_grammar_wrap.cpp
http://code.google.com/p/gpick/issues/detail?id=29

Please post the contents of 'build/source/cssparser/css_grammar.c
' after the compilation fails (using original lempar.c file). I managed to
successfully compile using lempar.c from
http://code.google.com/p/lemonbind/source/browse/lempar.c, but it would
cause segfaults when actually trying to use the generated parser. If you
like to try it anyway, I attached the necessary changes.


Attachments:
lempar.diff 501 bytes

gp...@googlecode.com

unread,
Apr 27, 2011, 8:11:15 PM4/27/11
to gp...@googlegroups.com

Comment #2 on issue 29 by 00a...@gmail.com: gpick will not compile -- gets
stuck at source/cssparser/css_grammar_wrap.cpp
http://code.google.com/p/gpick/issues/detail?id=29

build/source/cssparser/css_grammar.c is attached (before the below
mentioned changes)

Thanks for the patch! It didn't seem to apply (to lempar.c), then I copied
the lines into build/source/cssparser/css_grammar.c and then it compiled
ok, and I could use the LAB mixing mode :)

Attachments:
css_grammar.c 58.0 KB

gp...@googlecode.com

unread,
Feb 18, 2012, 7:00:57 AM2/18/12
to gp...@googlegroups.com

Comment #3 on issue 29 by 00a...@gmail.com: gpick will not compile -- gets
stuck at source/cssparser/css_grammar_wrap.cpp
http://code.google.com/p/gpick/issues/detail?id=29

What is the status of this?

I attach what, IME, is a working lempar.c.. it seems to contain changes
that are the direct inverse of your patch. I realize I've had this sitting
in my local clone of gpick for a while now.

Attachments:
lempar.c 25.2 KB

gp...@googlecode.com

unread,
Feb 18, 2012, 7:08:00 AM2/18/12
to gp...@googlegroups.com

Comment #4 on issue 29 by 00a...@gmail.com: gpick will not compile -- gets
stuck at source/cssparser/css_grammar_wrap.cpp
http://code.google.com/p/gpick/issues/detail?id=29

Never mind :|
Clearly this is not fixed. I don't really understand exactly what a fix for
it would look like.

Reply all
Reply to author
Forward
0 new messages