Package: qdjango Version: 0.6.2-1 Severity: important User: [email protected] Usertags: ftbfs-gcc-6
This package fails to build with GCC 6. GCC 6 has not been released yet, but it's expected that GCC 6 will become the default compiler for stretch. Note that only the first error is reported; there might be more. You can find a snapshot of GCC 6 in experimental. To build with GCC 6, you can set CC=gcc-6 CXX=g++-6 explicitly. You may be able to find out more about this issue at https://gcc.gnu.org/gcc-6/changes.html > sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux ... > g++ -c -m64 -pipe -g -O2 -fstack-protector-strong -Wformat > -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -W -D_REENTRANT > -fPIC -DQDJANGO_SHARED -DQT_NO_DEBUG -DQT_TESTLIB_LIB -DQT_SQL_LIB > -DQT_CORE_LIB > -DQT_TESTCASE_BUILDDIR='"/<<PKGBUILDDIR>>/tests/db/qdjangocompiler"' -I. > -I../../../tests -I../../../src/db -I../../../src/http -I../../db -isystem > /usr/include/x86_64-linux-gnu/qt5 -isystem > /usr/include/x86_64-linux-gnu/qt5/QtTest -isystem > /usr/include/x86_64-linux-gnu/qt5/QtSql -isystem > /usr/include/x86_64-linux-gnu/qt5/QtCore -I. > -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o tst_qdjangocompiler.o > tst_qdjangocompiler.cpp > In file included from > /usr/include/x86_64-linux-gnu/qt5/QtCore/qnamespace.h:37:0, > from > /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:41, > from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:40, > from /usr/include/x86_64-linux-gnu/qt5/QtSql/qsqldriver.h:37, > from /usr/include/x86_64-linux-gnu/qt5/QtSql/QSqlDriver:1, > from tst_qdjangocompiler.cpp:18: > /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h: In instantiation of > 'constexpr int qMetaTypeId() [with T = QDjangoWhere]': > tst_qdjangocompiler.cpp:602:5: required from here > /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h:1725:5: error: static > assertion failed: Type is not registered, please use the Q_DECLARE_METATYPE > macro to make it known to Qt's meta-object system > Q_STATIC_ASSERT_X(QMetaTypeId2<T>::Defined, "Type is not registered, > please use the Q_DECLARE_METATYPE macro to make it known to Qt's meta-object > system"); > ^ > > In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:48:0, > from /usr/include/x86_64-linux-gnu/qt5/QtSql/qsqldriver.h:37, > from /usr/include/x86_64-linux-gnu/qt5/QtSql/QSqlDriver:1, > from tst_qdjangocompiler.cpp:18: > /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h: In instantiation of > 'static constexpr int QMetaTypeId2<T>::qt_metatype_id() [with T = > QDjangoWhere]': > /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h:1726:43: required from > 'constexpr int qMetaTypeId() [with T = QDjangoWhere]' > tst_qdjangocompiler.cpp:602:5: required from here > /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h:1584:96: error: > 'qt_metatype_id' is not a member of 'QMetaTypeId<QDjangoWhere>' > static inline Q_DECL_CONSTEXPR int qt_metatype_id() { return > QMetaTypeId<T>::qt_metatype_id(); } > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ > > tst_qdjangocompiler.cpp:672:1: error: specialization of > 'QMetaTypeId<QDjangoWhere>' after instantiation > Q_DECLARE_METATYPE(QDjangoWhere) > ^ > > tst_qdjangocompiler.cpp:672:1: error: redefinition of 'struct > QMetaTypeId<QDjangoWhere>' > /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h:1576:8: error: previous > definition of 'struct QMetaTypeId<QDjangoWhere>' > struct QMetaTypeId : public QMetaTypeIdQObject<T> > ^~~~~~~~~~~ > > Makefile:359: recipe for target 'tst_qdjangocompiler.o' failed -- Martin Michlmayr Linux for HPE Helion, Hewlett Packard Enterprise

