Urgency! Ask second time! cannot execute "cpp" of gcc-2.95.2

Claudio Bley bley@cs.uni-magdeburg.de
Tue Nov 27 17:41:00 GMT 2001


>>>>> "wang" == wang gang <newwg@capinfo.com.cn> writes:

    wang> gcc-help: I have installed GCC-2.95.2 in RedHat Linux 7.0
    wang> with patch .

    wang>     But when I make with "g++",it print error message as
    wang> following:
   
    wang> 	cpp: installation problem, cannot exec `cpp': Argument
    wang> list too long

    wang> 	Would someone please tell me why? Thanks.

System specs?

Compiled yourself or installed a binary? Did you do 'make bootstrap'?

What patch?

Can you run cpp standalone? Does it produce an output if you call it
with a test C file?

What's the output of 'gcc -v'?

BTW, it might be a BAD idea to install gcc 2.95 on Redhat 7.x because
gcc 2.95 and gcc 2.96 (which RH 7.0 uses) aren't fully compatible
(especially in regard to C++). Most likely you will experience weird
compilation / runtime errors or segmentation faults when you try to
compile, link and run a C++ program which uses other libraries than
the gcc 2.95 libs because all other libs are compiled with gcc 2.96.

Possibly you would be better off just using the compiler Redhat
provides with your distribution and fixing the source code of the
programs you're trying to compile. Also, consider upgrading your
distribution or using / installing gcc 3.x.

HTH
Claudio



More information about the Gcc-help mailing list