This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71918] Internal compiler error: Illegal instruction
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 18 Jul 2016 15:56:38 +0000
- Subject: [Bug c++/71918] Internal compiler error: Illegal instruction
- Auto-submitted: auto-generated
- References: <bug-71918-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71918
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to jordyruiz from comment #6)
> > Also this is most likely GMP not compiled for generic but a specific CPU and
> > you don't have a compatible CPU.
> >
> > Did you compile GMP yourself or did you get it from a distro? If you got it
> > from a distro, you should report the bug to that distro.
>
> I compiled GMP myself, on a different machine. So you probably found the
> cause of the issue.
If you don't disable the assembly code in GMP, GMP defaults to basically doing
-march=native . You need to configure GMP correctly if you are going to use it
across different machines which are different processor types.