Summary: | dev-qt/qtwebengine-5.15.2_p20211019 fails to build with clang: error: variable-sized object may not be initialized | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Marco Rebhan <me> |
Component: | Current packages | Assignee: | Qt Bug Alias <qt> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ionen, jstein, pulkitsukhija09, roberto.castagnola, sam, sultan |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=823857 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 829196 | ||
Bug Blocks: | 408963, 803482 | ||
Attachments: | build.log |
Description
Marco Rebhan
2021-12-03 18:51:52 UTC
I've built qtwebengine several times successfully against glibc-2.34, even older version, why that blocker now? (In reply to Andreas Sturmlechner from comment #1) > I've built qtwebengine several times successfully against glibc-2.34, even > older version, why that blocker now? Because it happens only with glibc-2.34 + clang. PTHREAD_STACK_MIN is no longer constant in glibc-2.34. Variable-sized arrarys is not allowed in C++, but both GCC and Clang have an extension to support it. However, Clang does not allow initialization. This is my workaround in Chromium: https://gitweb.gentoo.org/repo/gentoo.git/tree/www-client/chromium/files/chromium-glibc-2.34.patch#n29 Since when is systemwide-clang a factor for other blockers? Imo it must not block glibc stabilisation. How is the sandbox change related to glibc? The patch header does not make reference to it. (In reply to Andreas Sturmlechner from comment #3) > Since when is systemwide-clang a factor for other blockers? Imo it must not > block glibc stabilisation. I got the same in bug #823857. Feel free to unblock glibc stabilization, I don't care much either. (In reply to Andreas Sturmlechner from comment #4) > How is the sandbox change related to glibc? The patch header does not make > reference to it. This is only my quick hack to make it work. No response from upstream so far. glibc-2.34 is not supported by Chromium at the moment. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b363104490499e964301ec743e7e6d825255063 commit 3b363104490499e964301ec743e7e6d825255063 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2021-12-14 18:10:13 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2021-12-14 18:12:51 +0000 dev-qt/qtwebengine: 5.15.2_p20211210 snapshot bump Patched with security patches up to Chromium version: 96.0.4664.93 Snapshotted at: Branch: 5.15.8 Commit: 6369c52cebd276f03856dd333af727fd8427ac63 Submodule qtwebengine-chromium.git: Branch: 87-based Commit: 2918e073086af29bd3e4176cd2403dffa789fdc0 Bug: https://bugs.gentoo.org/828099 Bug: https://bugs.gentoo.org/829161 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> dev-qt/qtwebengine/Manifest | 1 + ...ngine-5.15.2_p20211210-sandbox-glibc-2.34.patch | 27 +++ .../qtwebengine-5.15.2_p20211210.ebuild | 228 +++++++++++++++++++++ 3 files changed, 256 insertions(+) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/qt.git/commit/?id=83411b823ced34db7cad8f19b7c4212b4af5ffe7 commit 83411b823ced34db7cad8f19b7c4212b4af5ffe7 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2021-10-17 06:43:59 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2021-12-24 23:55:51 +0000 dev-qt/qtwebengine: Sync patches from Gentoo ebuild repo - pdfium-system-lcms2 patch - supposed systemwide-clang w/ glibc-2.34 fix Bug: https://bugs.gentoo.org/828099 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> ...gine-5.15.2_p20211015-pdfium-system-lcms2.patch | 79 ++++++++++++++++++++++ ...ngine-5.15.2_p20211210-sandbox-glibc-2.34.patch | 27 ++++++++ dev-qt/qtwebengine/qtwebengine-5.15.2.9999.ebuild | 2 + 3 files changed, 108 insertions(+) Also fixed in stable. |