using c compiler: cpp appears to be looping - no output

Zack Weinberg zackw@stanford.edu
Wed Nov 8 09:57:00 GMT 2000


On Wed, Nov 08, 2000 at 05:11:30PM +0000, Kate Evans-Jones - RSG wrote:
> Hello,
> 
> gcc version 2.95.2 19991024 (release)
> 
> sparc-sun-solaris2.6
> 
> gcc  -ohello hello_world.c (the standard Hello World prog that compiles
> with other versions (2.8.1))
> 
> There is no output at all. A never ending loop of cpp being run starts
> until ^C is used. To illustrate, the output of command 'top' is provided
> in attached file 'top.txt'

...
> Reading specs from /data/rsdas4/utils/packages/unix/GCC_Compiler/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs
> gcc version 2.95.2 19991024 (release)
>  /data/rsdas4/utils/packages/unix/GCC_Compiler/bin/cpp -lang-c -v -isystem /data/rsdas4/utils/packages/unix/GCC_Compiler/bin/include -isystem /data/rsdas4/utils/packages/unix/GCC_Compiler/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/include -D__GNUC__=2 -D__GNUC_MINOR__=95 -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(svr4) -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) hello_world.c hello_world.i
> Reading specs from /data/rsdas4/utils/packages/unix/GCC_Compiler/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs
> gcc version 2.95.2 19991024 (release)
>  /data/rsdas4/utils/packages/unix/GCC_Compiler/bin/cpp -lang-c -v -Asystem(unix) -Asystem(svr4) -Acpu(sparc) -Amachine(sparc) -isystem /data/rsdas4/utils/packages/unix/GCC_Compiler/bin/include -isystem /data/rsdas4/utils/packages/unix/GCC_Compiler/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/include -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(svr4) -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) -D__GNUC__=2 -D__GNUC_MINOR__=95 -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -D__GCC_NEW_VARARGS__ -isystem /data/rsdas4/utils/packages/unix/GCC_Compiler/bin/include -isystem /data/rsdas4/utils/packages/unix/GCC_Compiler/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/include hello_world.c -o hello_world.i

You have an installation problem.  The gcc driver is looking for the
internal preprocessor executable (which should be in
/data/rsdas4/utils/packages/unix/GCC_Compiler/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2)
and finding only the wrapper,
/data/rsdas4/utils/packages/unix/GCC_Compiler/bin/cpp.  The wrapper is
itself a gcc driver.  It goes and looks for the internal preprocessor
executable, finds itself, executes itself.  Repeat until process table
overflow...

It is unfortunate that both the wrapper and the internal executable
are named 'cpp'; this has been corrected in the development sources.

Please take this up with your sysadmin.

zw



More information about the Gcc-bugs mailing list