Solved

Problems building gcc on True64 Unix

Posted on 2000-03-21
1
399 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

770 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