[Slackbuilds-users] qwt-6.1.6 fails to build
mickski56
mickski56 at hotmail.com
Sun Jan 17 20:39:38 UTC 2021
> The wqt upgrade in today's list failed to build. The log of the build
> attempt is attached. Installed here is qt5-5.12.8-x86_64-1_SBo so I
> don't understand why qwt is building against qt4.
>
> What was not captured in the attached file are these lines:
> patching file qwtconfig.pri
> Hunk #4 succeeded at 60 with fuzz 1.
> Hunk #5 succeeded at 137 with fuzz 1.
> patching file src/src.pro
> patching file designer/designer.pro
> Hunk #1 succeeded at 98 (offset 15 lines).
> patching file examples/examples.pri
> Info: creating stash file /tmp/SBo/qwt-6.1.6/build-qt4/.qmake.stash
> cd src/ && ( test -e Makefile || /usr/lib64/qt5/bin/qmake -o Makefile
> /tmp/SBo/qwt-6.1.6/src/src.pro LIBDIRSUFFIX=64 ) && make -f Makefile
> make[1]: Entering directory '/tmp/SBo/qwt-6.1.6/build-qt4/src'
> compiling ../../src/qwt_abstract_scale_draw.cpp In file included from
> /usr/include/c++/5.5.0/type_traits:35:0, from
> /usr/include/qt5/QtCore/qglobal.h:45, from ../../src/qwt_global.h:13,
> from ../../src/qwt_abstract_scale_draw.h:13,
> from ../../src/qwt_abstract_scale_draw.cpp:10:
> /usr/include/c++/5.5.0/bits/c++0x_warning.h:32:2: error: #error This
> file requires compiler and library support for the ISO C++ 2011
> standard. This support must be enabled with the -std=c++11 or
> -std=gnu++11 compiler options. #error This file requires compiler and
> library support \ ^ In file included from
> /usr/include/qt5/QtCore/qglobal.h:105:0, from
> ../../src/qwt_global.h:13, from
> ../../src/qwt_abstract_scale_draw.h:13, from
> ../../src/qwt_abstract_scale_draw.cpp:10:
> /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt
> requires a C++11 compiler and yours does not seem to be that. #
> error Qt requires a C++11 compiler and yours does not seem to be
> that. ^ In file included from /usr/include/qt5/QtCore/qatomic.h:46:0,
> from /usr/include/qt5/QtCore/qglobal.h:1210, from
> ../../src/qwt_global.h:13, from
> ../../src/qwt_abstract_scale_draw.h:13, from
> ../../src/qwt_abstract_scale_draw.cpp:10:
> /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt
> requires C++11 support" # error "Qt requires C++11 support" ^ In
> file included from ../../src/qwt_global.h:13:0, from
> ../../src/qwt_abstract_scale_draw.h:13, from
> ../../src/qwt_abstract_scale_draw.cpp:10:
> /usr/include/qt5/QtCore/qglobal.h:505:7: error: expected
> nested-name-specifier before ‘qsizetype’ using qsizetype =
> QIntegerForSizeof<std::size_t>::Signed; ^
> /usr/include/qt5/QtCore/qglobal.h:963:32: error: ‘add_const’ in
> namespace ‘std’ does not name a template type Q_DECL_CONSTEXPR
> typename std::add_const<T>::type &qAsConst(T &t) Q_DECL_NOTHROW {
> return t; } ^ /usr/include/qt5/QtCore/qglobal.h:963:41: error:
> expected unqualified-id before ‘<’ token Q_DECL_CONSTEXPR typename
> std::add_const<T>::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; }
> ^ /usr/include/qt5/QtCore/qglobal.h:966:23: error: expected ‘,’ or
> ‘...’ before ‘&&’ token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^
> /usr/include/qt5/QtCore/qglobal.h:977:25: error: expected ‘,’ or
> ‘...’ before ‘&&’ token QForeachContainer(T &&t) : c(std::move(t)),
> i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^
> /usr/include/qt5/QtCore/qglobal.h:979:41: error: expected ‘,’ or
> ‘...’ before ‘&&’ token QForeachContainer(QForeachContainer &&other)
> ^
> /usr/include/qt5/QtCore/qglobal.h:979:48: error: invalid constructor;
> you probably meant ‘QtPrivate::QForeachContainer<T> (const
> QtPrivate::QForeachContainer<T>&)’
> QForeachContainer(QForeachContainer &&other) ^
> /usr/include/qt5/QtCore/qglobal.h:987:52: error: expected ‘,’ or
> ‘...’ before ‘&&’ token QForeachContainer
> &operator=(QForeachContainer &&other) ^
> /usr/include/qt5/QtCore/qglobal.h: In constructor
> ‘QtPrivate::QForeachContainer<T>::QForeachContainer(T)’:
> /usr/include/qt5/QtCore/qglobal.h:977:34: error: ‘move’ is not a
> member of ‘std’ QForeachContainer(T &&t) : c(std::move(t)),
> i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^
> /usr/include/qt5/QtCore/qglobal.h:977:44: error: ‘t’ was not declared
> in this scope QForeachContainer(T &&t) : c(std::move(t)),
> i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^
> /usr/include/qt5/QtCore/qglobal.h: In member function
> ‘QtPrivate::QForeachContainer<T>&
> QtPrivate::QForeachContainer<T>::operator=(QtPrivate::QForeachContainer<T>)’:
> /usr/include/qt5/QtCore/qglobal.h:989:13: error: ‘move’ is not a
> member of ‘std’ c = std::move(other.c); ^
> /usr/include/qt5/QtCore/qglobal.h:989:23: error: ‘other’ was not
> declared in this scope c = std::move(other.c); ^
> /usr/include/qt5/QtCore/qglobal.h:992:19: error: ‘move’ is not a
> member of ‘std’ control = std::move(other.control); ^
> /usr/include/qt5/QtCore/qglobal.h: At global scope:
> /usr/include/qt5/QtCore/qglobal.h:1002:33: error: ‘decay’ in
> namespace ‘std’ does not name a template type
> QForeachContainer<typename std::decay<T>::type>
> qMakeForeachContainer(T &&t) ^
> /usr/include/qt5/QtCore/qglobal.h:1002:38: error: expected
> template-argument before ‘<’ token QForeachContainer<typename
> std::decay<T>::type> qMakeForeachContainer(T &&t) ^
> /usr/include/qt5/QtCore/qglobal.h:1002:38: error: expected ‘>’ before
> ‘<’ token /usr/include/qt5/QtCore/qglobal.h:1002:47: error: template
> argument 1 is invalid QForeachContainer<typename std::decay<T>::type>
> qMakeForeachContainer(T &&t) ^
> /usr/include/qt5/QtCore/qglobal.h:1002:49: error: expected ‘::’
> before ‘qMakeForeachContainer’ QForeachContainer<typename
> std::decay<T>::type> qMakeForeachContainer(T &&t) ^
> /usr/include/qt5/QtCore/qglobal.h:1002:73: error: expected ‘,’ or
> ‘...’ before ‘&&’ token QForeachContainer<typename
> std::decay<T>::type> qMakeForeachContainer(T &&t) ^
> /usr/include/qt5/QtCore/qglobal.h: In function ‘int
> QtPrivate::qMakeForeachContainer(T)’:
> /usr/include/qt5/QtCore/qglobal.h:1004:44: error: ‘decay’ in
> namespace ‘std’ does not name a template type return
> QForeachContainer<typename std::decay<T>::type>(std::forward<T>(t));
> ^ /usr/include/qt5/QtCore/qglobal.h:1004:49: error: expected
> template-argument before ‘<’ token return QForeachContainer<typename
> std::decay<T>::type>(std::forward<T>(t)); ^
> /usr/include/qt5/QtCore/qglobal.h:1004:49: error: expected ‘>’ before
> ‘<’ token /usr/include/qt5/QtCore/qglobal.h:1004:58: error: template
> argument 1 is invalid return QForeachContainer<typename
> std::decay<T>::type>(std::forward<T>(t)); ^
> /usr/include/qt5/QtCore/qglobal.h:1004:59: error: expected ‘::’
> before ‘(’ token return QForeachContainer<typename
> std::decay<T>::type>(std::forward<T>(t)); ^
> /usr/include/qt5/QtCore/qglobal.h:1004:59: error: expected identifier
> before ‘(’ token /usr/include/qt5/QtCore/qglobal.h:1004:60: error:
> ‘forward’ is not a member of ‘std’ return QForeachContainer<typename
> std::decay<T>::type>(std::forward<T>(t)); ^
> /usr/include/qt5/QtCore/qglobal.h:1004:74: error: expected
> primary-expression before ‘>’ token return QForeachContainer<typename
> std::decay<T>::type>(std::forward<T>(t)); ^
> /usr/include/qt5/QtCore/qglobal.h:1004:76: error: ‘t’ was not
> declared in this scope return QForeachContainer<typename
> std::decay<T>::type>(std::forward<T>(t)); ^
> /usr/include/qt5/QtCore/qglobal.h: At global scope:
> /usr/include/qt5/QtCore/qglobal.h:1038:70: error: expected
> type-specifier before ‘decltype’ template <typename Ptr> inline auto
> qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { r ^
> /usr/include/qt5/QtCore/qglobal.h:1038:70: error: expected
> initializer before ‘decltype’
> /usr/include/qt5/QtCore/qglobal.h:1172:79: error: ‘nullptr’ was not
> declared in this scope Q_CORE_EXPORT int
> qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr)
> Q_DECL_NOEXC ^ In file included from
> /usr/include/qt5/QtCore/qglobal.h:1204:0, from
> ../../src/qwt_global.h:13, from
> ../../src/qwt_abstract_scale_draw.h:13, from
> ../../src/qwt_abstract_scale_draw.cpp:10:
> /usr/include/qt5/QtCore/qtypeinfo.h:61:25: error: ‘is_enum’ is not a
> member of ‘std’ isSpecialized = std::is_enum<T>::value, // don't
> require every enum to be marked manually ^
> /usr/include/qt5/QtCore/qtypeinfo.h:61:39: error: expected
> primary-expression before ‘>’ token isSpecialized =
> std::is_enum<T>::value, // don't require every enum to be marked
> manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:61:40: error:
> ‘::value’ has not been declared isSpecialized =
> std::is_enum<T>::value, // don't require every enum to be marked
> manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:63:22: error:
> ‘is_integral’ is not a member of ‘std’ isIntegral =
> std::is_integral<T>::value, ^
> /usr/include/qt5/QtCore/qtypeinfo.h:63:40: error: expected
> primary-expression before ‘>’ token isIntegral =
> std::is_integral<T>::value, ^
> /usr/include/qt5/QtCore/qtypeinfo.h:63:41: error: ‘::value’ has not
> been declared isIntegral = std::is_integral<T>::value, ^
> /usr/include/qt5/QtCore/qtypeinfo.h:64:37: error: ‘is_enum’ is not a
> member of ‘std’ isComplex = !isIntegral && !std::is_enum<T>::value, ^
> /usr/include/qt5/QtCore/qtypeinfo.h:64:51: error: expected
> primary-expression before ‘>’ token isComplex = !isIntegral &&
> !std::is_enum<T>::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:64:52:
> error: ‘::value’ has not been declared isComplex = !isIntegral &&
> !std::is_enum<T>::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:66:25:
> error: ‘is_enum’ is not a member of ‘std’ isRelocatable =
> std::is_enum<T>::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:66:39:
> error: expected primary-expression before ‘>’ token isRelocatable =
> std::is_enum<T>::value, ^
> /usr/include/qt5/QtCore/qtypeinfo.h:66:40: error: ‘::value’ has not
> been declared isRelocatable = std::is_enum<T>::value,
> ^
> /usr/include/qt5/QtCore/qtypeinfo.h:130:40: error: ‘enable_if’ in
> namespace ‘std’ does not name a template type struct
> QTypeInfoQuery<T, typename std::enable_if<QTypeInfo<T>::isRelocatable
> || true>::type> : publ ^ /usr/include/qt5/QtCore/qtypeinfo.h:130:49:
> error: expected template-argument before ‘<’ token struct
> QTypeInfoQuery<T, typename std::enable_if<QTypeInfo<T>::isRelocatable
> || true>::type> : publ ^ /usr/include/qt5/QtCore/qtypeinfo.h:130:49:
> error: expected ‘>’ before ‘<’ token
> /usr/include/qt5/QtCore/qtypeinfo.h:130:92: error: template argument
> 2 is invalid uct QTypeInfoQuery<T, typename
> std::enable_if<QTypeInfo<T>::isRelocatable || true>::type> : public ^
> /usr/include/qt5/QtCore/qtypeinfo.h:130:94: error: expected ‘::’
> before ‘:’ token t QTypeInfoQuery<T, typename
> std::enable_if<QTypeInfo<T>::isRelocatable || true>::type> : public
> QT ^ /usr/include/qt5/QtCore/qtypeinfo.h:130:94: error: expected
> identifier before ‘:’ token
> /usr/include/qt5/QtCore/qtypeinfo.h:130:94: error: qualified name
> does not name a class before ‘:’ token
> /usr/include/qt5/QtCore/qtypeinfo.h:130:94: error: expected ‘{’
> before ‘:’ token /usr/include/qt5/QtCore/qtypeinfo.h:130:94: error:
> expected unqualified-id before ‘:’ token
> /usr/include/qt5/QtCore/qtypeinfo.h:270:1: error: ‘is_integral’ is
> not a member of ‘std’ Q_DECLARE_TYPEINFO_BODY(QFlags<T>,
> Q_PRIMITIVE_TYPE); ^ /usr/include/qt5/QtCore/qtypeinfo.h:270:1:
> error: expected primary-expression before ‘>’ token
> Q_DECLARE_TYPEINFO_BODY(QFlags<T>, Q_PRIMITIVE_TYPE); ^
> /usr/include/qt5/QtCore/qtypeinfo.h:270:1: error: ‘::value’ has not
> been declared Q_DECLARE_TYPEINFO_BODY(QFlags<T>, Q_PRIMITIVE_TYPE); ^
> /usr/include/qt5/QtCore/qtypeinfo.h:300:1: error: ‘is_integral’ is
> not a member of ‘std’ Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^
> /usr/include/qt5/QtCore/qtypeinfo.h:300:1: error: expected
> primary-expression before ‘bool’ Q_DECLARE_TYPEINFO(bool,
> Q_PRIMITIVE_TYPE); ^ /usr/include/qt5/QtCore/qtypeinfo.h:300:1:
> error: expected ‘}’ before ‘bool’
> /usr/include/qt5/QtCore/qtypeinfo.h:300:1: error: expected
> unqualified-id before ‘>’ token Q_DECLARE_TYPEINFO(bool,
> Q_PRIMITIVE_TYPE); ^ /usr/include/qt5/QtCore/qtypeinfo.h:300:1:
> error: expected declaration before ‘}’ token Q_DECLARE_TYPEINFO(bool,
> Q_PRIMITIVE_TYPE); ^
> make[1]: *** [obj/qwt_abstract_scale_draw.o] Error 1
> Makefile:1447: recipe for target 'obj/qwt_abstract_scale_draw.o'
> failed make[1]: Leaving directory '/tmp/SBo/qwt-6.1.6/build-qt4/src'
> make: *** [sub-src-make_first-ordered] Error 2
> Makefile:50: recipe for target 'sub-src-make_first-ordered' failed
>
> Please advise,
>
> Rich
Check what qmake -v gives you.
also
ls -l /usr/bin/qmake*
I saw the same errors, but my system is
setup in a non standard way. i.e
qmake is a symlink to either qmake-qt5 or qmake-qt4 depending. It's
switched by a script i wrote.
For me the solution was to change qmake to qmake-qt4 in the SlackBuild.
More information about the SlackBuilds-users
mailing list