As of mesa 21.x, the meson build system is adding the flags "-msse2 -mfpmath=sse" to compilation commands on all x86 builds. This causes problems for systems without sse2, including my i586 system, and processors such as Pentium 3 and Athlon. An option is provided in the meson build system to disable sse2: https://cgit.freedesktop.org/mesa/mesa/tree/meson_options.txt?h=21.2#n502 Please add an option CPU_FLAGS_X86="sse2" to the mesa ebuild that controls the "sse2" option.
Created attachment 741303 [details, diff] mesa 21.2.1 add sse option patch I've attached an example patch to add the option to the mesa 21.2.1 ebuild, which fixes illegal instruction issues on my i586 test system. Similar patches are suitable for all of the mesa 21.* and 9999 ebuilds.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff813645a6e8b86962dbb4152a6cafa00035a2bb commit ff813645a6e8b86962dbb4152a6cafa00035a2bb Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2021-10-30 20:28:58 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2021-10-30 23:04:12 +0000 media-libs/mesa: Add CPU_FLAGS_X86=sse2 option Thanks to Calvin Walton for the suggestion and the patch! Closes: https://bugs.gentoo.org/814824 Signed-off-by: Matt Turner <mattst88@gentoo.org> media-libs/mesa/mesa-21.1.8-r1.ebuild | 3 ++- media-libs/mesa/mesa-9999.ebuild | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)