Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915691 - dev-qt/qtbase-6.6.0 doesn't compile because of avx stuff, please add this patch
Summary: dev-qt/qtbase-6.6.0 doesn't compile because of avx stuff, please add this patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-13 15:57 UTC by Luke A. Guest
Modified: 2023-10-14 23:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke A. Guest 2023-10-13 15:57:10 UTC
As per the previous avx issues, they have a patch which is in the git version, it is this:

https://codereview.qt-project.org/gitweb?p=qt/qtbase.git;a=blobdiff;f=src/corelib/global/qsimd_p.h;h=2136b390d64a6ac082bae72f11b0031fbe08b0b5;hp=55adcef6598feca6b11da3c3b039570b275a1919;hb=39d3af0c29147ff319e89c0be602d99af0af0996;hpb=6da6a17de9ccfcd5458ea72507b131660e0ab948


Reproducible: Always

Steps to Reproduce:
1.Compile qtbase-6.6.0 on an older machine maybe?
2.
3.
Actual Results:  
Fail to build

Expected Results:  
build

fx-8350 cpu, others with similar hw get this issue.


See https://bugreports.qt.io/browse/QTBUG-114719
Comment 1 Luke A. Guest 2023-10-13 16:14:11 UTC
I applied that patch by hand and it build's here.
Comment 2 Ionen Wolkens gentoo-dev 2023-10-13 16:14:25 UTC
Huh, that's odd. This patch is included in 6.5.3 but seem missed the 6.6.0 release?

eclass has workarounds to handle this for <6.5.3 but it is skipping the fma bit for >=6.5.3 given it expected it to be fixed.

build.log would be nice to be able to confirm but guess I'll just extend the eclass workaround for now (would rather not modify system headers if possible).
Comment 3 Larry the Git Cow gentoo-dev 2023-10-13 16:34:51 UTC
The bug has been closed via the following commit(s):

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

commit 5dbe5492e36a97ee169ed1490d8281691f9cc7dd
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2023-10-13 16:32:28 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2023-10-13 16:34:23 +0000

    qt6-build.eclass: extend avx2/fma mismatch workaround to 6.6.0
    
    6.6.0 is lacking qsimd_p.h changes that 6.5.3 had, will be in 6.6.1.
    
    Closes: https://bugs.gentoo.org/915691
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 eclass/qt6-build.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 4 Luke A. Guest 2023-10-14 23:37:20 UTC
Yup, builds now. Thanks.