LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices



Reply
 
Search this Thread
Old 02-18-2004, 01:55 PM   #1
zepplin611
Member
 
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!


Greetings,

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.


Stop.

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


FYI:

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!

zepplin611
 
Old 02-19-2004, 03:34 PM   #2
zepplin611
Member
 
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:

configure
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>

main()
{
printf("Hello.\n");
}


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?!?!??!?!?!

zepplin611
 
Old 02-20-2004, 05:24 AM   #3
iainr
Member
 
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, 10:51 AM   #4
zepplin611
Member
 
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 4.2.1....is there one on any versions in the 4.3 era??? or just aix 5 and above?

thanks again!
 
  


Reply


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 01:10 AM
in gcc compiler error: parse error before string constsnt cynthia_thomas Linux - Networking 1 10-20-2005 02:29 AM
AIX diagela error message seq.no 119/118 Hathazi Judit AIX 9 07-26-2005 08:46 AM
System hangs in update of AIX from 4.3.3 to AIX 5.2 jmurray67 AIX 2 07-25-2004 09:25 PM
Gdb error on Aix 4.3.3 ayeletr AIX 3 04-05-2004 11:57 PM


All times are GMT -5. The time now is 06:33 AM.

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