Latest git pull of Kdevelop failed to build

Andreas Pakulat apaku at gmx.de
Mon Sep 23 08:24:14 UTC 2013


Hi,

On Mon, Sep 23, 2013 at 6:47 AM, Michael George Hart <
michael.george.hart at gmail.com> wrote:

> Anyone care to take a guest what happen this week. I last weeks git pull
> of Kdevelop built without incident... anyone care to take a guess about
> what happened?
>
> Linking CXX executable gdbtest
> CMakeFiles/gdbtest.dir/registers/registersmanager.o: In function
> `GDBDebugger::ArchitectureParser::parseArchitecture()':
> /home/XMan/Documents/Projects/Kdevelop/src/kdevelop/debuggers/gdb/registers/registersmanager.cpp:55:
> undefined reference to
> `GDBDebugger::ArchitectureParser::architectureParsed(GDBDebugger::(anonymous
> namespace)::Architecture)'
> CMakeFiles/gdbtest.dir/gdbtest_automoc.o: In function
> `GDBDebugger::RegistersManager::qt_static_metacall(QObject*,
> QMetaObject::Call, int, void**)':
> /home/XMan/Documents/Projects/Kdevelop/src/kdevelop/build/debuggers/gdb/moc_registersmanager.cpp:137:
> undefined reference to
> `GDBDebugger::RegistersManager::architectureParsedSlot(GDBDebugger::(anonymous
> namespace)::Architecture)'
> collect2: error: ld returned 1 exit status
> make[2]: *** [debuggers/gdb/gdbtest] Error 1
> make[1]: *** [debuggers/gdb/CMakeFiles/gdbtest.dir/all] Error 2
> make: *** [all] Error 2
>

I'd say someone used either a very new or somewhat older compiler (or
didn't compile the code at all before comitting). The unnamed namespace for
the enum apparently either confuses the compiler or moc (which then
generates non-matching code). This happened for me with gcc 4.8.

I've fixed that now by removing that useless namespace, a slightly nicer
(but more work-intensive) fix would be to move the enum into one of the
classes.

Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20130923/c058f5ca/attachment.html>


More information about the KDevelop-devel mailing list