This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc help / bug


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]