SIGILL (Illegal instruction) in `mpn_mul_1` ADX/BMI2 path on CPU without ADX (Intel Haswell / i7-4790)
Dennis Clarke
dclarke at blastwave.org
Fri Sep 4 00:11:00 CEST 2026
On 9/3/26 07:46, Torbjörn Granlund wrote:
> If GMP is configured for CPU x and then run on CPU y, and CPU y lacks
> some CPU x instructions used by GMP, then GMP cannot be expected to
> work.
>
> If, on the other hand, GMP was configured with --enable-fat, it is
> expected that everyting will work fine, albeit with some overhead.
>
> Obviously, any program or library which is compiled for CPU x and then
> run on CPU y might also trigger "illegal instruction" errors.
>
It may be more clear to just say :
Get the libGMP source tarball and compile it yourself.
Be sure to run the tests with "make check".
Then all is well.
--
--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
More information about the gmp-bugs
mailing list