https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64364
--- Comment #2 from Mikael Pettersson <mikpelinux at gmail dot com> --- Re-run g++ on the testcase with the -v flag, note the command line for cc1plus, run cc1plus from gdb with that command line, and show us the faulting instruction and what code/function it occurs in. You didn't use --with-arch=native, which is good, but I suspect that your gmp etc may have been built with Haswell-specific code. For this use case, you need to explicitly control how the support libraries are built (i.e. choose a compatible --build triplet).