This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
libffi misidentifies certain older Intel CPU capabilites
- From: Michael Shell <list1 at michaelshell dot org>
- To: libffi-discuss at sourceware dot org
- Cc: green at moxielogic dot com
- Date: Sat, 26 May 2018 14:44:20 -0400
- Subject: libffi misidentifies certain older Intel CPU capabilites
Anthony and other libffi developers/users,
Over at the Linux From Scratch site, we've been seeing users get bitten
by a bug in libffi where it thinks certain Intel processors have
capabilites they actually don't which results in Illegal Instruction
errors. Specifically, gcc, or at least the most recent version of it,
is employing the vmovq instruction on CPUs that don't support it,
e.g., Celeron G530 and G640T:
http://lists.linuxfromscratch.org/pipermail/lfs-support/2018-May/051993.html
http://lists.linuxfromscratch.org/pipermail/lfs-support/2018-May/052029.html
Solved here:
http://lists.linuxfromscratch.org/pipermail/lfs-support/2018-May/052008.html
So, libffi needs to disable support for avx and aes instructions on
Intel CPUs that don't support them. Just thought I'd send you a heads
up on this issue.
Cheers and thanks,
Mike Shell