|Summary:||gcc: error trying to exec 'as': execvp: No such file or directory|
|Product:||gcc||Reporter:||David Sandler <dsandler>|
|Component:||c||Assignee:||Not yet assigned to anyone <unassigned>|
|Build:||Known to work:|
|Known to fail:||Last reconfirmed:|
Description David Sandler 2009-06-04 15:12:16 UTC
When compiling a program with gcc, we are receiving the following error... gcc: error trying to exec 'as': execvp: No such file or directory We checked that 'as' exists, and it does. Please advise.
Comment 1 Andrew Pinski 2009-06-04 15:25:24 UTC
the gcc driver program is not finding as.
Comment 2 David Sandler 2009-06-04 15:28:33 UTC
(In reply to comment #1) > the gcc driver program is not finding as. What is the appropriate course of action?
Comment 3 Paolo Carlini 2009-06-04 15:47:55 UTC
Properly install as. This is definitely not a GCC issue.
Comment 4 David Sandler 2009-06-05 13:37:59 UTC
I'm running RHEL5 on an x86_64 box from HP. I believe gcc and as were preconfigured when the OS was installed on the box. In what other ways would I know if as was not properly installed? Do you have any tips on what is the correct way to install as?
Comment 5 Jakub Jelinek 2009-06-05 14:30:07 UTC
You haven't told us haw you have configured gcc, if it was a native build or cross, etc. If it is a native build, checking that /usr/bin/as exists is the first step. You can e.g. strace the gcc driver to find out where exactly it is looking for as.
Comment 6 David Sandler 2009-06-05 14:59:42 UTC
(In reply to comment #5) > You haven't told us haw you have configured gcc, if it was a native build or > cross, etc. > If it is a native build, checking that /usr/bin/as exists is the first step. > You can e.g. strace the gcc driver to find out where exactly it is looking for > as. I'm working on getting an answer regarding the configuration of gcc from our SA group, as I'm not an SA. I can tell you that /usr/bin/as does exist. All of my work has been done on HP-UX 11.23 and IA64 boxes, so I'm very new to RHEL5 and x86_64. Could you tell me how to strace the gcc driver?
Comment 7 Jakub Jelinek 2009-06-05 15:52:06 UTC
Depends what command gives you that execvp: No such file or directory error. Do yum install strace strace -f -o /tmp/gcc.log /whatever/command/gave/the/error its arguments and look where it was looking for as before giving that failure.
Comment 8 David Sandler 2009-06-05 16:32:16 UTC
I'll have the SA group here give that a try. Thanks.