I tried this, but it only sort of worked, and didn't really give me what I wanted. Here's what I did (on AIX 4.2.1 on an rs/6000)...
* untar egcs-1.1.1 distribution * untar gpc-19990118 distribution * move gpc/p directory into ..../egcs-1.1.1/gcc * cd ..../egcs-1.1.1/gcc * patch -p1 < p/diffs/gcc-egcs-2.91.60.diff * cd ..../egcs-1.1.1 * mkdir objdir * cd objdir * ../configure --prefix=/tools_fdps2/egcs * gmake LANGUAGES=c * gmake LANGUAGES=pascal * gmake
The "gmake LANGUAGES=c" bombed out trying to make (I guess) one of the C++ libraries that comes bundled with egcs, so that's not surprising, and it did manage to build the C compiler first.
The "gmake LANGUAGES=pascal" bombed out in the same place, but again it built the compiler first.
The "gmake" bombed out with a TOC overflow while building cc1plus, but this is a know AIX problem which I managed to fix by fiddling the LDFLAGS macro.
But the problem is that I now have a compiler built with gcc-2.8.1 rather than egcs-1.1.1. So is there some way I can do the equivalent of "make bootstrap" without tripping over the circular dependency Peter referred to?
tia Kevin
-----Original Message----- From: Peter Gerwinski [mailto:peter@gerwinski.de] Sent: 19 January 1999 22:31 To: Kevin Broadey Cc: gpc@hut.fi Subject: Re: gpc-19990118: C compiler cannot create executables.
Kevin Broadey wrote:
I downloaded the gpc-19990118.tar.gz release from Peter's area on agnes.dida.physik.uni-essen.de, moved it into the egcs-1.1.1 release from Cygnus (egcs-2.91.60), applied the appropriate patch, ran 'configure' and did 'make bootstrap'.
This is a few seconds to early: The announcement for gpc-19990118 will follow soon ... ;-)
The stage 1 compiler built correctly, but when the 'final' compiler was compiling I got this... [...] configure: error: installation or configuration problem: C
compiler cannot create executables.
[...] Any ideas?
Yes: Do `make LANGUAGES=c' first, and then `make LANGUAGES=pascal'.
If someone out there is a Makefile wizart, he/she is invited to help us to resolve a circular dependency and some other drawbacks in GPC's Makefiles.