Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937809 - dev-qt/qtbase-6.7.2-r1 fails to compile with GCC 15 (ODR violation, multiple definition of `QtPrivate::IsFloatType_v<_Float16>'; ...)
Summary: dev-qt/qtbase-6.7.2-r1 fails to compile with GCC 15 (ODR violation, multiple ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: gcc-15 937808 937824 937825 937828 937829
  Show dependency tree
 
Reported: 2024-08-12 13:36 UTC by Agostino Sarubbo
Modified: 2024-08-26 22:08 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,425.01 KB, text/plain)
2024-08-12 13:36 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-08-12 13:36:02 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-qt/qtbase-6.7.2-r1 fails to compile with -fno-common.
Discovered on: amd64 (internal ref: gcc15_tinderbox)
System: GCC-15-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-15)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0012
Comment 1 Agostino Sarubbo gentoo-dev 2024-08-12 13:36:03 UTC
Created attachment 899936 [details]
build.log

build log and emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-12 13:43:01 UTC
This is actually an ODR violation.

Please apply https://codereview.qt-project.org/c/qt/qtbase/+/582403 to qtbase, then rebuild it.

Any errors like this in Qt or KDE packages will be the same as this, until that patch is applied.
Comment 3 Ionen Wolkens gentoo-dev 2024-08-12 17:57:47 UTC
Meant to wait a bit more, but if it's going to cause that much noise with bugs guess I'll have a look today.
Comment 4 Larry the Git Cow gentoo-dev 2024-08-13 01:27:31 UTC
The bug has been closed via the following commit(s):

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

commit 486b070b0523b91176f5c56f93635de9a15f6a1c
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-08-12 21:05:42 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-08-13 01:25:35 +0000

    dev-qt/qtbase: fix build with gcc15, incl. for revdeps
    
    Issue is in public headers, so revbump is necessary. Please ensure
    update to qtbase-6.7.2-r2 before reporting new bugs while testing
    gcc15. Thankfully most normal users should have updated long before
    gcc15 is keyworded (and further stabled) so there should be little
    need to set lower bounds.
    
    Closes: https://bugs.gentoo.org/937808
    Closes: https://bugs.gentoo.org/937809
    Closes: https://bugs.gentoo.org/937824
    Closes: https://bugs.gentoo.org/937825
    Closes: https://bugs.gentoo.org/937828
    Closes: https://bugs.gentoo.org/937829
    Thanks-to: Sam James <sam@gentoo.org>
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 dev-qt/qtbase/files/qtbase-6.7.2-gcc15-odr.patch   | 32 ++++++++++++++++++++++
 ...base-6.7.2-r1.ebuild => qtbase-6.7.2-r2.ebuild} |  1 +
 dev-qt/qtbase/qtbase-6.7.9999.ebuild               |  1 +
 dev-qt/qtbase/qtbase-6.8.9999.ebuild               |  1 +
 dev-qt/qtbase/qtbase-6.9999.ebuild                 |  1 +
 5 files changed, 36 insertions(+)
Comment 5 jospezial 2024-08-26 09:22:38 UTC
merged upstream
Please remove the patch from the live ebuilds.
Comment 6 Larry the Git Cow gentoo-dev 2024-08-26 22:08:46 UTC
The bug has been referenced in the following commit(s):

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

commit d949be9fd01f16d6f6ddaf55f4bbc418d1be8ba4
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-08-26 22:06:26 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-08-26 22:06:39 +0000

    dev-qt/qtbase: drop upstreamed patch
    
    Bug: https://bugs.gentoo.org/937809
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 dev-qt/qtbase/qtbase-6.7.9999.ebuild | 1 -
 dev-qt/qtbase/qtbase-6.8.9999.ebuild | 1 -
 dev-qt/qtbase/qtbase-6.9999.ebuild   | 1 -
 3 files changed, 3 deletions(-)