http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56068
--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-01-21 17:32:52 UTC --- (In reply to comment #9) > Using -mno-avx (or replacing -march=cirei7) worked for me. Bah, that should be "replacing -march=native with -march=corei7" My problem was with GCC 4.6, and the avx-detection code is the same in current releases, so if your illegal instruction is an AVX one then I doubt trying a newer GCC will help. The problem is in glibc's __cpuid() function not GCC.