public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Bison 1.75c + FreeBSD 5.0 = can't boostrap gcc from CVS
@ 2002-12-11 21:15 Craig Rodrigues
  2002-12-12 11:52 ` Joseph S. Myers
  0 siblings, 1 reply; 6+ messages in thread
From: Craig Rodrigues @ 2002-12-11 21:15 UTC (permalink / raw)
  To: gcc

Hi,

I tried to recently do a make bootstrap from a fresh
CVS checkout of the GCC mainline on my FreeBSD 5.0-CURRENT (prerelease)
machine.

I installed the following version of bison:
bison (GNU Bison) 1.75c

obtained from ftp://alpha.gnu.org/gnu/bison/


When I tried to bootstrap, I got this error:

gcc -c -DIN_GCC -DLOCALEDIR=\"/home/rodrigc/testgcc/build/run/share/locale\" -DLOCALE_ALIAS_PATH=\"/home/rodrigc/testgcc/build/run/share/locale\"  -DLIBDIR=\"/home/rodrigc/testgcc/build/run/lib\" -DHAVE_CONFIG_H -I.. -I. -I../../../gcc/gcc/intl -I../../../gcc/gcc  -I../../../gcc/gcc/config -I../../../gcc/gcc/../include  -g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -fno-common  ../../../gcc/gcc/intl/ngettext.c -o ngettext.o
bison -y -d --name-prefix=__gettext --output plural.c ../../../gcc/gcc/intl/plural.y
conflicts:  7 shift/reduce
../../../gcc/gcc/intl/plural.y: expected 10 shift/reduce conflicts
*** Error code 1


What version of bison should I be using?

-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@attbi.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bison 1.75c + FreeBSD 5.0 = can't boostrap gcc from CVS
  2002-12-11 21:15 Bison 1.75c + FreeBSD 5.0 = can't boostrap gcc from CVS Craig Rodrigues
@ 2002-12-12 11:52 ` Joseph S. Myers
  2002-12-12 17:18   ` Loren James Rittle
  0 siblings, 1 reply; 6+ messages in thread
From: Joseph S. Myers @ 2002-12-12 11:52 UTC (permalink / raw)
  To: Craig Rodrigues; +Cc: gcc

On Wed, 11 Dec 2002, Craig Rodrigues wrote:

> When I tried to bootstrap, I got this error:
> 
> gcc -c -DIN_GCC -DLOCALEDIR=\"/home/rodrigc/testgcc/build/run/share/locale\" -DLOCALE_ALIAS_PATH=\"/home/rodrigc/testgcc/build/run/share/locale\"  -DLIBDIR=\"/home/rodrigc/testgcc/build/run/lib\" -DHAVE_CONFIG_H -I.. -I. -I../../../gcc/gcc/intl -I../../../gcc/gcc  -I../../../gcc/gcc/config -I../../../gcc/gcc/../include  -g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -fno-common  ../../../gcc/gcc/intl/ngettext.c -o ngettext.o
> bison -y -d --name-prefix=__gettext --output plural.c ../../../gcc/gcc/intl/plural.y
> conflicts:  7 shift/reduce
> ../../../gcc/gcc/intl/plural.y: expected 10 shift/reduce conflicts
> *** Error code 1

(a) This is a known gettext problem (that the number of expected conflicts 
is incorrect).  We should update the intl directory to current gettext, 
but not before the 3.3 branch.

(b) We need to investigate and fix why the plural.c file in CVS isn't
being used here.

-- 
Joseph S. Myers
jsm28@cam.ac.uk

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bison 1.75c + FreeBSD 5.0 = can't boostrap gcc from CVS
  2002-12-12 11:52 ` Joseph S. Myers
@ 2002-12-12 17:18   ` Loren James Rittle
  2002-12-13 12:06     ` Joseph S. Myers
  0 siblings, 1 reply; 6+ messages in thread
From: Loren James Rittle @ 2002-12-12 17:18 UTC (permalink / raw)
  To: gcc

>> bison -y -d --name-prefix=__gettext --output plural.c
>../../../gcc/gcc/intl/plural.y
>> conflicts:  7 shift/reduce
>> ../../../gcc/gcc/intl/plural.y: expected 10 shift/reduce conflicts
>> *** Error code 1

> (b) We need to investigate and fix why the plural.c file in CVS isn't
> being used here.

No more investigatation required.  There is no "touch rule" for
gcc/intl/plural.[yc] in contrib/gcc_update.  Thus, any particular
initial checkout/update from CVS could have the time stamps out of
order.  The only reason the population of developers doesn't see this
issue (even if they have upgraded bison to a recent FSF release ala
1.75), is that gcc/intl hasn't been updated since long before that
release.

We could catch these problem much earlier if we removed *all* derived
files from CVS and never added built files to srcdir during a normal
bootstrap...

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bison 1.75c + FreeBSD 5.0 = can't boostrap gcc from CVS
  2002-12-12 17:18   ` Loren James Rittle
@ 2002-12-13 12:06     ` Joseph S. Myers
  2002-12-27  7:45       ` Gerald Pfeifer
  0 siblings, 1 reply; 6+ messages in thread
From: Joseph S. Myers @ 2002-12-13 12:06 UTC (permalink / raw)
  To: Loren James Rittle; +Cc: gcc

On Thu, 12 Dec 2002, Loren James Rittle wrote:

> No more investigatation required.  There is no "touch rule" for
> gcc/intl/plural.[yc] in contrib/gcc_update.  Thus, any particular
> initial checkout/update from CVS could have the time stamps out of
> order.  The only reason the population of developers doesn't see this
> issue (even if they have upgraded bison to a recent FSF release ala
> 1.75), is that gcc/intl hasn't been updated since long before that
> release.

It appears that Gerald's patch
<http://gcc.gnu.org/ml/gcc-patches/2002-12/msg00370.html> hasn't yet been
reviewed.

> We could catch these problem much earlier if we removed *all* derived
> files from CVS and never added built files to srcdir during a normal
> bootstrap...

This file shouldn't be in CVS as a Bison-generated file, except that the
release script adds Bison-generated files to the source directory by doing
a bootstrap and this won't work for the intl directory because that
directory doesn't get built at all on systems with GNU libintl in libc.

The normal rule for what goes in CVS remains that it should be exactly the
files not removed by "make maintainer-clean", which should be all files
needed to configure and build plus some files created by more specialised
tools (e.g. autogen) or tools with tight version dependencies, plus
generated Texinfo files for update_web_docs.

-- 
Joseph S. Myers
jsm28@cam.ac.uk

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Bison 1.75c + FreeBSD 5.0 = can't boostrap gcc from CVS
  2002-12-13 12:06     ` Joseph S. Myers
@ 2002-12-27  7:45       ` Gerald Pfeifer
  2002-12-29 14:15         ` PATCH contrib/gcc_update (was: Bison 1.75c + FreeBSD 5.0 = can't boostrap gcc from CVS) Gerald Pfeifer
  0 siblings, 1 reply; 6+ messages in thread
From: Gerald Pfeifer @ 2002-12-27  7:45 UTC (permalink / raw)
  To: Joseph S. Myers; +Cc: Loren James Rittle, gcc

On Fri, 13 Dec 2002, Joseph S. Myers wrote:
>> No more investigatation required.  There is no "touch rule" for
>> gcc/intl/plural.[yc] in contrib/gcc_update.
> It appears that Gerald's patch
> <http://gcc.gnu.org/ml/gcc-patches/2002-12/msg00370.html> hasn't yet been
> reviewed.

Joseph, Loren, if one of you confirms that this fixes the problem, I'll
commit it to mainline and the 3.3 branch, I really just wanted a second
(and sharper <g>) pair of eyes on that patch. ;-)

Gerald
-- 
Gerald "Jerry"   pfeifer@dbai.tuwien.ac.at   http://www.pfeifer.com/gerald/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* PATCH contrib/gcc_update (was: Bison 1.75c + FreeBSD 5.0 = can't boostrap gcc from CVS)
  2002-12-27  7:45       ` Gerald Pfeifer
@ 2002-12-29 14:15         ` Gerald Pfeifer
  0 siblings, 0 replies; 6+ messages in thread
From: Gerald Pfeifer @ 2002-12-29 14:15 UTC (permalink / raw)
  To: gcc-patches; +Cc: gcc, Joseph S. Myers, Loren James Rittle

On Fri, 27 Dec 2002, Gerald Pfeifer wrote:
>> It appears that Gerald's patch
>> <http://gcc.gnu.org/ml/gcc-patches/2002-12/msg00370.html> hasn't yet been
>> reviewed.
> Joseph, Loren, if one of you confirms that this fixes the problem, I'll
> commit it to mainline and the 3.3 branch, I really just wanted a second
> (and sharper <g>) pair of eyes on that patch. ;-)

Joseph kindly had a look, so I committed the following to mainline and
the 3.3-branch.

Gerald

2002-12-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>

	* gcc_update (files_and_dependencies): Add gcc/intl/plural.c as
	depending on gcc/intl/plural.y.

Index: gcc_update
===================================================================
RCS file: /cvs/gcc/gcc/contrib/gcc_update,v
retrieving revision 1.40
diff -u -3 -p -r1.40 gcc_update
--- gcc_update	28 Dec 2002 16:24:33 -0000	1.40
+++ gcc_update	29 Dec 2002 19:34:17 -0000
@@ -29,7 +29,7 @@
 # contrib/gcc_update --list
 #
 #
-# (C) 1998, 1999, 2000, 2001 Free Software Foundation
+# (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation
 # Originally by Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>, August 1998.
 #
 # This script is Free Software, and it can be copied, distributed and
@@ -69,6 +69,7 @@ gcc/configure: gcc/configure.in
 gcc/cstamp-h.in: gcc/configure.in gcc/acconfig.h
 gcc/config.in: gcc/cstamp-h.in
 gcc/fixinc/fixincl.x: gcc/fixinc/fixincl.tpl gcc/fixinc/inclhack.def
+gcc/intl/plural.c: gcc/intl/plural.y
 # And then, language-specific files
 gcc/f/intdoc.texi: gcc/f/intdoc.in gcc/f/intdoc.c gcc/f/intrin.h gcc/f/intrin.def
 gcc/ada/treeprs.ads: gcc/ada/treeprs.adt gcc/ada/sinfo.ads gcc/ada/xtreeprs.adb

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-12-29 19:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-11 21:15 Bison 1.75c + FreeBSD 5.0 = can't boostrap gcc from CVS Craig Rodrigues
2002-12-12 11:52 ` Joseph S. Myers
2002-12-12 17:18   ` Loren James Rittle
2002-12-13 12:06     ` Joseph S. Myers
2002-12-27  7:45       ` Gerald Pfeifer
2002-12-29 14:15         ` PATCH contrib/gcc_update (was: Bison 1.75c + FreeBSD 5.0 = can't boostrap gcc from CVS) Gerald Pfeifer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).