-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
gcc: bad value (x86_64) for -march= switch #7433
Comments
cc @vtjnash |
that should only happen if you are explicitly setting |
Ah, apparently ARCH=x86_64 is set by the university's debian installation here, but MARCH not |
MARCH is not a standard environment variable (ARCH isn't either, but is perhaps more common). However, in that commit, I started to use ARCH to detect a request to retarget the binary as a cross-compile for the requested architecture (this variable did that before too, but it ignored the user's environment variables) |
Just unsetting $ARCH or setting $MARCH did not work for me |
I ran into the same problem. My environment was setting $ARCH to the output of I claim no expertise in this area despite being Arch. |
Is |
Normalizing to x86_64 is one option, the other is using a different variable or a different priority (eg clearing ARCH at the top of Make.inc, so it can't be picked up from the environment) I don't know what is better, which is why I haven't done anything yet. |
670a6a1 breaks my installation process on gcc (Debian 4.7.2-5)
gcc rejects -march=x86_64 and thinks it should be x86-64
as I understand https://bugzilla.redhat.com/show_bug.cgi?id=185507
The text was updated successfully, but these errors were encountered: