Re: Bug in CVS HEAD on bootparse.y???

From: Jonathan Gardner <jgardner(at)jonathangardner(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Bug in CVS HEAD on bootparse.y???
Date: 2004-03-19 00:40:43
Message-ID: 200403181640.43626.jgardner@jonathangardner.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thursday 18 March 2004 04:30 pm, Tom Lane wrote:
> Jonathan Gardner <jgardner(at)jonathangardner(dot)net> writes:
> > gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
> > -Wmissing-declarations -I. -I../../../src/include -D_GNU_SOURCE -c -o
> > bootparse.o bootparse.c
> > bootparse.y:26:26: access/strat.h: No such file or directory
> > In file included from bootparse.y:340:
> > bootscanner.l:24:26: access/strat.h: No such file or directory
> > make[3]: *** [bootparse.o] Error 1
> >
> > Am I missing something?
>
> access/strat.h has been gone for months. Perhaps you have a clock-skew
> problem that is preventing bootparse.c from being rebuilt from
> bootparse.y? Check the file dates.
>

Yes, that was it. It wasn't updating bootparse.c because bootstrap_tokens.h
was new enough.

Here's the relevant sections from the Makefile. I doesn't look quite right,
but I can't really suggest a way to fix it.

$(srcdir)/bootparse.c: $(srcdir)/bootstrap_tokens.h ;

$(srcdir)/bootstrap_tokens.h: bootparse.y Makefile
ifdef YACC
$(YACC) -d $(YFLAGS) $<
$(sed-magic) < y.tab.c > $(srcdir)/bootparse.c
$(sed-magic) < y.tab.h > $(srcdir)/bootstrap_tokens.h
rm -f y.tab.c y.tab.h
else
@$(missing) bison $< $@
endif

--
Jonathan Gardner
jgardner(at)jonathangardner(dot)net

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2004-03-19 00:41:04 Re: COPY formatting
Previous Message Larry Rosenman 2004-03-19 00:40:36 Re: UnixWare/CVS Tip/initdb.c needs to use threads