[Interest] tst_qatomicinteger build failure (5.9 i386/x86_64)

Christian Gagneraud chgans at gmail.com
Fri Sep 1 08:37:37 CEST 2017


Hi there,

Back on my 32 bits build of Qt

I'm having a build failure on tst_qatomicinteger for qlonglong.

Static failure: Q_STATIC_ASSERT(Q_ALIGNOF(QAtomicInteger<T>) ==
Q_ALIGNOF(TypeInStruct));

Sounds very much like a 32/64 bits issue.

Any idea on what is going on?

Thanks in advance,
Chris

--------------------
KUbuntu 17.04, gcc (Ubuntu 6.3.0-12ubuntu2) 6.3.0 20170406
$ git show
commit 4b5af2de682541e0077298f22a05f36f80784151
Author: Qt Submodule Update Bot <qt_submodule_update_bot at qt-project.org>
Date:   Tue Apr 11 16:03:07 2017 +0200

    Update submodules on '5.9' in qt5

    Change-Id: Id6c112e68c465ae52d49f4b35bee648894a35fef
    Reviewed-by: Liang Qi <liang.qi at qt.io>
--------------------
cd qlonglong/ && ( test -e Makefile ||
/home/krys/Projects/qt5/qtbase/bin/qmake -o Makefile
/home/krys/Projects/qt5/qtbase/tests/auto/corelib/thread/qatomicinteger/qlonglong/qlonglong.pro
) && make -f Makefile
make[7]: Entering directory
'/home/krys/Projects/qt5/qtbase/tests/auto/corelib/thread/qatomicinteger/qlonglong'
g++ -c -m32 -pipe -O2 -Wall -W -D_REENTRANT -fPIC
-DQATOMIC_TEST_TYPE=qlonglong
-Dtst_QAtomicIntegerXX=tst_QAtomicInteger_qlonglong
-D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG
-DQT_TESTLIB_LIB -DQT_CORE_LIB
-DQT_TESTCASE_BUILDDIR='"/home/krys/Projects/qt5/qtbase/tests/auto/corelib/thread/qatomicinteger/qlonglong"'
-I. -I../../../../../../include -I../../../../../../include/QtTest
-I../../../../../../include/QtCore -I.moc
-I../../../../../../mkspecs/linux-g++-32 -o .obj/tst_qatomicinteger.o
../tst_qatomicinteger.cpp
In file included from ../../../../../../include/QtCore/qglobal.h:1:0,
                 from ../../../../../../include/QtCore/QtCore:4,
                 from ../../../../../../include/QtTest/QtTestDepends:3,
                 from ../../../../../../include/QtTest/QtTest:3,
                 from ../tst_qatomicinteger.cpp:53:
../tst_qatomicinteger.cpp: In member function ‘void
tst_QAtomicInteger_qlonglong::static_checks()’:
../../../../../../include/QtCore/../../src/corelib/global/qglobal.h:732:36:
error: static assertion failed: Q_ALIGNOF(QAtomicInteger<T>) ==
Q_ALIGNOF(TypeInStruct)
 #define Q_STATIC_ASSERT(Condition) static_assert(bool(Condition), #Condition)
                                    ^
../tst_qatomicinteger.cpp:193:5: note: in expansion of macro ‘Q_STATIC_ASSERT’
     Q_STATIC_ASSERT(Q_ALIGNOF(QAtomicInteger<T>) == Q_ALIGNOF(TypeInStruct));
     ^~~~~~~~~~~~~~~
Makefile:1495: recipe for target '.obj/tst_qatomicinteger.o' failed
--------------------



More information about the Interest mailing list