[cfe-dev] Compile errors when building kde-runtime

Rolf Eike Beer eike at sf-mail.de
Fri May 4 14:28:30 PDT 2012


Hi all,

a few minutes ago one KDE developer reported that he was not able to
compile kde-runtime (git clone git://anongit.kde.org/kde-runtime) using
clang version 3.1 (http://llvm.org/git/clang.git
f196a90b26479a2c67959c6715491763cbc8ade1) and Qt 4.8. The errors have been
fixed in revision ac48ea95. At least the first ones (the (QHash<>) stuff)
seems to be present for a while, I see a commit 7 month ago that
introduced them to fix build using llvm-gcc on Apple.

I'm not involved in either LLVM nor Nepomuk stuff in any way, but I
thought you might be interested. I'm not on this list, so please keep me
in CC if you have any interesting insight. It may of course be that the
code was wrong, in this case we of course would like to know why.

I'll post the first parts of the errors below, there are lot of
duplications and later errors because of the first problems so I cut them
down.

Greetings,

Eike

error:
/home/sreich/devel/kde/src/KDE/kdebase/runtime/nepomuk/services/storage/datamanagementmodel.h:159:95:
error: expected ')'
error:
/home/sreich/devel/kde/src/KDE/kdebase/runtime/nepomuk/services/storage/datamanagementmodel.h:191:96:
error: expected ')'
error:
/home/sreich/devel/kde/src/KDE/kdebase/runtime/nepomuk/services/storage/datamanagementmodel.h:207:124:
error: expected ')'
error:
/home/sreich/devel/kde/src/KDE/kdebase/runtime/nepomuk/services/storage/datamanagementmodel.h:159:85:
error: expected '>'

/home/sreich/devel/kde/src/KDE/kdebase/runtime/nepomuk/services/storage/resourcemerger.cpp:509:27:
warning: parentheses were disambiguated as a function declarator
[-Wvexing-parse]
    Soprano::Node dateTime( Soprano::LiteralValue(
QDateTime::currentDateTime() ) );
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/sreich/devel/kde/src/KDE/kdebase/runtime/nepomuk/services/storage/resourcemerger.cpp:509:63:
error: parameter declarator cannot be qualified
    Soprano::Node dateTime( Soprano::LiteralValue(
QDateTime::currentDateTime() ) );
                                                   ~~~~~~~~~~~^
/home/sreich/devel/kde/src/KDE/kdebase/runtime/nepomuk/services/storage/resourcemerger.cpp:510:14:
error: no matching member function for call to 'addStatement'
    m_model->addStatement( newUri, NAO::created(), dateTime, m_graph );
~~~~~~~~~^~~~~~~~~~~~
/home/sreich/devel/kde/install/kdesupport/include/Soprano/../soprano/filtermodel.h:81:26:
note: candidate function not viable: no known conversion from
'Soprano::Node (Soprano::LiteralValue ((*)()))' to
      'const Soprano::Node' for 3rd argument;
        Error::ErrorCode addStatement( const Node& subject, const Node&
predicate, const Node& object, const Node& context = Node() );
                         ^
/home/sreich/devel/kde/install/kdesupport/include/Soprano/../soprano/filtermodel.h:76:34:
note: candidate function not viable: requires 1 argument, but 4 were
provided
        virtual Error::ErrorCode addStatement( const Statement &statement );
                                 ^
/home/sreich/devel/kde/src/KDE/kdebase/runtime/nepomuk/services/storage/resourcemerger.cpp:511:14:
error: no matching member function for call to 'addStatement'
    m_model->addStatement( newUri, NAO::lastModified(), dateTime, m_graph
); ~~~~~~~~~^~~~~~~~~~~~
/home/sreich/devel/kde/install/kdesupport/include/Soprano/../soprano/filtermodel.h:81:26:
note: candidate function not viable: no known conversion from
'Soprano::Node (Soprano::LiteralValue ((*)()))' to
      'const Soprano::Node' for 3rd argument;
        Error::ErrorCode addStatement( const Node& subject, const Node&
predicate, const Node& object, const Node& context = Node() );
                         ^
/home/sreich/devel/kde/install/kdesupport/include/Soprano/../soprano/filtermodel.h:76:34:
note: candidate function not viable: requires 1 argument, but 4 were
provided
        virtual Error::ErrorCode addStatement( const Statement &statement );
                                 ^
/home/sreich/devel/kde/src/KDE/kdebase/runtime/nepomuk/services/storage/resourcemerger.cpp:509:27:
warning: parentheses were disambiguated as a function declarator
[-Wvexing-parse]
    Soprano::Node dateTime( Soprano::LiteralValue(
QDateTime::currentDateTime() ) );
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/sreich/devel/kde/src/KDE/kdebase/runtime/nepomuk/services/storage/resourcemerger.cpp:509:63:
error: parameter declarator cannot be qualified
    Soprano::Node dateTime( Soprano::LiteralValue(
QDateTime::currentDateTime() ) );
                                                   ~~~~~~~~~~~^
/home/sreich/devel/kde/src/KDE/kdebase/runtime/nepomuk/services/storage/resourcemerger.cpp:510:14:
error: no matching member function for call to 'addStatement'
    m_model->addStatement( newUri, NAO::created(), dateTime, m_graph );
~~~~~~~~~^~~~~~~~~~~~
/home/sreich/devel/kde/install/kdesupport/include/Soprano/../soprano/filtermodel.h:81:26:
note: candidate function not viable: no known conversion from
'Soprano::Node (Soprano::LiteralValue ((*)()))' to
      'const Soprano::Node' for 3rd argument;
        Error::ErrorCode addStatement( const Node& subject, const Node&
predicate, const Node& object, const Node& context = Node() );
                         ^
/home/sreich/devel/kde/install/kdesupport/include/Soprano/../soprano/filtermodel.h:76:34:
note: candidate function not viable: requires 1 argument, but 4 were
provided
        virtual Error::ErrorCode addStatement( const Statement &statement );
                                 ^
/home/sreich/devel/kde/src/KDE/kdebase/runtime/nepomuk/services/storage/resourcemerger.cpp:511:14:
error: no matching member function for call to 'addStatement'
    m_model->addStatement( newUri, NAO::lastModified(), dateTime, m_graph
); ~~~~~~~~~^~~~~~~~~~~~
/home/sreich/devel/kde/install/kdesupport/include/Soprano/../soprano/filtermodel.h:81:26:
note: candidate function not viable: no known conversion from
'Soprano::Node (Soprano::LiteralValue ((*)()))' to
      'const Soprano::Node' for 3rd argument;
        Error::ErrorCode addStatement( const Node& subject, const Node&
predicate, const Node& object, const Node& context = Node() );
                         ^
/home/sreich/devel/kde/install/kdesupport/include/Soprano/../soprano/filtermodel.h:76:34:
note: candidate function not viable: requires 1 argument, but 4 were
provided
        virtual Error::ErrorCode addStatement( const Statement &statement );
                                 ^






More information about the cfe-dev mailing list