can no longer compile akonadi

Daniel Vrátil dvratil at kde.org
Mon Jul 31 20:52:29 BST 2017


Hi Martin,

should be fixed now. Looks like gcc 4.8.5 couldn't decide if it should deduce 
{ QStringLiteral("...") } as a QString or QStringList.

Dan

On Sunday, July 30, 2017 6:38:21 PM CEST Martin Koller wrote:
> Hi,
> 
> some recent change gives errors (on openSuse leap 42.2 with gcc-4.8.5):
> 
> /home/KDE5/source/kde/pim/akonadi/autotests/libs/testrunner/main.cpp: In
> function ‘int main(int, char**)’:
> /home/KDE5/source/kde/pim/akonadi/autotests/libs/testrunner/main.cpp:79:90:
> error: conversion from ‘<brace-enclosed initializer list>’ to ‘const
> QCommandLineOption’ is ambiguous i18n("Test to run automatically,
> interactive if none specified") }); ^
> /home/KDE5/source/kde/pim/akonadi/autotests/libs/testrunner/main.cpp:79:90:
> note: candidates are: In file included from
> /usr/include/qt5/QtCore/qcommandlineparser.h:46:0, from
> /usr/include/qt5/QtCore/QCommandLineParser:1, from
> /home/KDE5/source/kde/pim/akonadi/autotests/libs/testrunner/main.cpp:31:
> /usr/include/qt5/QtCore/qcommandlineoption.h:66:18: note:
> QCommandLineOption::QCommandLineOption(const QStringList&, const QString&,
> const QString&, const QString&) /*implicit*/ QCommandLineOption(const
> QStringList &names, const QString &description, ^
> /usr/include/qt5/QtCore/qcommandlineoption.h:63:18: note:
> QCommandLineOption::QCommandLineOption(const QString&, const QString&,
> const QString&, const QString&) /*implicit*/ QCommandLineOption(const
> QString &name, const QString &description, ^
> In file included from /usr/include/qt5/QtCore/QCommandLineParser:1:0,
>                  from
> /home/KDE5/source/kde/pim/akonadi/autotests/libs/testrunner/main.cpp:31:
> /usr/include/qt5/QtCore/qcommandlineparser.h:74:10: error:   initializing
> argument 1 of ‘bool QCommandLineParser::addOption(const
> QCommandLineOption&)’ bool addOption(const QCommandLineOption
> &commandLineOption);
>           ^
> /home/KDE5/source/kde/pim/akonadi/autotests/libs/testrunner/main.cpp:81:99:
> error: conversion from ‘<brace-enclosed initializer list>’ to ‘const
> QCommandLineOption’ is ambiguous i18n("Path where testenvironment would be
> saved"), QStringLiteral("path") }); ^
> /home/KDE5/source/kde/pim/akonadi/autotests/libs/testrunner/main.cpp:81:99:
> note: candidates are: In file included from
> /usr/include/qt5/QtCore/qcommandlineparser.h:46:0, from
> /usr/include/qt5/QtCore/QCommandLineParser:1, from
> /home/KDE5/source/kde/pim/akonadi/autotests/libs/testrunner/main.cpp:31:
> /usr/include/qt5/QtCore/qcommandlineoption.h:66:18: note:
> QCommandLineOption::QCommandLineOption(const QStringList&, const QString&,
> const QString&, const QString&) /*implicit*/ QCommandLineOption(const
> QStringList &names, const QString &description, ^
> /usr/include/qt5/QtCore/qcommandlineoption.h:63:18: note:
> QCommandLineOption::QCommandLineOption(const QString&, const QString&,
> const QString&, const QString&) /*implicit*/ QCommandLineOption(const
> QString &name, const QString &description, ^
> In file included from /usr/include/qt5/QtCore/QCommandLineParser:1:0,
>                  from
> /home/KDE5/source/kde/pim/akonadi/autotests/libs/testrunner/main.cpp:31:
> /usr/include/qt5/QtCore/qcommandlineparser.h:74:10: error:   initializing
> argument 1 of ‘bool QCommandLineParser::addOption(const
> QCommandLineOption&)’ bool addOption(const QCommandLineOption
> &commandLineOption);
>           ^
> autotests/libs/testrunner/CMakeFiles/akonaditest.dir/build.make:62: recipe
> for target
> 'autotests/libs/testrunner/CMakeFiles/akonaditest.dir/main.cpp.o' failed


-- 
Daniel Vrátil
www.dvratil.cz | dvratil at kde.org
IRC: dvratil on Freenode (#kde, #kontact, #akonadi, #fedora-kde)

GPG Key: 0x4D69557AECB13683
Fingerprint: 0ABD FA55 A4E6 BEA9r9A83 EA97 4D69 557A ECB1 3683
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20170731/1af47a42/attachment.sig>


More information about the kde-pim mailing list