Re:Homebrew: AVX instructions in Big Sur bottles crash when ...
by bodyfour on Sunday December 27, 2020 @01:54AM
(#25549380)
It was a mistaken assumption from the Homebrew developers who didn't realize AVX would cause problems with Rosetta2.
Within a few days problems became evident and Homebrew turned the compiler flag back off. Now it's just a question of the best way of remediating the already-compiled packages in the simplest way possible.
Really the fact that this is now a front-page-of-HN story is going to cause more confusion to people. It was just a short-lived bug.
I have always thought that it is worth a bit of paranoia to try and do the check for optional features the “correct” way, whatever method the OS advertises (like sysctl for macOS) rather than doing something like cpuid. After all, every once in a while it’s possible to run into a configuration where the CPU does support some particular feature but the OS does not, and if you rely on cpuid you could be up shit creek without a paddle.