Package: src:qtbase-opensource-src
Version: 5.7.1+dfsg-3
Severity: normal
Tags: sid buster
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-7

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-7/g++-7, but succeeds to build with gcc-6/g++-6. The
severity of this report may be raised before the buster release.
There is no need to fix this issue in time for the stretch release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc7-20170126/qtbase-opensource-src_5.7.1+dfsg-3_unstable_gcc7.log
The last lines of the build log are at the end of this report.

To build with GCC 7, either set CC=gcc-7 CXX=g++-7 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-7/porting_to.html

[...]
                          ^
../../include/QtCore/../../src/corelib/global/qtypeinfo.h:69:24: error: invalid 
application of 'sizeof' to incomplete type 'QMimeMagicRuleMatcher'
         sizeOf = sizeof(T)
                        ^
In file included from ../../include/QtCore/qlist.h:1:0,
                 from 
../../include/QtCore/../../src/corelib/kernel/qobject.h:49,
                 from ../../include/QtCore/qobject.h:1,
                 from 
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:46,
                 from ../../include/QtCore/qcoreapplication.h:1,
                 from global/qt_pch.h:62:
../../include/QtCore/../../src/corelib/tools/qlist.h: In instantiation of 'void 
QList<T>::node_destruct(QList<T>::Node*, QList<T>::Node*) [with T = 
QMimeMagicRuleMatcher]':
../../include/QtCore/../../src/corelib/tools/qlist.h:861:18:   required from 
'void QList<T>::dealloc(QListData::Data*) [with T = QMimeMagicRuleMatcher]'
../../include/QtCore/../../src/corelib/tools/qlist.h:823:16:   required from 
'QList<T>::~QList() [with T = QMimeMagicRuleMatcher]'
mimetypes/qmimeprovider_p.h:137:7:   required from here
../../include/QtCore/../../src/corelib/tools/qlist.h:490:31: warning: possible 
problem detected in invocation of delete operator: [-Wdelete-incomplete]
         while(from != to) --to, delete reinterpret_cast<T*>(to->v);
../../include/QtCore/../../src/corelib/tools/qlist.h:490:65: warning: invalid 
use of incomplete type 'class QMimeMagicRuleMatcher'
         while(from != to) --to, delete reinterpret_cast<T*>(to->v);
                                                             ~~~~^
In file included from mimetypes/qmimedatabase.cpp:48:0:
mimetypes/qmimeprovider_p.h:65:7: note: forward declaration of 'class 
QMimeMagicRuleMatcher'
 class QMimeMagicRuleMatcher;
       ^~~~~~~~~~~~~~~~~~~~~
In file included from ../../include/QtCore/qlist.h:1:0,
                 from 
../../include/QtCore/../../src/corelib/kernel/qobject.h:49,
                 from ../../include/QtCore/qobject.h:1,
                 from 
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:46,
                 from ../../include/QtCore/qcoreapplication.h:1,
                 from global/qt_pch.h:62:
../../include/QtCore/../../src/corelib/tools/qlist.h:490:31: note: neither the 
destructor nor the class-specific operator delete will be called, even if they 
are declared when the class is defined
         while(from != to) --to, delete reinterpret_cast<T*>(to->v);
../../include/QtCore/../../src/corelib/tools/qlist.h:492:61: error: invalid use 
of incomplete type 'class QMimeMagicRuleMatcher'
         while (from != to) --to, reinterpret_cast<T*>(to)->~T();
                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
In file included from mimetypes/qmimedatabase.cpp:48:0:
mimetypes/qmimeprovider_p.h:65:7: note: forward declaration of 'class 
QMimeMagicRuleMatcher'
 class QMimeMagicRuleMatcher;
       ^~~~~~~~~~~~~~~~~~~~~
Makefile:34836: recipe for target '.obj/qmimedatabase.o' failed
make[3]: *** [.obj/qmimedatabase.o] Error 1
make[3]: Leaving directory 
'/<<BUILDDIR>>/qtbase-opensource-src-5.7.1+dfsg/src/corelib'
Makefile:137: recipe for target 'sub-corelib' failed
make[2]: *** [sub-corelib] Error 2
make[2]: Leaving directory '/<<BUILDDIR>>/qtbase-opensource-src-5.7.1+dfsg/src'
debian/rules:225: recipe for target 'override_dh_auto_build-arch' failed
make[1]: *** [override_dh_auto_build-arch] Error 2
make[1]: Leaving directory '/<<BUILDDIR>>/qtbase-opensource-src-5.7.1+dfsg'
debian/rules:97: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Reply via email to