[Monetdb-developers] [XQUERY] compilation problem with burg
Maybe someone here can help me. I got this weird error, and I don't know how to figure out what the real problem is. It seems burg is emitting the message: x86_64-pc-linux-gnu-ar cru .libs/libparser.a .libs/libparser_la-abssyn.o .libs/libparser_la-scanner.yy.o .libs/libparser_la-parser.tab.o x86_64-pc-linux-gnu-ranlib .libs/libparser.a creating libparser.la (cd .libs && rm -f libparser.la && ln -s ../libparser.la libparser.la) make[5]: Leaving directory `/net/pegasus.ins.cwi.nl/export/scratch0/fabian/vtmp/build-current-pegasus.ins.cwi.nl/xquery/compiler/parser' make[4]: Leaving directory `/net/pegasus.ins.cwi.nl/export/scratch0/fabian/vtmp/build-current-pegasus.ins.cwi.nl/xquery/compiler/parser' Making all in semantics make[4]: Entering directory `/net/pegasus.ins.cwi.nl/export/scratch0/fabian/vtmp/build-current-pegasus.ins.cwi.nl/xquery/compiler/semantics' rm -f -f normalize.c /ufs/fabian/scratch/monetdb/current/program-x86_64/bin/burg -c 1000 -d -I -p PFnormalize /ufs/fabian/scratch/monetdb/current/xquery/compiler/semantics/normalize.brg -o normalize.c line 68: syntax error make[4]: *** [normalize.c] Error 1 make[4]: *** Deleting file `normalize.c' make[4]: Leaving directory `/net/pegasus.ins.cwi.nl/export/scratch0/fabian/vtmp/build-current-pegasus.ins.cwi.nl/xquery/compiler/semantics' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/net/pegasus.ins.cwi.nl/export/scratch0/fabian/vtmp/build-current-pegasus.ins.cwi.nl/xquery/compiler' make[2]: *** [all] Error 2 make[2]: Leaving directory `/net/pegasus.ins.cwi.nl/export/scratch0/fabian/vtmp/build-current-pegasus.ins.cwi.nl/xquery/compiler' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/net/pegasus.ins.cwi.nl/export/scratch0/fabian/vtmp/build-current-pegasus.ins.cwi.nl/xquery' make: *** [all] Error 2 I'm confident I updated buildtools and pathfinder before compiling. The line that burg refers to is: %start Query but not being familiar with burg, I have no idea what can be wrong there. If anyone knows or can give a hint as where to look for, that would be much appreciated.
On Wed, Feb 21, 2007 at 01:35:55PM +0100, Fabian Groffen wrote:
Maybe someone here can help me. I got this weird error, and I don't know how to figure out what the real problem is. It seems burg is emitting the message:
[...] /ufs/fabian/scratch/monetdb/current/program-x86_64/bin/burg -c 1000 -d -I -p PFnormalize /ufs/fabian/scratch/monetdb/current/xquery/compiler/semantics/normalize.brg -o normalize.c line 68: syntax error make[4]: *** [normalize.c] Error 1 [...]
I'm confident I updated buildtools and pathfinder before compiling. The line that burg refers to is:
%start Query
This looks really weird. There is nothing really tricky or special about the burg code in normalize.brg. The line that is mentioned in the error message declares the start terminal of burg's tree grammar. What follows is a list of terminal symbols, the actual tree grammar, and action code (written in C). I guess you didn't modify anything in normalize.brg. Can you process other files successfully with burg? There's a bunch of them in the Pathfinder repository. You find an additional tiny example in the burg repository (sample.gr). I was wondering whether there is something broken with your burg build. Sorry I don't have any better ideas, Jens -- Jens Teubner Technische Universitaet Muenchen, Department of Informatics D-85748 Garching, Germany Tel: +49 89 289-17259 Fax: +49 89 289-17263 Computers are like air conditioners: They stop working properly if you open windows.
On 21-02-2007 14:16:10 +0100, Jens Teubner wrote:
This looks really weird. There is nothing really tricky or special about the burg code in normalize.brg. The line that is mentioned in the error message declares the start terminal of burg's tree grammar. What follows is a list of terminal symbols, the actual tree grammar, and action code (written in C).
I guess you didn't modify anything in normalize.brg. Can you process other files successfully with burg? There's a bunch of them in the Pathfinder repository. You find an additional tiny example in the burg repository (sample.gr). I was wondering whether there is something broken with your burg build.
burg must be broken then... :( I didn't use that much "super CFLAGS"
(-march=athlon64 -pipe -g -W -Wall):
(pegasus:current/buildtools/burg) fabian% $INSTALL_DIR/bin/burg sample.gr
#line 1 "sample.gr"
#include
A small update: - Switching compilers didn't seem to help at all. - Using the same tools (gcc, bison, flex, etc.) on Solaris 10/Sparc I get exactly the same behaviour (i.e. burg doesn't work) On 21-02-2007 14:25:38 +0100, Fabian Groffen wrote:
On 21-02-2007 14:16:10 +0100, Jens Teubner wrote:
This looks really weird. There is nothing really tricky or special about the burg code in normalize.brg. The line that is mentioned in the error message declares the start terminal of burg's tree grammar. What follows is a list of terminal symbols, the actual tree grammar, and action code (written in C).
I guess you didn't modify anything in normalize.brg. Can you process other files successfully with burg? There's a bunch of them in the Pathfinder repository. You find an additional tiny example in the burg repository (sample.gr). I was wondering whether there is something broken with your burg build.
burg must be broken then... :( I didn't use that much "super CFLAGS" (-march=athlon64 -pipe -g -W -Wall):
(pegasus:current/buildtools/burg) fabian% $INSTALL_DIR/bin/burg sample.gr #line 1 "sample.gr"
#include
typedef struct node *NODEPTR_TYPE;
struct node { int op, state_label; NODEPTR_TYPE left, right; };
#define OP_LABEL(p) ((p)->op) #define STATE_LABEL(p) ((p)->state_label) #define LEFT_CHILD(p) ((p)->left) #define RIGHT_CHILD(p) ((p)->right) #define PANIC printf line 18: syntax error
I probably hit a compiler error, because the only thing I can think of is that, since I recently upgraded to 4.1.2. Weird that that compiler doesn't give problems on Solaris 10 though...
Thanks for your help in any case!
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
On 22-02-2007 10:50:47 +0100, Fabian Groffen wrote:
A small update:
- Switching compilers didn't seem to help at all. - Using the same tools (gcc, bison, flex, etc.) on Solaris 10/Sparc I get exactly the same behaviour (i.e. burg doesn't work)
Just to keep everyone posted: I tried switching bison from 2.3 to 2.2 and 2.1, and that didn't help either.
participants (2)
-
Fabian Groffen
-
Jens Teubner