Broken bootstrap

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Sun Jul 28 06:46:00 GMT 2002


 > 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 ; \



More information about the Gcc-bugs mailing list