This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: illegal instruction (CPU mismatch)
- From: Markus Trippelsdorf <markus at trippelsdorf dot de>
- To: Mahmood Naderan <nt_mahmood at yahoo dot com>
- Cc: "noloader at gmail dot com" <noloader at gmail dot com>, Jonathan Wakely <jwakely dot gcc at gmail dot com>, "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Fri, 16 Sep 2016 14:47:01 +0200
- Subject: Re: illegal instruction (CPU mismatch)
- Authentication-results: sourceware.org; auth=none
- References: <2070054246.1500449.1474012574681.ref@mail.yahoo.com> <2070054246.1500449.1474012574681@mail.yahoo.com> <20160916083133.GA313@x4> <CAH8yC8nTUXTxaTv=LjVzO249dZn+StsC-eX1LVRUe9rt30jWpA@mail.gmail.com> <1018982682.1604601.1474029611458@mail.yahoo.com>
On 2016.09.16 at 12:40 +0000, Mahmood Naderan wrote:
>
>
> >Try adding -mno-bmi to your CFLAGS and CXXFLAGS to clear the BMI/BMI2 issue.
>
> >I don't know about the other cpu flags. GCC is good about taking a cpu
> >feature, like ADX, and using -madx and -mno-adx. An exception is
> >RDRAND, whits omits the A for some reason; you use -mrdrnd.
>
> >Jeff
>
>
> Using -mno-adx returns
>
>
>
> checking for linker flag to name executables... configure: error: Could not determine flag to name executables
>
>
> Using -mrdrnd -mno-bmi returns the "illegal instruction" much sooner than before.
>
>
> This is a very bad issue. I really want to know what is the instruction?!
Well, if you simply want to avoid the issue, just compile without
-march=amdfam10 (this really assumes that all machines are of the same
type) or use -mtune=amdfam10 instead.
Details on how to remotely debug Open MP jobs are off topic on this list.
--
Markus