This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: GCC for AIX
- To: Jeff_Yanoviak at mfdg dot com
- Subject: Re: GCC for AIX
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 07 Aug 2001 18:59:10 -0300
- Cc: gcc-bugs at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <OF8375E583.1882930F-ON87256AA1.005B3C0F@mfdg.com>
On Aug 7, 2001, Jeff_Yanoviak@mfdg.com wrote:
> I am running GCC for AIX and am having problems compiling even he simplest
> of c programs. The message I get is, "cpp: installation problem, cannot
> exec `cpp': Arg list too long." If I use the -v option, it appears as if
> cpp calls itself repeatedly with a growing list of arguments (all appear to
> be duplicates) until the error appears.
This is a symptom of an installation problem, as the message says.
`gcc' expects to be able to find the internal preprocessor in
GCC_EXEC_PREFIX (an environment variable whose default value is
inferred from the location of the gcc executable, or from the
configuration prefix, on GCC 2.95.2 or earlier, which appears to be
your case). When such an old version of gcc is installed in a
directory other than the one it was configured for, you must set
GCC_EXEC_PREFIX so that the internal preprocessor is found. If you
don't, GCC will end up searching the configured prefix, not finding
cpp, and end up searching the PATH, finding the cpp driver. The cpp
driver does the same trying to run the internal preprocessor, and ends
up finding and running itself, and so on.
So, either set GCC_EXEC_PREFIX or re-install GCC in the location it
was configured for.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me