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

Bug 752093

Summary: dev-qt/qtdeclarative fails compile with gcc11
Product: Gentoo Linux Reporter: andy <hedmoo>
Component: Current packagesAssignee: Qt Bug Alias <qt>
Status: RESOLVED FIXED    
Severity: normal CC: hedmoo
Priority: Normal Keywords: PATCH, PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/19025
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: build.log
qtdeclarative-gcc11.patch

Description andy 2020-11-01 10:02:25 UTC
Created attachment 669527 [details]
build.log

dev-qt/qtdeclarative fails compile with gcc11.
se build.log
Comment 1 andy 2020-11-01 10:04:29 UTC
Created attachment 669530 [details]
qtdeclarative-gcc11.patch
Comment 2 Larry the Git Cow gentoo-dev 2021-01-24 13:03:42 UTC
The bug has been closed via the following commit(s):

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

commit 6733c610258ddf66de113f23dde026e31f7a8069
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-01-10 22:05:58 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-01-24 13:03:13 +0000

    dev-qt/qtdeclarative: Fix build with GCC-11
    
    Closes: https://bugs.gentoo.org/752093
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../files/qtdeclarative-5.15.2-gcc11.patch         | 31 ++++++++++++++++++++++
 dev-qt/qtdeclarative/qtdeclarative-5.15.2.ebuild   |  1 +
 2 files changed, 32 insertions(+)
Comment 3 jospezial 2021-04-29 14:22:23 UTC
Still not fixed on upstream open source gits.
dev-qt/qtdeclarative-5.15.9999 fails
Comment 4 jospezial 2021-05-02 03:31:26 UTC
/etc/portage/patches/dev-qt/qtdeclarative-5.15.9999/qtdeclarative-5.15.2-gcc11.patch (copy from ::gentoo)

[ebuild   R   *] dev-qt/qtdeclarative-5.15.9999:5/5.15::qt  USE="jit vulkan widgets -debug -gles2-only -localstorage -test" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) dev-qt/qtdeclarative-5.15.9999::qt
>>> Installing (1 of 1) dev-qt/qtdeclarative-5.15.9999::qt
>>> Jobs: 1 of 1 complete                           Load avg: 1.91, 1.42, 0.90

 * Messages for package dev-qt/qtdeclarative-5.15.9999:

 * User patches applied.


log:
>>> Preparing source in /var/tmp/portage/dev-qt/qtdeclarative-5.15.9999/work/qtdeclarative-5.15.9999 ...
 * Applying qtdeclarative-5.14.2-QQuickItemView-fix-maxXY-extent.patch ...
 [ ok ]
 * Applying qtdeclarative-5.15.2-gcc11.patch ...
 [ ok ]
 * User patches applied.
>>> Source prepared
Comment 5 jospezial 2021-07-31 03:54:17 UTC
https://invent.kde.org/qt/qt/qtdeclarative/-/merge_requests/2
https://invent.kde.org/qt/qt/qtdeclarative/-/commit/4f08a2da5b0da675cf6a75683a43a106f5a1e7b8
"Add missing limits include to fix build with GCC 11
This is not required for Qt 6, since it is indirectly pulled via
qanystrigview.h, but it is for Qt 5 (where qanystrigview does
not exist) and, in any case, it is good to declare all used headers
and not rely on them being implicitly pulled."

They did no related change to src/qml/jsruntime/qv4regexp.cpp.

dev-qt/qtdeclarative-5.15.9999::qt compile tested without our patch with gcc-11.2.