Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 752093 - dev-qt/qtdeclarative fails compile with gcc11
Summary: dev-qt/qtdeclarative fails compile with gcc11
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: PATCH, PullRequest
Depends on:
Blocks: gcc-11
  Show dependency tree
 
Reported: 2020-11-01 10:02 UTC by andy
Modified: 2021-07-31 03:54 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,490.71 KB, text/x-log)
2020-11-01 10:02 UTC, andy
Details
qtdeclarative-gcc11.patch (file_752093.txt,1.17 KB, text/plain)
2020-11-01 10:04 UTC, andy
Details

Note You need to log in before you can comment on or make changes to this bug.
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.