Cross compile Qt - error

Started by gaminn, October 20, 2015, 11:17:33 PM

Previous topic - Next topic

gaminn

Hi,
I'm following this manual https://www.olimex.com/forum/index.php?topic=3825.0 to cross compile Qt for Olinuxino. I have A10 with a10_Lime_debian_3.4.90_release_3 image and I'm trying to build latest Qt.

I'm able to procceed to compilation of Qt sources. However, make ends with many errors which I'm not able to understand. Can you please help?


../../include/QtCore/../../src/corelib/kernel/qmetatype.h:761:28: note: candidate is:
<built-in>:0:0: note: void* operator new(unsigned int)
<built-in>:0:0: note:   candidate expects 1 argument, 2 provided
../../include/QtCore/../../src/corelib/kernel/qmetatype.h: In instantiation of 'static void* QtMetaTypePrivate::QMetaTypeFunctionHelper<T, Accepted>::Construct(void*, const void*) [with T = QStringRef; bool Accepted = true]':
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1692:76:   required from 'int qRegisterNormalizedMetaType(const QByteArray&, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QStringRef; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QStringRef, true>::DefinedType]'
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1717:77:   required from 'int qRegisterMetaType(const char*, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QStringRef; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QStringRef, true>::DefinedType]'
../../include/QtCore/5.6.0/QtCore/private/../../../../../src/corelib/tools/qlocale_p.h:431:1:   required from here
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:760:59: error: no matching function for call to 'operator new(sizetype, void*&)'
             return new (where) T(*static_cast<const T*>(t));
                                                           ^
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:760:59: note: candidate is:
<built-in>:0:0: note: void* operator new(unsigned int)
<built-in>:0:0: note:   candidate expects 1 argument, 2 provided
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:761:28: error: no matching function for call to 'operator new(sizetype, void*&)'
         return new (where) T;
                            ^
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:761:28: note: candidate is:
<built-in>:0:0: note: void* operator new(unsigned int)
<built-in>:0:0: note:   candidate expects 1 argument, 2 provided
../../include/QtCore/../../src/corelib/kernel/qmetatype.h: In instantiation of 'static void* QtMetaTypePrivate::QMetaTypeFunctionHelper<T, Accepted>::Construct(void*, const void*) [with T = QList<Qt::DayOfWeek>; bool Accepted = true]':
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1692:76:   required from 'int qRegisterNormalizedMetaType(const QByteArray&, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QList<Qt::DayOfWeek>; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QList<Qt::DayOfWeek>, true>::DefinedType]'
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1717:77:   required from 'int qRegisterMetaType(const char*, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QList<Qt::DayOfWeek>; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QList<Qt::DayOfWeek>, true>::DefinedType]'
../../include/QtCore/5.6.0/QtCore/private/../../../../../src/corelib/tools/qlocale_p.h:432:1:   required from here
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:760:59: error: no matching function for call to 'operator new(sizetype, void*&)'
             return new (where) T(*static_cast<const T*>(t));
                                                           ^
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:760:59: note: candidate is:
<built-in>:0:0: note: void* operator new(unsigned int)
<built-in>:0:0: note:   candidate expects 1 argument, 2 provided
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:761:28: error: no matching function for call to 'operator new(sizetype, void*&)'
         return new (where) T;
                            ^
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:761:28: note: candidate is:
<built-in>:0:0: note: void* operator new(unsigned int)
<built-in>:0:0: note:   candidate expects 1 argument, 2 provided
../../include/QtCore/../../src/corelib/kernel/qmetatype.h: In instantiation of 'static void* QtMetaTypePrivate::QMetaTypeFunctionHelper<T, Accepted>::Construct(void*, const void*) [with T = QSystemLocale::CurrencyToStringArgument; bool Accepted = true]':
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1692:76:   required from 'int qRegisterNormalizedMetaType(const QByteArray&, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QSystemLocale::CurrencyToStringArgument; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QSystemLocale::CurrencyToStringArgument, true>::DefinedType]'
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1717:77:   required from 'int qRegisterMetaType(const char*, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QSystemLocale::CurrencyToStringArgument; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QSystemLocale::CurrencyToStringArgument, true>::DefinedType]'
../../include/QtCore/5.6.0/QtCore/private/../../../../../src/corelib/tools/qlocale_p.h:434:1:   required from here
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:760:59: error: no matching function for call to 'operator new(sizetype, void*&)'
             return new (where) T(*static_cast<const T*>(t));
                                                           ^
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:760:59: note: candidate is:
<built-in>:0:0: note: void* operator new(unsigned int)
<built-in>:0:0: note:   candidate expects 1 argument, 2 provided
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:761:28: error: no matching function for call to 'operator new(sizetype, void*&)'
         return new (where) T;
                            ^
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:761:28: note: candidate is:
<built-in>:0:0: note: void* operator new(unsigned int)
<built-in>:0:0: note:   candidate expects 1 argument, 2 provided
In file included from ../../include/QtCore/qhash.h:1:0,
                 from ../../include/QtCore/../../src/corelib/tools/qshareddata.h:40,
                 from ../../include/QtCore/qshareddata.h:1,
                 from ../../include/QtCore/../../src/corelib/io/qfileinfo.h:39,
                 from ../../include/QtCore/qfileinfo.h:1,
                 from ../../include/QtCore/../../src/corelib/io/qdir.h:38,
                 from ../../include/QtCore/qdir.h:1,
                 from global/qglobal.cpp:40:
../../include/QtCore/../../src/corelib/tools/qhash.h: In instantiation of 'static void QHash<Key, T>::duplicateNode(QHashData::Node*, void*) [with Key = QString; T = QVariant]':
../../include/QtCore/../../src/corelib/tools/qhash.h:567:92:   required from 'void QHash<Key, T>::detach_helper() [with Key = QString; T = QVariant]'
../../include/QtCore/../../src/corelib/tools/qhash.h:267:65:   required from 'void QHash<Key, T>::detach() [with Key = QString; T = QVariant]'
../../include/QtCore/../../src/corelib/tools/qhash.h:849:12:   required from 'void QHash<Key, T>::reserve(int) [with Key = QString; T = QVariant]'
../../include/QtCore/../../src/corelib/kernel/qvariant.h:773:38:   required from here
../../include/QtCore/../../src/corelib/tools/qhash.h:527:5: error: no matching function for call to 'operator new(sizetype, void*&)'
     new (newNode) Node(concreteNode->key, concreteNode->value, concreteNode->h, Q_NULLPTR);
     ^
../../include/QtCore/../../src/corelib/tools/qhash.h:527:5: note: candidate is:
<built-in>:0:0: note: void* operator new(unsigned int)
<built-in>:0:0: note:   candidate expects 1 argument, 2 provided
In file included from /home/martin/a10_Lime_debian_3.4.90_release_3/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/arm-linux-gnueabihf/include/c++/4.8.2/string:53:0,
                 from /home/martin/a10_Lime_debian_3.4.90_release_3/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/arm-linux-gnueabihf/include/c++/4.8.2/random:41,
                 from /home/martin/a10_Lime_debian_3.4.90_release_3/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/arm-linux-gnueabihf/include/c++/4.8.2/bits/stl_algo.h:65,
                 from /home/martin/a10_Lime_debian_3.4.90_release_3/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/arm-linux-gnueabihf/include/c++/4.8.2/algorithm:62,
                 from ../../include/QtCore/../../src/corelib/global/qglobal.h:85,
                 from ../../include/QtCore/qglobal.h:1,
                 from ../../include/QtCore/../../src/corelib/tools/qchar.h:37,
                 from ../../include/QtCore/qchar.h:1,
                 from ../../include/QtCore/../../src/corelib/tools/qstring.h:41,
                 from ../../include/QtCore/qstring.h:1,
                 from global/qglobal.cpp:36:
/home/martin/a10_Lime_debian_3.4.90_release_3/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/arm-linux-gnueabihf/include/c++/4.8.2/bits/basic_string.tcc: In instantiation of 'static std::basic_string<_CharT, _Traits, _Alloc>::_Rep* std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_create(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = unsigned int]':
/home/martin/a10_Lime_debian_3.4.90_release_3/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/arm-linux-gnueabihf/include/c++/4.8.2/bits/basic_string.tcc:138:55:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&, std::forward_iterator_tag) [with _FwdIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
/home/martin/a10_Lime_debian_3.4.90_release_3/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/arm-linux-gnueabihf/include/c++/4.8.2/bits/basic_string.h:1725:56:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc&, std::__false_type) [with _InIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
/home/martin/a10_Lime_debian_3.4.90_release_3/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/arm-linux-gnueabihf/include/c++/4.8.2/bits/basic_string.h:1746:58:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&) [with _InIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
/home/martin/a10_Lime_debian_3.4.90_release_3/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/arm-linux-gnueabihf/include/c++/4.8.2/bits/basic_string.tcc:207:51:   required from 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = unsigned int]'
../../include/QtCore/../../src/corelib/tools/qstring.h:1327:77:   required from here
/home/martin/a10_Lime_debian_3.4.90_release_3/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/arm-linux-gnueabihf/include/c++/4.8.2/bits/basic_string.tcc:608:33: error: no matching function for call to 'operator new(sizetype, void*&)'
       _Rep *__p = new (__place) _Rep;
                                 ^
/home/martin/a10_Lime_debian_3.4.90_release_3/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/arm-linux-gnueabihf/include/c++/4.8.2/bits/basic_string.tcc:608:33: note: candidate is:
<built-in>:0:0: note: void* operator new(unsigned int)
<built-in>:0:0: note:   candidate expects 1 argument, 2 provided
In file included from ../../include/QtCore/qmetatype.h:1:0,
                 from ../../include/QtCore/../../src/corelib/kernel/qobject.h:48,
                 from ../../include/QtCore/qobject.h:1,
                 from ../../include/QtCore/../../src/corelib/io/qiodevice.h:39,
                 from ../../include/QtCore/qiodevice.h:1,
                 from ../../include/QtCore/../../src/corelib/io/qfiledevice.h:37,
                 from ../../include/QtCore/qfiledevice.h:1,
                 from ../../include/QtCore/../../src/corelib/io/qfile.h:37,
                 from ../../include/QtCore/qfile.h:1,
                 from ../../include/QtCore/../../src/corelib/io/qfileinfo.h:37,
                 from ../../include/QtCore/qfileinfo.h:1,
                 from ../../include/QtCore/../../src/corelib/io/qdir.h:38,
                 from ../../include/QtCore/qdir.h:1,
                 from global/qglobal.cpp:40:
../../include/QtCore/../../src/corelib/kernel/qmetatype.h: In instantiation of 'static void* QtMetaTypePrivate::QMetaTypeFunctionHelper<T, Accepted>::Construct(void*, const void*) [with T = Qt::DayOfWeek; bool Accepted = true]':
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1692:76:   required from 'int qRegisterNormalizedMetaType(const QByteArray&, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = Qt::DayOfWeek; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<Qt::DayOfWeek, true>::DefinedType]'
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1824:47:   required from 'static int QMetaTypeIdQObject<T, 16>::qt_metatype_id() [with T = Qt::DayOfWeek]'
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1596:97:   required from 'static constexpr int QMetaTypeId2<T>::qt_metatype_id() [with T = Qt::DayOfWeek]'
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1738:44:   required from 'constexpr int qMetaTypeId() [with T = Qt::DayOfWeek]'
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1018:58:   [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:378:12:   required from 'static bool QtPrivate::ConverterFunctor<From, To, UnaryFunction>::convert(const QtPrivate::AbstractConverterFunction*, const void*, void*) [with From = QList<Qt::DayOfWeek>; To = QtMetaTypePrivate::QSequentialIterableImpl; UnaryFunction = QtMetaTypePrivate::QSequentialIterableConvertFunctor<QList<Qt::DayOfWeek> >]'
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:370:30:   required from 'QtPrivate::ConverterFunctor<From, To, UnaryFunction>::ConverterFunctor(UnaryFunction) [with From = QList<Qt::DayOfWeek>; To = QtMetaTypePrivate::QSequentialIterableImpl; UnaryFunction = QtMetaTypePrivate::QSequentialIterableConvertFunctor<QList<Qt::DayOfWeek> >]'
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:2222:78:   required from 'static bool QtPrivate::ValueTypeIsMetaType<T, true>::registerConverter(int) [with T = QList<Qt::DayOfWeek>]'
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1695:79:   required from 'int qRegisterNormalizedMetaType(const QByteArray&, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QList<Qt::DayOfWeek>; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QList<Qt::DayOfWeek>, true>::DefinedType]'
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1717:77:   required from 'int qRegisterMetaType(const char*, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QList<Qt::DayOfWeek>; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QList<Qt::DayOfWeek>, true>::DefinedType]'
../../include/QtCore/5.6.0/QtCore/private/../../../../../src/corelib/tools/qlocale_p.h:432:1:   required from here
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:760:59: error: no matching function for call to 'operator new(sizetype, void*&)'
             return new (where) T(*static_cast<const T*>(t));
                                                           ^
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:760:59: note: candidate is:
<built-in>:0:0: note: void* operator new(unsigned int)
<built-in>:0:0: note:   candidate expects 1 argument, 2 provided
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:761:28: error: no matching function for call to 'operator new(sizetype, void*&)'
         return new (where) T;
                            ^
../../include/QtCore/../../src/corelib/kernel/qmetatype.h:761:28: note: candidate is:
<built-in>:0:0: note: void* operator new(unsigned int)
<built-in>:0:0: note:   candidate expects 1 argument, 2 provided
make[3]: *** [.obj/qglobal.o] Error 1
make[3]: Leaving directory `/home/martin/a10_Lime_debian_3.4.90_release_3/qt5/qtbase/src/corelib'
make[2]: *** [sub-corelib-make_first] Error 2
make[2]: Leaving directory `/home/martin/a10_Lime_debian_3.4.90_release_3/qt5/qtbase/src'
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory `/home/martin/a10_Lime_debian_3.4.90_release_3/qt5/qtbase'
make: *** [module-qtbase-make_first] Error 2