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 |
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 |
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. |
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! |
All times are GMT -5. The time now is 02:11 AM. |