-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation fails with gcc: error: unrecognized command line option '-V' #64
Comments
Can you post more of the configure output? Were there warnings before this? I think you may be missing some basic setup. |
Hi Thanks for looking into this. I have followed the below procedure to compile the code: yum install autoconf ; I have followed the same procedure in another setup and it worked fine. In the working setup I have different gcc version : gcc-4.8.5-28.el7.x86_64. Please find the attached config.log , command output and installed RPM list. |
Sorry Close accidentally. |
Hi Thanks for looking into this. I have followed the below procedure to compile the code: yum install autoconf ; I have followed the same procedure in another setup and it worked fine. In the working setup I have different gcc version : gcc-4.8.5-28.el7.x86_64. Please find the attached config.log , command output and installed RPM list from the failing server. |
Here is the Linux version: uname -aLinux node1 3.10.0-957.5.1.el7.x86_64 #1 SMP Wed Dec 19 10:46:58 EST 2018 x86_64 x86_64 x86_64 GNU/Linux cat /etc/redhat-releaseRed Hat Enterprise Linux Server release 7.5 (Maipo) |
Looking at your config log I don't think the issue is lack of -V. Configure checks lots of things that can fail just looking for availability. The real problem is when it fails a simple compiler works test as below, just trying to compile a hello world app. You may not have the full linker or libc installed. You might try your own hello world app to see if the default paths work.
|
Hi Greg Hello world snippet#include <stdio.h> Compile Errorgcc hello_world.cIn file included from /usr/include/features.h:399:0, include <gnu/stubs-64.h>
compilation terminated. |
Hi Greg, The issue has now been resolved now. Fix:
It is weird that the link is missing in the first place. But after performing the above steps compilation completed successfully. Thank you for looking into the issue and your guidance. Appreciate you quick reply too. |
Good to hear. Perhaps binutils was installed incorrectly. |
Compilation is terminated with following error message during configuration phase:
configure:3372: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
I am using isa-l version: v2.26
Installed gcc version : gcc-4.8.5-36.el7_6.1.x86_64
RHEL 7.5 x86
The text was updated successfully, but these errors were encountered: