[Development] Werror check for headers causing FTBFS in sparc (cast-align)

Lisandro Damián Nicanor Pérez Meyer perezmeyer at gmail.com
Wed Dec 25 01:33:55 CET 2013

Hi! I've hitted a FTBFS in sparc while building qtsvg-opensource-src (by 
enabling the tests):

  /usr/include/qt5/QtCore/qhash.h:283:45: error: cast from 'QHashData::Node*'
  to 'QHash<QString, QVariant>::Node* {aka QHashNode<QString, QVariant>*}'
  increases required alignment of target type [-Werror=cast-align]

The full build log can be read here:


If I understand correctly Werror gets defined in 
qtbase/mkspecs/features/qt_headersclean.prf to check that public API abides 
certain rules.

Fixing this would be simple for me (distro-wide), just removing 
qtsvg/tests/auto/headersclean/* before building the package, but I would like 
to know if this kind of error is between the ones you want to catch in the 
public headers. If not, maybe adding -Wno-error=cast-align to 
qt_headersclean.prf could be a good idea.

Kinds regards, Lisandro.


Lisandro Damián Nicanor Pérez Meyer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131224/191793f9/attachment.sig>

More information about the Development mailing list