Re: pgsql: Enable script to generate preproc.y in build process. - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: Enable script to generate preproc.y in build process.
Date
Msg-id 7628.1226787827@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgsql: Enable script to generate preproc.y in build process.  ("Alex Hunsaker" <badalex@gmail.com>)
Responses Re: pgsql: Enable script to generate preproc.y in build process.
List pgsql-committers
"Alex Hunsaker" <badalex@gmail.com> writes:
> "/usr/bin/perl" ./parse.pl . < ../../../../src/backend/parser/gram.y >
> preproc.y
> bison -d  -o preproc.c preproc.y
> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
> -fwrapv -g  -DECPG_COMPILE -I../include
> -I../../../../src/interfaces/ecpg/include -I. -DMAJOR_VERSION=4
> -DMINOR_VERSION=5 -DPATCHLEVEL=0 -I../../../../src/include
> -D_GNU_SOURCE   -c -o preproc.o preproc.c
> preproc.y: In function 'base_yyparse':
> preproc.y:11201: error: expected ';' before '}' token
> make[4]: *** [preproc.o] Error 1

Huh ... what gcc and bison versions are you using?  The code is
certainly wrong but I wonder why nobody else saw this error.

> The fix to preproc.y is below, but I don't immediately see how to fix parse.pl

That's cause the problem is in ecpg.trailer.  I see Andrew got it
already.

            regards, tom lane

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Add missing dependencies to preproc.y build rule
Next
From: "Alex Hunsaker"
Date:
Subject: Re: pgsql: Enable script to generate preproc.y in build process.