Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 409
  • Last Modified:

Problems building gcc on True64 Unix

 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
klopter
Asked:
klopter
1 Solution
 
salikovaCommented:
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now