This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Broken bootstrap
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: neil at daikokuya dot co dot uk
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sun, 28 Jul 2002 08:40:14 -0400 (EDT)
- Subject: Re: Broken bootstrap
- References: <20020728074120.GA13473@daikokuya.co.uk>
> From: Neil Booth <neil@daikokuya.co.uk>
>
> I think your most recent patch broke the Makefile.
>
> cd ../../gcc && \
> flex -t -o../../gcc/gengtype-lex.c ../../gcc/gengtype-lex.l | \
> sed 's/^\(char msg\[\];\)/yyconst \1/' > g-$$ ; \
> if test $? -eq 0 ; then \
> mv -f g-$$ gengtype-lex.c ; \
> else \
> rm -f g-$$.* ; \
> false ; \
> fi
> flex: can't open ../../gcc/gengtype-lex.l
>
> Nei
Hmm, is your build dir not at the same directory level depth from root
as your srcdir? (That would hose my Makefile fragment.)
Let me know if this fixes it for you. If it does, I'll install it as
an obvious bugfix.
--Kaveh
2002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (gengtype-lex.c): Fix error in last change.
diff -rup orig/egcc-CVS20020727/gcc/Makefile.in egcc-CVS20020727/gcc/Makefile.in
--- orig/egcc-CVS20020727/gcc/Makefile.in 2002-07-27 19:33:41.000000000 -0400
+++ egcc-CVS20020727/gcc/Makefile.in 2002-07-28 08:31:11.212172806 -0400
@@ -2038,7 +2038,7 @@ gengtype-yacc.o : gengtype-yacc.c gengty
# The sed command works around a bug in flex-2.5.4.
$(srcdir)/gengtype-lex.c : $(srcdir)/gengtype-lex.l
cd $(srcdir) && \
- $(FLEX) $(FLEXFLAGS) -t -o$@ $(srcdir)/gengtype-lex.l | \
+ $(FLEX) $(FLEXFLAGS) -t -o$@ gengtype-lex.l | \
sed 's/^\(char msg\[\];\)/yyconst \1/' > g-$$$$ ; \
if test $$? -eq 0 ; then \
mv -f g-$$$$ gengtype-lex.c ; \