Solved

Problems building gcc on True64 Unix

Posted on 2000-03-21
1
400 Views
Last Modified: 2008-03-10
 gcc built, but when I try to run it it gives the following
message:

cpp: installation problem, cannot exec `cpp': Arg list too long

If I run it with -v, the ouput is over 300,000 characters
all but the first couple hundred are arguments to
cpp.

Any ideas?

Thanks,
   Ken
0
Comment
Question by:klopter
1 Comment
 

Accepted Solution

by:
salikova earned 100 total points
ID: 2643234
You would check following items:
 
1) gcc -v ( I use gcc v2.8.1)
Reading specs from /usr/local/lib/gcc-lib/i486-lynx-lynxos/2.8.1/specs
gcc version 2.8.1
 
2) ls /usr/local/lib/gcc-lib/i486-lynx-lynxos/2.8.1/
SYSCALLS.c.X    cc1plus*        libgcc.a        
cc1*            cpp*            libobjc.a      
cc1obj*         include/        specs
 
3) /usr/local/lib/gcc-lib/i486-lynx-lynxos/2.8.1/cpp -v AnyFile.c
GNU CPP version 2.8.1 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/local/i486-lynx-lynxos/include
 /usr/local/lib/gcc-lib/i486-lynx-lynxos/2.8.1/include
 /usr/include
....
 
 
If You saw like messeges, then you would describe ENVIRONMENT VARIABLES of gcc,
which is desribed in /usr/local/info/gcc.info-28.
Or you can write next script in /usr/local/bin/cpp
#!/bin/bash
/usr/local/lib/gcc-lib/i486-lynx-lynxos/2.8.1/cpp -traditional "$@"
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question