Lists: | pgsql-hackers |
---|
From: | Josh Berkus <josh(at)agliodbs(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Error-out on compiling current CVS: preproc |
Date: | 2004-08-08 22:30:39 |
Message-ID: | 200408081530.39205.josh@agliodbs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Folks,
Got the following bomb trying to build from current CVS (August 8th):
make[4]: Leaving directory `/usr/src/postgresql-8.0b/src/interfaces/ecpg/
compatlib'
make -C preproc all
make[4]: Entering directory `/usr/src/postgresql-8.0b/src/interfaces/ecpg/
preproc'
make -C ../../../../src/port all
make[5]: Entering directory `/usr/src/postgresql-8.0b/src/port'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/usr/src/postgresql-8.0b/src/port'
bison -y -d preproc.y
preproc.y:4850.24-4853.22: type clash (`str' `keyword') on default action
preproc.y:4853.23: parse error, unexpected ":", expecting ";" or "|"
make[4]: *** [preproc.h] Error 1
make[4]: Leaving directory `/usr/src/postgresql-8.0b/src/interfaces/ecpg/
preproc'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/src/postgresql-8.0b/src/interfaces/ecpg'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/postgresql-8.0b/src/interfaces'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/postgresql-8.0b/src'
make: *** [all] Error 2
Setup:
SuSE 9.0, GCC 3.3.1, Bison 1.75 on Celeron Thinkpad
Basic configure and make, no options except --prefix=/usr/local/pg80b
--
-Josh Berkus
Aglio Database Solutions
San Francisco
From: | Josh Berkus <josh(at)agliodbs(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Error-out on compiling current CVS: preproc |
Date: | 2004-08-08 23:40:48 |
Message-ID: | 200408081640.48557.josh@agliodbs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Folks,
Update on this: Just tried it with:
SuSE 9.1, GCC 3.3.3, Bison 1.875
and don't get the error.
So it looks like the requirement for Bison 1.85+ is now a "hard" requirement?
We'll need to document this, since SuSE 9.0 is less than a year old, and I'm
sure some other distros are still using 1.75.
--
-Josh Berkus
Aglio Database Solutions
San Francisco
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | josh(at)agliodbs(dot)com |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Error-out on compiling current CVS: preproc |
Date: | 2004-08-09 01:59:58 |
Message-ID: | 200408090159.i791xwE12621@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Josh Berkus wrote:
> Folks,
>
> Update on this: Just tried it with:
> SuSE 9.1, GCC 3.3.3, Bison 1.875
> and don't get the error.
>
> So it looks like the requirement for Bison 1.85+ is now a "hard" requirement?
> We'll need to document this, since SuSE 9.0 is less than a year old, and I'm
> sure some other distros are still using 1.75.
I see in configure.in:
AC_CHECK_PROGS(YACC, ['bison -y'])
if test "$YACC"; then
if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
AC_MSG_WARN([
*** If you are going to modify the grammar files or build from CVS, the installed
*** version of Bison is too old. Bison version 1.875 or later is required.])
fi
fi
Looks documented to me.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From: | Josh Berkus <josh(at)agliodbs(dot)com> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Error-out on compiling current CVS: preproc |
Date: | 2004-08-09 02:36:47 |
Message-ID: | 200408081936.47297.josh@agliodbs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Bruce,
> *** If you are going to modify the grammar files or build from CVS, the
> installed *** version of Bison is too old. Bison version 1.875 or later is
> required.]) fi
> fi
Aha. Yeah, blew past me too fast to read. Hmmm ... does that mean that this
error won't happen in the release version?
--
Josh Berkus
Aglio Database Solutions
San Francisco
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Josh Berkus <josh(at)agliodbs(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Error-out on compiling current CVS: preproc |
Date: | 2004-08-09 02:47:44 |
Message-ID: | 200408090247.i792liJ04704@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Josh Berkus wrote:
> Bruce,
>
> > *** If you are going to modify the grammar files or build from CVS, the
> > installed *** version of Bison is too old. Bison version 1.875 or later is
> > required.]) fi
> > fi
>
> Aha. Yeah, blew past me too fast to read. Hmmm ... does that mean that this
> error won't happen in the release version?
I think so. The only reason you need bison in the release version is if
you modify the grammar files.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From: | Joe Conway <mail(at)joeconway(dot)com> |
---|---|
To: | Josh Berkus <josh(at)agliodbs(dot)com> |
Cc: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Error-out on compiling current CVS: preproc |
Date: | 2004-08-09 03:05:54 |
Message-ID: | 4116EA12.8000807@joeconway.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Josh Berkus wrote:
>
> Aha. Yeah, blew past me too fast to read. Hmmm ... does that mean that this
> error won't happen in the release version?
>
You shoouldn't need bison at all with a release tarball -- the
preprocessed grammar file is distributed with it.
Joe
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | josh(at)agliodbs(dot)com, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Error-out on compiling current CVS: preproc |
Date: | 2004-08-09 03:06:57 |
Message-ID: | 4363.1092020817@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> I see in configure.in:
> *** If you are going to modify the grammar files or build from CVS, the installed
> *** version of Bison is too old. Bison version 1.875 or later is required.])
> Looks documented to me.
Also, installation.sgml specifically says 1.875 or newer, and the 7.4
release notes already said 1.85 is required. I don't know where else
we would document it?
regards, tom lane