Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 739252

Summary: media-libs/openal-1.20 uses sse2 instructions even when built with +sse -sse2 cpu flags
Product: Gentoo Linux Reporter: Ville Syrjala <syrjala>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED UPSTREAM    
Severity: normal CC: sam, Xeha
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ville Syrjala 2020-08-27 12:10:31 UTC
Some sse codepaths in openal now always use sse2 which leads to a library that uses sse2 instructions even when built for just sse1. This of course fails when executing the resulting code on a cpu w/o sse2.

None of the ALSOFT_*SSE* flags currently set by the ebuild are sufficient to disable the sse2 usage.

I hacked the ebuild as follows to get a working library:
src_configure() {
        my_configure() {
                local mycmakeargs=(
...
+                       -DHAVE_SSE_INTRINSICS=$(usex cpu_flags_x86_sse2)
Comment 1 Xeha 2020-12-10 22:35:27 UTC
I have the same issue but on i586, always enabling CPU flags which arent suitable.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-02-05 04:59:53 UTC
At least now, it seems to only do this when SSE2 is enabled, right?
Comment 3 Larry the Git Cow gentoo-dev 2021-02-05 05:03:33 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3e3ec977fcd5f0af63da5a46658aba98cd34a1a

commit d3e3ec977fcd5f0af63da5a46658aba98cd34a1a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-02-05 05:02:51 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-02-05 05:02:51 +0000

    media-libs/openal: bump to 1.21.1
    
    Bug: https://bugs.gentoo.org/739252
    Closes: https://bugs.gentoo.org/764056
    Closes: https://bugs.gentoo.org/738240
    Package-Manager: Portage-3.0.14, Repoman-3.0.2
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/openal/Manifest             |  1 +
 media-libs/openal/openal-1.21.1.ebuild | 80 ++++++++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+)