You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[csympy] Building CXX object src/CMakeFiles/csympy.dir/symbol.cpp.o
[csympy] /var/tmp//ccc4Ii22.s:829:no such instruction: `vzeroupper'
[csympy] /var/tmp//ccc4Ii22.s:847:no such instruction: `vzeroupper'
[csympy] /var/tmp//ccc4Ii22.s:855:no such instruction: `vzeroupper'
...
The linker (which is Apple linker) complains that it doesn't understand the AVX instructions, emitted (correctly) by gcc's -march=native, since my computer supports AVX. A quick workaround is to do
But this is not a solution, because you want to be able to use AVX instructions if your processor supports it, and gcc generates them, i.e. you must be able to use -march=native.
The fix is to either make gcc generate AVX instructions so that the Apple's linker can understand, or we need to build our own linker.
The text was updated successfully, but these errors were encountered:
certik
changed the title
OS X 10.10 using '-march=native' in works in clang but breaks in gcc
OS X 10.10 using '-march=native' works in clang but breaks in gcc
May 1, 2015
This solution forces our gcc to use the clang's assembler, so we still use -march=native and AVX instructions, just a different linker. And all is good.
This CXXFLAGS option should be integrated into all packages on OS X I guess.
More background e.g. in Homebrew/legacy-homebrew#14204.
The way it breaks in (our compiled) gcc is as follows:
The linker (which is Apple linker) complains that it doesn't understand the AVX instructions, emitted (correctly) by gcc's
-march=native
, since my computer supports AVX. A quick workaround is to doBut this is not a solution, because you want to be able to use AVX instructions if your processor supports it, and gcc generates them, i.e. you must be able to use
-march=native
.The fix is to either make gcc generate AVX instructions so that the Apple's linker can understand, or we need to build our own linker.
The text was updated successfully, but these errors were encountered: