Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Other *NIX Forums > AIX
User Name
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.


  Search this Thread
Old 02-18-2004, 12:55 PM   #1
Registered: Jan 2004
Distribution: AIX 4.3 RH 7,8,9 / Fedora C1/
Posts: 187

Rep: Reputation: 30
gcc error on aix 4.2.1 --> HELP!


On one of our old IBM SP nodes (Uniprocessor), I have installed gcc.2.95.2.tar file...

We are running AIX 4.2.1 (I know, old)...and the error i am getting when I am compiling a program via:

gcc -DNOUNDERSCORE -DMPI -o ../parseconfig ./parseconfig.c

is the following:

cpp: installation problem, cannot exec `cpp': Arg list too long
make: The error code from the last command is 1.


gcc appears to be working, but the call to "cpp" is fouling it up.


which gcc gives: /usr/local/bin/gcc (where the tar file extracted it to)
and: which cpp gives: /usr/local/bin/cpp (where the tar file extracted it to)

I can not move further with this project until this is figured out!!! Someone pleeeease help!

Old 02-19-2004, 02:34 PM   #2
Registered: Jan 2004
Distribution: AIX 4.3 RH 7,8,9 / Fedora C1/
Posts: 187

Original Poster
Rep: Reputation: 30
Greetings...the error listed above has been somewhat remedied...but a different error has erupted...

Here's the setup:

AIX 4.2.1 - gcc-2.95.2

To configure and build I:

make bootstrap-lean
make install

All three of these commands ran and did not kick up ANY errors.

I have a test C-program in my home directory:

#include <stdio.h>


When i type:

gcc test.c

I get the following error:

$ gcc test.c
test.c:0: /usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/2.95.2/../../../../rs6000-ibm-aix4.2.1.0/include/.: Permission denied

What is even MORE troubling is that this pgm compiles (in the same and other directories) and runs PERFECTLY while compiled and run as ROOT.

This seems like a permissions error...can someone help me out?!?!??!?!?!

Old 02-20-2004, 04:24 AM   #3
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
So what are the permissions on the that file and others involved?

I would say that it's a very good sign that your program compiles as root but not as a non-root user. It's a good indication that your problem is a file permissions issue, easily fixed once you find it, rather than something more fundamental not working.

When you check permissions, remember to check the parent directories (up to /) as well as the files : if a directory has no "other" permissions at all and you're not the owner or a group member, then you won't be able to access files underneath it.

Being on 4.2.1 is a problem - I assume you can't easily upgrade. If you were on AIX 5 I'd suggest using truss to show you which files were being accessed by the command; but on 4.2.1 you're a lot more limited.
Old 02-20-2004, 09:51 AM   #4
Registered: Jan 2004
Distribution: AIX 4.3 RH 7,8,9 / Fedora C1/
Posts: 187

Original Poster
Rep: Reputation: 30
ianir...yes you were right...i found a directory that: gcc was trying to access and the permissions were the stopper...thanks for the help.

i too was looking for a "trace/truss" command on aix there one on any versions in the 4.3 era??? or just aix 5 and above?

thanks again!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i install gcc-4.0.2 on AIX skadli AIX 3 03-17-2006 12:10 AM
in gcc compiler error: parse error before string constsnt cynthia_thomas Linux - Networking 1 10-20-2005 01:29 AM
AIX diagela error message 119/118 Hathazi Judit AIX 9 07-26-2005 07:46 AM
System hangs in update of AIX from 4.3.3 to AIX 5.2 jmurray67 AIX 2 07-25-2004 08:25 PM
Gdb error on Aix 4.3.3 ayeletr AIX 3 04-05-2004 10:57 PM > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 09:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration