Summary: | sys-devel/gcc-4.6 on Haswell with -march=native - {standard input}:862: Error: no such instruction: `vfmadd312ss .LC21(%rip),%xmm1,%xmm0' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Christian Schmidt <gentoo> |
Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | 85_all_fma-instruction-typo.patch |
Description
Christian Schmidt
2014-03-27 12:17:53 UTC
GCC can't build a toolchain with CFLAGS it doesn't know about. Ignore Jeroen. Yes this usually always happens with -march=native and new cpus on old versions. Unfortunately the 4.6 branch is closed upstream and I can't track down whatever fix didn't get backported along with FMA3 support, so you'll have to forgo -march=native on 4.6. Another work around might be -march=native -mno-fma. Found it. Created attachment 373792 [details, diff]
85_all_fma-instruction-typo.patch
Fixed in 4.6.4 p1.2. |