cpp error using g++ and make

Zack Weinberg zack@wolery.cumb.org
Tue Jul 25 11:54:00 GMT 2000


On Tue, Jul 25, 2000 at 02:46:12PM -0400, Fortenberry, Michael wrote:
> I get the following error when I use a Makefile and issue make at the
> command line. The first block is the g++ command as issued by make. The
> second block shows the error indication.
>  
> g++ -o build/bld_obj/sdcmd.o -O      -I/usr/local/include   -DUSL -DSVR4
> -Di386   -DNARROWPROTO
> -I/users/fortenbm/ccm_wa/hostsw/hdunix_dlgcdev_distr_unixware7-fortenbm/hdun
> ix_dlgcdev_distr_unixware7/uses/hdunix_include_source/products
> -I/users/fortenbm/ccm_wa/hostsw/hdunix_dlgcdev_distr_unixware7-fortenbm/hdun
> ix_dlgcdev_distr_unixware7/uses/unix_boardwatch_include/source -DUNIX  -DDCB
> -D_ISDN -DSVR4  -DSVR5 -DISA_SPAN  -DPCI_SPAN -DPCI_SUPPORT -DBRI_SUPPORT
> -DDDI8 -D_DDI=8   -DPKGVER="\"Version 3.0 \"" -DOSTYPEVER=\""Unixware 7.x\""
> -DCOPYRIGHT=\""Copyright (c) 1999 Dialogic Corp.\"" -c
> build/bld_tmp/sdcmd.cpp
>  
> cpp: installation problem, cannot exec `cpp': Arg list too long
> cpp: Internal compiler error: program cpp got fatal signal 11
> make: *** [build/bld_obj/sdcmd.o] Error 1

Your installation is damaged, as it says.  This particular error
happens because, for historical reasons, gcc installs two different
programs named 'cpp' in different directories.  One of them is the
preprocessor, the other is used internally.

Write a trivial test program, and compile it thus:

$ g++ -v -c test.cpp

You should get a great deal of debugging output followed by the same
error.  Your system administrator should be able to figure out what is
wrong with the installation from the debugging messages.

zw


More information about the Gcc-bugs mailing list