Bug in CVS HEAD on bootparse.y???

Started by Jonathan Gardnerabout 22 years ago3 messageshackers
Jump to latest
#1Jonathan Gardner
jgardner@jonathangardner.net

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? I can build all the releases just fine. I've tried
it with several ./configure option, the latest being without
any ./configure options at all, and it still fails.

--
Jonathan Gardner
jgardner@jonathangardner.net

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Jonathan Gardner (#1)
Re: Bug in CVS HEAD on bootparse.y???

Jonathan Gardner <jgardner@jonathangardner.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.

regards, tom lane

#3Jonathan Gardner
jgardner@jonathangardner.net
In reply to: Tom Lane (#2)
Re: Bug in CVS HEAD on bootparse.y???

On Thursday 18 March 2004 04:30 pm, Tom Lane wrote:

Jonathan Gardner <jgardner@jonathangardner.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@jonathangardner.net