KConfig build fails

David Gil Oliva davidgiloliva at gmail.com
Mon Jul 14 21:21:51 UTC 2014


Hi!

KConfig build fails with this messages, all of them related to
QBasicAtomicInt. Are they KF5 bugs?

[ 19%] Building CXX object
src/core/CMakeFiles/KF5ConfigCore.dir/kconfig.cpp.o
Scanning dependencies of target kconfigcompiler-basic-test
[ 19%] Building CXX object
autotests/kconfig_compiler/CMakeFiles/kconfigcompiler-basic-test.dir/kconfigcompiler_test.cpp.o
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:
In constructor ‘KConfigPrivate::KConfigPrivate(KConfig::OpenFlags,
QStandardPaths::StandardLocation)’:
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:67:23:
error: no match for ‘operator<’ (operand types are ‘QBasicAtomicInt’ and
‘int’)
     if (use_etc_kderc < 0) {
                       ^
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:67:23:
note: candidates are:
In file included from
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qsharedpointer.h:50:0,
                 from
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qdatetime.h:47,
                 from /opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/QDate:1,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/conversioncheck.h:25,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfiggroup.h:717,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig_p.h:29,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:24:
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qsharedpointer_impl.h:754:24:
note: template<class T, class X> bool operator<(T*, const
QSharedPointer<T>&)
 Q_INLINE_TEMPLATE bool operator<(T *ptr1, const QSharedPointer<X> &ptr2)
                        ^
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qsharedpointer_impl.h:754:24:
note:   template argument deduction/substitution failed:
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:67:25:
note:   mismatched types ‘T*’ and ‘QBasicAtomicInteger<int>’
     if (use_etc_kderc < 0) {
                         ^
In file included from
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qsharedpointer.h:50:0,
                 from
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qdatetime.h:47,
                 from /opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/QDate:1,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/conversioncheck.h:25,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfiggroup.h:717,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig_p.h:29,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:24:
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qsharedpointer_impl.h:749:24:
note: template<class T, class X> bool operator<(const QSharedPointer<T>&,
X*)
 Q_INLINE_TEMPLATE bool operator<(const QSharedPointer<T> &ptr1, X *ptr2)
                        ^
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qsharedpointer_impl.h:749:24:
note:   template argument deduction/substitution failed:
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:67:25:
note:   ‘QBasicAtomicInt’ is not derived from ‘const QSharedPointer<T>’
     if (use_etc_kderc < 0) {
                         ^
In file included from
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qsharedpointer.h:50:0,
                 from
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qdatetime.h:47,
                 from /opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/QDate:1,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/conversioncheck.h:25,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfiggroup.h:717,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig_p.h:29,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:24:
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qsharedpointer_impl.h:744:24:
note: template<class T, class X> bool operator<(const QSharedPointer<T>&,
const QSharedPointer<T>&)
 Q_INLINE_TEMPLATE bool operator<(const QSharedPointer<T> &ptr1, const
QSharedPointer<X> &ptr2)
                        ^
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qsharedpointer_impl.h:744:24:
note:   template argument deduction/substitution failed:
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:67:25:
note:   ‘QBasicAtomicInt’ is not derived from ‘const QSharedPointer<T>’
     if (use_etc_kderc < 0) {
                         ^
In file included from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig_p.h:27:0,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:24:
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfigdata.h:130:13:
note: bool operator<(const KEntryKey&, const KEntryKey&)
 inline bool operator <(const KEntryKey &k1, const KEntryKey &k2)
             ^
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfigdata.h:130:13:
note:   no known conversion for argument 1 from ‘QBasicAtomicInt’ to ‘const
KEntryKey&’
In file included from /opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qmap.h:48:0,
                 from
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qvariant.h:49,
                 from /opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/QVariant:1,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.h:32,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:23:
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qpair.h:91:24: note:
template<class T1, class T2> bool operator<(const QPair<T, U>&, const
QPair<T, U>&)
 Q_INLINE_TEMPLATE bool operator<(const QPair<T1, T2> &p1, const QPair<T1,
T2> &p2)
                        ^
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qpair.h:91:24: note:   template
argument deduction/substitution failed:
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:67:25:
note:   ‘QBasicAtomicInt’ is not derived from ‘const QPair<T, U>’
     if (use_etc_kderc < 0) {
                         ^
In file included from /opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/QString:1:0,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.h:31,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:23:
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qstring.h:1352:20: note: bool
operator<(const QStringRef&, const QStringRef&)
 Q_CORE_EXPORT bool operator<(const QStringRef &s1,const QStringRef &s2);
                    ^
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qstring.h:1352:20: note:   no
known conversion for argument 1 from ‘QBasicAtomicInt’ to ‘const
QStringRef&’
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qstring.h:1003:13: note: bool
operator<(QLatin1String, QLatin1String)
 inline bool operator<(QLatin1String s1, QLatin1String s2)
             ^
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qstring.h:1003:13: note:   no
known conversion for argument 1 from ‘QBasicAtomicInt’ to ‘QLatin1String’
In file included from
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qstring.h:46:0,
                 from /opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/QString:1,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.h:31,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:23:
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qbytearray.h:553:13: note: bool
operator<(const char*, const QByteArray&)
 inline bool operator<(const char *a1, const QByteArray &a2)
             ^
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qbytearray.h:553:13: note:   no
known conversion for argument 1 from ‘QBasicAtomicInt’ to ‘const char*’
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qbytearray.h:551:14: note: bool
operator<(const QByteArray&, const char*)
  inline bool operator<(const QByteArray &a1, const char *a2)
              ^
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qbytearray.h:551:14: note:   no
known conversion for argument 1 from ‘QBasicAtomicInt’ to ‘const
QByteArray&’
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qbytearray.h:549:13: note: bool
operator<(const QByteArray&, const QByteArray&)
 inline bool operator<(const QByteArray &a1, const QByteArray &a2)
             ^
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qbytearray.h:549:13: note:   no
known conversion for argument 1 from ‘QBasicAtomicInt’ to ‘const
QByteArray&’
In file included from
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qstring.h:45:0,
                 from /opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/QString:1,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.h:31,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:23:
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qchar.h:517:13: note: bool
operator<(QChar, QChar)
 inline bool operator<(QChar c1, QChar c2) { return c1.unicode() <
c2.unicode(); }
             ^
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qchar.h:517:13: note:   no known
conversion for argument 1 from ‘QBasicAtomicInt’ to ‘QChar’
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:68:23:
error: use of deleted function ‘QBasicAtomicInteger<T>&
QBasicAtomicInteger<T>::operator=(const QBasicAtomicInteger<T>&) [with T =
int]’
         use_etc_kderc = !qEnvironmentVariableIsSet("KDE_SKIP_KDERC");
// for unit tests
                       ^
In file included from
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qatomic.h:47:0,
                 from
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qglobalstatic.h:47,
                 from
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qglobal.h:1022,
                 from /opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/QtGlobal:1,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfigbase.h:29,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.h:27,
                 from
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:23:
/opt/Qt5.2.0-KF5/5.2.0/gcc/include/QtCore/qbasicatomic.h:194:26: error:
declared here
     QBasicAtomicInteger &operator=(const QBasicAtomicInteger &) = delete;
                          ^
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:70:22:
error: could not convert ‘use_etc_kderc’ from ‘QBasicAtomicInt’ to ‘bool’
     if (use_etc_kderc) {
                      ^
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:
In member function ‘void KConfigPrivate::parseConfigFiles()’:
/home/david/devel/kf5-development/src/frameworks/kconfig/src/core/kconfig.cpp:710:145:
note: #pragma message: TODO: enable kiosk feature again (resource
restrictions), but without KStandardDirs... Needs a class in the kconfig
framework.
 #pragma message("TODO: enable kiosk feature again (resource restrictions),
but without KStandardDirs... Needs a class in the kconfig framework.")

^
make[2]: *** [src/core/CMakeFiles/KF5ConfigCore.dir/kconfig.cpp.o] Error 1
make[1]: *** [src/core/CMakeFiles/KF5ConfigCore.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 20%] Building CXX object
autotests/kconfig_compiler/CMakeFiles/kconfigcompiler-basic-test.dir/kconfigcompiler-basic-test_automoc.cpp.o
Linking CXX executable kconfigcompiler-basic-test
[ 20%] Built target kconfigcompiler-basic-test
make: *** [all] Error 2

Still trying to compile KF5...

Cheers,

David Gil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140714/e30a6205/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list