This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc help / bug
- To: "Dave Gress" <dgress at cisco dot com>
- Subject: Re: gcc help / bug
- From: Alexandre Oliva <aoliva at cygnus dot com>
- Date: 03 May 2000 13:25:07 -0300
- Cc: egcs at egcs dot cygnus dot com
- Organization: Cygnus Solutions, a Red Hat Company
- References: <39104DF3.CF07638A@cisco.com>
On May 3, 2000, "Dave Gress" <dgress@cisco.com> wrote:
> When compiling a simple program I get 100's of processes forked ?
> dsg 1479 1478 0 11:31:41 pts/1 0:00 cpp -lang-c -Asystem(unix)
> -Asystem(svr4) -Acpu(sparc) -Amachine(sparc) -Acpu(s
Looks like your installation is broken: it seems that cpp is calling
itself. There are two CPP programs in the GCC installation tree. One
lives in the `bin' directory, and is just a wrapper that runs the one
that lives in lib/gcc-lib/<TRIPLET>/2.95.2. `gcc' should be calling
the latter but, for some reason (misconfiguration in your
installation), it's calling the former, that ends up running itself.
One possible reason for the failure is if the existing installation
was configured to be installed in one place and ended up being
installed in another, so gcc and cpp don't find the GCC internal
programs, search the PATH and end up finding the external cpp wrapper
again.
--
Alexandre Oliva Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me