This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: solaris bootstrap failure using cc for stage1, stab.h not found...
- To: egcs-bugs at cygnus dot com, mrs at wrs dot com
- Subject: Re: solaris bootstrap failure using cc for stage1, stab.h not found...
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Tue, 17 Nov 1998 13:37:47 -0500 (EST)
- Cc: egcs-patches at cygnus dot com, schwab at issan dot cs dot uni-dortmund dot de
> From: "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu>
>
> > From: mrs@wrs.com (Mike Stump)
> >
> > > From: "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu>
> > > So we either need to:
> > >
> > > 3. Rerun configure for every stage. (Possibly a large job.)
> >
> > We only need to run it if the compiler changes, so twice should be
> > enough. stagen, where n is >=2 are all the same compiler.
>
> Good point. And we only need to rerun configure in the gcc
> directory, not anywhere else. It might not be that big of a job, if the
> consensus is we should do this.
> --Kaveh
Here's a patch to implement this. It solves the Solaris bootstrap
problem I reported in http://www.cygnus.com/ml/egcs-bugs/1998-Nov/0469.html.
Shall I install it?
--Kaveh
Tue Nov 17 13:26:55 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (reconfigure): New target to rerun configure using
the stage1 generated compiler.
(bootstrap): Run `$(MAKE) reconfigure' right after creating the
stage1 directory, but before building stage2.
--- egcs-CVS19981117/gcc/Makefile.in~ Tue Nov 17 11:34:35 1998
+++ egcs-CVS19981117/gcc/Makefile.in Tue Nov 17 12:06:18 1998
@@ -2781,12 +2781,17 @@ diff:
$(LANG_DIFF_EXCLUDES) \
gcc-$(oldversion) gcc-$(version) > gcc-$(oldversion)-$(version).diff
+reconfigure: config.status
+ @echo Rerunning configure using the stage1 generated compiler.
+ CC="stage1/xgcc$(exeext) -Bstage1/ -B$(build_tooldir)/bin/" CFLAGS="$(WARN_CFLAGS) $(BOOT_CFLAGS)" LDFLAGS="$(BOOT_LDFLAGS)" $(SHELL) `grep '^#.*/configure' config.status | sed 's/^#//; s/--cache-file=[^ ]*//'`
+
bootstrap bootstrap-lean: force
# Only build the C compiler for stage1, because that is the only one that
# we can guarantee will build with the native compiler, and also it is the
# only thing useful for building stage2.
$(MAKE) CC="$(CC)" libdir=$(libdir) LANGUAGES="$(BOOT_LANGUAGES)"
$(MAKE) stage1
+ $(MAKE) reconfigure
# This used to define ALLOCA as empty, but that would lead to bad results
# for a subsequent `make install' since that would not have ALLOCA empty.
# To prevent `make install' from compiling alloca.o and then relinking cc1