[Development] [5.7-beta] compile error with xcode-6.4
Tim Blechmann
tim at klingt.org
Tue May 3 16:33:46 CEST 2016
compiling the 5.7-beta tarball with xcode-6.4 fails with:
> In file included from /Users/tim/dev/qt3rd/qtbase/src/gui/image/qicon.cpp:1:
> In file included from /Users/tim/dev/qt3rd/qtbase/src/gui/kernel/qt_gui_pch.h:69:
> In file included from /Users/tim/dev/qt3rd/qtbase/include/QtGui/qbitmap.h:1:
> In file included from /Users/tim/dev/qt3rd/qtbase/include/QtGui/../../src/gui/image/qbitmap.h:43:
> In file included from /Users/tim/dev/qt3rd/qtbase/include/QtGui/qpixmap.h:1:
> In file included from /Users/tim/dev/qt3rd/qtbase/include/QtGui/../../src/gui/image/qpixmap.h:47:
> In file included from /Users/tim/dev/qt3rd/qtbase/include/QtCore/qsharedpointer.h:1:
> In file included from /Users/tim/dev/qt3rd/qtbase/include/QtCore/../../src/corelib/tools/qsharedpointer.h:48:
> In file included from /Users/tim/dev/qt3rd/qtbase/include/QtCore/qsharedpointer_impl.h:1:
> In file included from /Users/tim/dev/qt3rd/qtbase/include/QtCore/../../src/corelib/tools/qsharedpointer_impl.h:65:
> In file included from /Users/tim/dev/qt3rd/qtbase/include/QtCore/qdebug.h:1:
> In file included from /Users/tim/dev/qt3rd/qtbase/include/QtCore/../../src/corelib/io/qdebug.h:51:
> In file included from /Users/tim/dev/qt3rd/qtbase/include/QtCore/qvector.h:1:
> /Users/tim/dev/qt3rd/qtbase/include/QtCore/../../src/corelib/tools/qvector.h:759:21: error: destination for this 'memmove' call is a pointer to class containing a dynamic class
> 'QPixmap'; vtable pointer will be overwritten [-Werror,-Wdynamic-class-memaccess]
> memmove(abegin, aend, (d->size - itemsToErase - itemsUntouched) * sizeof(T));
> ~~~~~~~ ^
> /Users/tim/dev/qt3rd/qtbase/include/QtCore/../../src/corelib/tools/qvector.h:450:3: note: in instantiation of member function 'QVector<QPixmapIconEngineEntry>::erase' requested
> here
> erase(d->begin() + i, d->begin() + i + 1); }
> ^
> /Users/tim/dev/qt3rd/qtbase/src/gui/image/qicon.cpp:288:25: note: in instantiation of member function 'QVector<QPixmapIconEngineEntry>::remove' requested here
> pixmaps.remove(idx);
> ^
> /Users/tim/dev/qt3rd/qtbase/include/QtCore/../../src/corelib/tools/qvector.h:759:21: note: explicitly cast the pointer to silence this warning
> memmove(abegin, aend, (d->size - itemsToErase - itemsUntouched) * sizeof(T));
> ^
> (void*)
> 1 error generated.
has support for xcode-6.4 been dropped?
https://wiki.qt.io/Qt_5.7_Tools_and_Versions still lists OSX 10.9 with
xcode-6.1.1
thanks a lot,
tim
More information about the Development
mailing list