Help to understand/fix Kdevelop Crash

Lucas Tanure tanure at linux.com
Sat Apr 25 11:55:16 UTC 2015


On Thu, Apr 23, 2015 at 11:39 AM, Milian Wolff <mail at milianw.de> wrote:
> On Saturday 18 April 2015 15:00:31 Lucas Tanure wrote:
>> On Apr 18, 2015 1:40 PM, "Milian Wolff" <mail at milianw.de> wrote:
>> > On Saturday 18 April 2015 16:27:37 Lucas Tanure wrote:
>> > > Hi,
>> > >
>> > > The version of Linux doesn't matter, any version that I used got the
>>
>> same
>>
>> > > behavior.
>> >
>> > Will a release tarball do? Do I need to run configure or anything to get
>> > Makefiles generated, or is every setup in such a tarball already?
>>
>> Jus git clone the Linus tree over git.kernel.com
>> Clean tree, do not run make config or anything else.
>> Maybe a tarball from Linux source it's good too.
>>
>> > > I import as a project with Makefile. When the parse gets 50% of all
>>
>> files
>>
>> > > parsed the crash happens, more or less 4gb used of ram. I compiled
>> > > kdevelop, kdev-clang on debug mode.
>> >
>> > Did you need to setup any custom include paths or similar stuff? Or
>>
>> should it
>>
>> > crash even without this?
>>
>> Nope, just git Clone and import.
>> We could talk over Google Hangouts or Skype, I really want this working,
>> but I don't understand the kdevelop and kdev-clang source.
>
> I just tried it today and it worked just fine... Everything is the latest
> master version and for Linux I used the official 4.0 tarball and imported the
> top-level Makefile.
>
> One thing I noticed is that the progress bar doesn't make much sense. It
> approaches 50% and then just jumps directly to 100%. Something to investigate.
>
> In general, it's certainly relatively slow (~15min or so on my beefy machine)
> and does not leverage the available CPUs as nicely as I'd hoped it would. In
> the future, I'll try to optimize KDevelop a bit more for this usecase.
>
> Bye
> --
> Milian Wolff
> mail at milianw.de
> http://milianw.de


Hi,

Kdev-clang do not compile.

[ 22%] Building CXX object
codecompletion/CMakeFiles/kdevclangcodecompletion.dir/model.cpp.o
In file included from /usr/include/qt/QtCore/qpair.h:37:0,
                 from /usr/include/qt/QtCore/QPair:1,
                 from
/opt/kdevelop/include/kdevplatform/language/codecompletion/codecompletionmodel.h:26,
                 from
/home/tanure/workspace/src/kdev-clang/codecompletion/model.h:25,
                 from
/home/tanure/workspace/src/kdev-clang/codecompletion/model.cpp:22:
/usr/include/qt/QtCore/qmetatype.h: In instantiation of ‘constexpr int
qMetaTypeId() [with T = KTextEditor::Cursor]’:
/usr/include/qt/QtCore/qmetatype.h:1655:27:   required from ‘constexpr
int qRegisterMetaType() [with T = KTextEditor::Cursor]’
/home/tanure/workspace/src/kdev-clang/codecompletion/model.cpp:152:44:
  required from here
/usr/include/qt/QtCore/qmetatype.h:1648:5: error: static assertion
failed: Type is not registered, please use the Q_DECLARE_METATYPE
macro to make it known to Qt's meta-object system
     Q_STATIC_ASSERT_X(QMetaTypeId2<T>::Defined, "Type is not
registered, please use the Q_DECLARE_METATYPE macro to make it known
to Qt's meta-object system");
     ^
In file included from /usr/include/qt/QtCore/qobject.h:48:0,
                 from /usr/include/qt/QtCore/qsharedpointer_impl.h:57,
                 from /usr/include/qt/QtCore/qsharedpointer.h:42,
                 from /usr/include/qt/QtCore/qpointer.h:37,
                 from /usr/include/qt/QtCore/QPointer:1,
                 from
/opt/kdevelop/include/kdevplatform/language/codecompletion/codecompletionmodel.h:28,
                 from
/home/tanure/workspace/src/kdev-clang/codecompletion/model.h:25,
                 from
/home/tanure/workspace/src/kdev-clang/codecompletion/model.cpp:22:
/usr/include/qt/QtCore/qmetatype.h: In instantiation of ‘static
constexpr int QMetaTypeId2<T>::qt_metatype_id() [with T =
KTextEditor::Cursor]’:
/usr/include/qt/QtCore/qmetatype.h:1649:44:   required from ‘constexpr
int qMetaTypeId() [with T = KTextEditor::Cursor]’
/usr/include/qt/QtCore/qmetatype.h:1655:27:   required from ‘constexpr
int qRegisterMetaType() [with T = KTextEditor::Cursor]’
/home/tanure/workspace/src/kdev-clang/codecompletion/model.cpp:152:44:
  required from here
/usr/include/qt/QtCore/qmetatype.h:1509:97: error: ‘qt_metatype_id’ is
not a member of ‘QMetaTypeId<KTextEditor::Cursor>’
     static inline Q_DECL_CONSTEXPR int qt_metatype_id() { return
QMetaTypeId<T>::qt_metatype_id(); }

                          ^
/usr/include/qt/QtCore/qmetatype.h:1509:100: error: body of constexpr
function ‘static constexpr int QMetaTypeId2<T>::qt_metatype_id() [with
T = KTextEditor::Cursor]’ not a return-statement
     static inline Q_DECL_CONSTEXPR int qt_metatype_id() { return
QMetaTypeId<T>::qt_metatype_id(); }

                             ^
codecompletion/CMakeFiles/kdevclangcodecompletion.dir/build.make:54:
recipe for target
'codecompletion/CMakeFiles/kdevclangcodecompletion.dir/model.cpp.o'
failed
make[2]: *** [codecompletion/CMakeFiles/kdevclangcodecompletion.dir/model.cpp.o]
Error 1
CMakeFiles/Makefile2:257: recipe for target
'codecompletion/CMakeFiles/kdevclangcodecompletion.dir/all' failed
make[1]: *** [codecompletion/CMakeFiles/kdevclangcodecompletion.dir/all] Error 2
Makefile:126: recipe for target 'all' failed
make: *** [all] Error 2
--
Lucas Tanure
+55 (19) 988176559


More information about the KDevelop-devel mailing list