This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: error bootstrapping on a DECstation running Ultrix 4.4
- To: Colin Rothnie <colinr at tiwest dot com dot au>
- Subject: Re: error bootstrapping on a DECstation running Ultrix 4.4
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 22 Dec 1998 23:00:41 -0700
- cc: "'egcs-bugs at cygnus dot com'" <egcs-bugs at cygnus dot com>
- Reply-To: law at cygnus dot com
In message <01BE2DB6.9EDFD6C0@CPC046.tiwest.com.au>you write:
> When attempting to do "make bootstrap" on ecgs version 1.1.1 the (gnu) make
> fails while compiling the bootstrap gcc.
>
> It appears that for this system the Makefile has problems when LANGUAGES="c
> " is used for the original bootstrap compiler.
>
> I managed to work around the problem (I think) by doing a manual "make" in
> egcs_obj/gcc and adding f77 to the LANGUAGES
> ie "make CC="gcc" libdir=/usr/local/lib LANGUAGES="c f77"
> and then continuing with egcs_obj/make bootstrap
>
> Relevant output is as follows:
> ------------------------------------------------------------------------
> case "c " in \
> *[fF]77*) touch lang-f77;; \
> *) rm -f lang-f77;; \
> esac
> if [ -f lang-f77 ]; then \
> rm -f g77.c; \
> ln -s /netusr/local/egcs-1.1.1/gcc/gcc.c g77.c; \
> fi
> make[2]: *** [g77.c] Error 1
> make[2]: Leaving directory `/netusr/local/egcs_obj/gcc'
> make[1]: *** [bootstrap] Error 2
> make[1]: Leaving directory `/netusr/local/egcs_obj/gcc'
> make: *** [bootstrap] Error 2
> ------------------------------------------------------
>
> The gcc make stage had been called by the following lines:
>
> Bootstrapping the compiler
> make[1]: Entering directory `/netusr/local/egcs_obj/gcc'
> make CC="gcc" libdir=/usr/local/lib LANGUAGES="c "
>
> Hope this helps, it is the first time I have ever reported a "bug".
This bug has been fixed in recent egcs snapshots.
You may be able to work around this bug by specifying a non-broken shell
for builds. Your shell is exiting with nonzero status for the "if" statement
when it is false.
jeff