Bug 367659 - Build fails at cppducontext.h:655:22: error: ... const [with BaseContext = KDevelop::DUContext]’ marked ‘override’, but does not override
Summary: Build fails at cppducontext.h:655:22: error: ... const [with BaseContext = KD...
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: 4.90.91
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-21 23:47 UTC by Andreas Sturmlechner
Modified: 2016-08-22 11:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.0.1
Sentry Crash Report:


Attachments
kdevelop-5.0.0.build.log (1.82 MB, text/x-log)
2016-08-21 23:48 UTC, Andreas Sturmlechner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sturmlechner 2016-08-21 23:47:04 UTC
Building just released 5.0.0 stops at kdevelop:

In file included from /var/tmp/portage/dev-util/kdevelop-5.0.0/work/kdevelop-5.0/languages/cpp/cppduchain/contextbuilder.h:26:0,
                 from /var/tmp/portage/dev-util/kdevelop-5.0.0/work/kdevelop-5.0/languages/cpp/cppduchain/typebuilder.h:22,
                 from /var/tmp/portage/dev-util/kdevelop-5.0.0/work/kdevelop-5.0/languages/cpp/cppduchain/declarationbuilder.h:23,
                 from /var/tmp/portage/dev-util/kdevelop-5.0.0/work/kdevelop-5.0/languages/cpp/cppduchain/sourcemanipulation.cpp:20:
/var/tmp/portage/dev-util/kdevelop-5.0.0/work/kdevelop-5.0/languages/cpp/cppduchain/cppducontext.h: In instantiation of ‘class Cpp::CppDUContext<KDevelop::DUContext
>’:
/var/tmp/portage/dev-util/kdevelop-5.0.0/work/kdevelop-5.0/languages/cpp/cppduchain/cppducontext.h:646:38:   required from here
/var/tmp/portage/dev-util/kdevelop-5.0.0/work/kdevelop-5.0/languages/cpp/cppduchain/cppducontext.h:655:22: error: ‘QWidget* Cpp::CppDUContext<Base>::createNavigationWidget(KDevelop::Declaration*, KDevelop::TopDUContext*, const QString&, const QString&) const [with BaseContext = KDevelop::DUContext]’ marked ‘override’, but does not override
     virtual QWidget* createNavigationWidget(Declaration* decl, TopDUContext* topContext, const QString& htmlPrefix, const QString& htmlSuffix) const override;
                      ^

Reproducible: Always
Comment 1 Andreas Sturmlechner 2016-08-21 23:48:37 UTC
Created attachment 100703 [details]
kdevelop-5.0.0.build.log
Comment 2 Milian Wolff 2016-08-22 10:48:00 UTC
just FYI - you should not be building the old C++ plugin, but rather switch to the clang based one. The old C++ plugin is rather unmaintained in the 5.x series, we concentrated on the new clang based one
Comment 3 Milian Wolff 2016-08-22 10:48:16 UTC
Git commit f4b5b7538be64328cf8462ee438caaac6c0907aa by Milian Wolff.
Committed on 22/08/2016 at 10:47.
Pushed by mwolff into branch '5.0'.

Fix compile

M  +4    -2    languages/cpp/cppduchain/cppducontext.cpp
M  +2    -1    languages/cpp/cppduchain/cppducontext.h

http://commits.kde.org/kdevelop/f4b5b7538be64328cf8462ee438caaac6c0907aa
Comment 4 Milian Wolff 2016-08-22 10:49:38 UTC
Note: According to your log, you try to pass BUILD_clang=yes, but that is not a valid option. But by passing -DBUILD_cpp=yes you disable the clang build. Remove that option.
Comment 5 Andreas Sturmlechner 2016-08-22 11:19:30 UTC
Thanks for the quick fix and heads up! Build options fixed, USE=clang is default anyway, but this one old system of mine is still free of clang.