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

Bug 663976

Summary: dev-qt/qtdeclarative-5.11.1: qmlcachegen crashes with unaligned accesses
Product: Gentoo Linux Reporter: Rolf Eike Beer <eike>
Component: Current packagesAssignee: Qt Bug Alias <qt>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: Sparc64   
OS: Linux   
URL: https://codereview.qt-project.org/#/c/239155/
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 371525    

Description Rolf Eike Beer archtester 2018-08-18 15:45:29 UTC
When building qtquickcontrols or anything else that calls qmlcachegen:

/usr/lib/qt5/bin/qmlcachegen -o ../../qml/QtQuick/Extras/Dial.qmlc Dial.qml
make[2]: *** [Makefile:489: ../../qml/QtQuick/Extras/Dial.qmlc] Bus error

I will look into this and report it upstream next week.
Comment 1 Rolf Eike Beer archtester 2018-08-25 07:34:29 UTC
I have discussed this with the upstream maintainer. The way we will go is to make sure things are properly aligned when written, i.e. introduce some padding if necessary. This will not happen in 5.11 anymore, because that branch will receive little attention.

My linked patch just ensures that things are written with memcpy() which can live with the missing alignment. I'm not sure what happens on the other side, i.e. when these things are read back and used. I'm almost certain that this will suffer from the same problems.

So, either a minimal version of my initial patch is used so things can be written, and we just wait what happens when things are used (the autotests would be handy), or qtdeclarative and every dependency needs to be masked on sparc.
Comment 2 Rolf Eike Beer archtester 2018-09-15 08:09:35 UTC
Qt 5.12 should be fine, at least I can now build qtquickcontrols when using the current version. $url points to the patch that fixed the remaining issues I have seen so far.

I don't think Qt 5.11.* can become stable on sparc.
Comment 3 Andreas Sturmlechner gentoo-dev 2021-08-23 00:50:45 UTC
Assuming this is fixed.