Summary: | dev-qt/qtdeclarative-5.7.1 with gcc-6 crashes at runtime | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Szymon Szypulski <ch4os> |
Component: | Current packages | Assignee: | Qt Bug Alias <qt> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | draget-gentoo, josef64, jstein |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
URL: | https://bugreports.qt.io/browse/QTBUG-55482 | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=632552 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 582084 |
Description
Szymon Szypulski
2017-07-24 18:19:42 UTC
I doubt that has anything to do with gcc-6 as it works just fine on two machines here. Szymon, do you have anything (upstream-bug) to back that up? QTBUG-52057 was only similar case I have found. But it supposed to be fixed in 5.7.1 (CMAKE_CXXFLAGS include -fno-lifetime-dse). After all, I did not change anything else intentionally. I do not have any other related upstream bug. We were able to reproduce this in #gentoo-kde today. From src/qml/qml.pro: greaterThan(QT_GCC_MAJOR_VERSION, 5) { # Our code is bad. Temporary workaround. QMAKE_CXXFLAGS += -fno-delete-null-pointer-checks -fno-lifetime-dse } which I suppose we blow away when we override in the eclass. Suggested patch: @@ -3,7 +3,7 @@ EAPI=6 PYTHON_COMPAT=( python2_7 python3_{4,5} ) -inherit python-any-r1 qt5-build +inherit flag-o-matic python-any-r1 toolchain-funcs qt5-build DESCRIPTION="The QML and Quick modules for the Qt5 framework" @@ -34,6 +34,12 @@ RDEPEND="${COMMON_DEPEND} " src_prepare() { + # this is supposed to be handled by the build system (src/qml/qml.pro), + # fails because we override QMAKE_CXXFLAGS. bug 626070 + if tc-is-gcc && [[ $(gcc-major-version) -ge 6 ]]; then + append-cxxflags -fno-delete-null-pointer-checks -fno-lifetime-dse + fi + use jit || PATCHES+=("${FILESDIR}/${PN}-5.4.2-disable-jit.patch") In overlay: https://gitweb.gentoo.org/proj/qt.git/commit/?id=4512a456df71b4e9efb59b9952cc74ea565d9a03 The workaround should be applied to 5.6.x and 5.7.x only. 5.8 and later versions are not affected http://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=60c4810c73e41e3c4b930206b9f0a5c56a2b9026 Oops, reverted, thanks The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2093a67d115b1d878be6372038927710b2af1027 commit 2093a67d115b1d878be6372038927710b2af1027 Author: Michael Palimaka <kensington@gentoo.org> AuthorDate: 2017-09-25 13:52:30 +0000 Commit: Michael Palimaka <kensington@gentoo.org> CommitDate: 2017-09-25 13:52:50 +0000 dev-qt/qtdeclarative: revision bump fixes crash when built with GCC 6 Closes: https://bugs.gentoo.org/626070 Package-Manager: Portage-2.3.8, Repoman-2.3.3 dev-qt/qtdeclarative/qtdeclarative-5.7.1-r1.ebuild | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) *** Bug 635024 has been marked as a duplicate of this bug. *** |