Broken bootstrap

Neil Booth neil@daikokuya.co.uk
Sun Jul 28 07:09:00 GMT 2002


Kaveh R. Ghazi wrote:-

> 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.

If build in a subdirectory of the top level directory.  I always
have done.

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

This is what I did locally, and it works.  I wasn't sure what the
right thing in general might be.

Thanks,

Neil.



More information about the Gcc-bugs mailing list