-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Xarch Support Broken in Superenv #28929
Comments
The pull request was #21664 |
You need to provide a reproducible test case. |
Does it need to be a formula ?
any argument following -Xarch_xxx will be deleted. |
Is there a way to use brew cc without writing a formula. |
Well using brew sh and HOMEBREW_CCFG=sa0 it works, but superenv removes -Werror, so I need to find something else. |
I've got a test that relies on ssse4.2 |
The test is ready
ssse4_2.cpp from qt 4.8.6:
|
I had to remove |
We need a formula in Homebrew or one of the taps that is currently broken without these changes and without you modifying superenv to e.g. remove |
I don't no if any of the current formulae is broken due to this issue, I just wanted to report a caveat which might cause some breakage. |
Actually if you are looking for a breakage investigate qt + universal binary. |
Due to the little amount of people that use Qt Universal binary nowadays, it might not be worth it fixing that, but we should still remember that this is broken.
In this example it is harmless to remove those args, but when it comes to |
Closing this. I'll reopen if you provide a formula with arguments that demonstrates that it actually does the wrong thing. |
Is dakcarto's patched qt formula a good example ? |
Again: provide a |
Well currently I can't find a formula that is broken due to that bug, but some of qt failure in the PR mentioned higher up where due to it. |
By the way, when using gcc, messing up with -march=native is not required to show failure in my first test. |
Perhaps that Max Howell could tell us why he chose to disable -Xarch_ in the first place. |
Please stop posting to the issue tracker about this; it is not an important issue. If you want to talk about it further please take it to the mailing list: homebrew@librelist.com |
This command line FAILS for me:
The build and config logs pass the
So
I see that this bug report is some months old, and also has been closed as "unimportant", so I will see if I'm missing something obvious. |
From Bug #14845, I learned to try
|
@watersb |
@GuillaumeDIDIER |
The arg refurbishing logic in superenv's cc does not handle -Xarch_ correctly.
It deletes the arguments which were meant for one architecture, and does not complain.
I stumbled on it some months ago as it caused at the time breakage in Qt (which tended to be fixed when disabling the vector instructions), but the pull request that fixed it was closed due to being quite invasive.
I don't no if that can be fixed, but meanwhile I report it here so that it becomes a known issue.
The text was updated successfully, but these errors were encountered: