kdevelop build error: undefined reference to `KDevelop::EditorContext::currentWord() const'

Aetf 7437103 at gmail.com
Fri Jun 24 17:01:55 UTC 2016


Hi,

I noticed this error on CI right after I pushed the patch to master.
However I can't reproduce it on my box with clean build of kdevplatform and
kdevelop... So I don't know where to look at. :/

It seems that libKDevPlatformLanguage does contain the missing symbol. No
idea why the linker couldn't find it. I'll try rebuild on my box again to
see if I can find something else.

Cheers,
Aetf

On Fri, Jun 24, 2016, 10:40 René J.V. <rjvbertin at gmail.com> wrote:

> Hi,
>
> Why am I getting the following build error on Linux, kdevelop and
> kdevplatform both git/master?
>
> %> /usr/bin/c++  -fPIC -std=c++0x -Wall -Wextra -Wcast-align
> -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef
> -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type
> -Wno-missing-field-initializers -fexceptions -Wl,--no-undefined
> -Wl,--fatal-warnings -Wl,--enable-new-dtags   -shared  -o kdevgdb.so
> CMakeFiles/kdevgdb.dir/debuggerplugin.cpp.o
> CMakeFiles/kdevgdb.dir/gdb.cpp.o
> CMakeFiles/kdevgdb.dir/disassemblewidget.cpp.o
> CMakeFiles/kdevgdb.dir/gdboutputwidget.cpp.o
> CMakeFiles/kdevgdb.dir/debugsession.cpp.o
> CMakeFiles/kdevgdb.dir/gdbbreakpointcontroller.cpp.o
> CMakeFiles/kdevgdb.dir/gdbconfigpage.cpp.o
> CMakeFiles/kdevgdb.dir/variablecontroller.cpp.o
> CMakeFiles/kdevgdb.dir/gdbframestackmodel.cpp.o
> CMakeFiles/kdevgdb.dir/gdbvariable.cpp.o
> CMakeFiles/kdevgdb.dir/registers/registersview.cpp.o
> CMakeFiles/kdevgdb.dir/registers/registercontroller.cpp.o
> CMakeFiles/kdevgdb.dir/registers/registersmanager.cpp.o
> CMakeFiles/kdevgdb.dir/registers/registercontroller_x86.cpp.o
> CMakeFiles/kdevgdb.dir/registers/registercontroller_arm.cpp.o
> CMakeFiles/kdevgdb.dir/registers/modelsmanager.cpp.o
> CMakeFiles/kdevgdb.dir/registers/converters.cpp.o
> CMakeFiles/kdevgdb.dir/qrc_kdevgdb.cpp.o
> CMakeFiles/kdevgdb.dir/kdevgdb_automoc.cpp.o
> /opt/local/lib/x86_64-linux-gnu/libKDevPlatformLanguage.so.10.0.0
> /opt/local/lib/x86_64-linux-gnu/libKDevPlatformProject.so.10.0.0
> ../common/libkdevdebuggercommon.a
> /opt/local/lib/x86_64-linux-gnu/libKDevPlatformOutputView.so.10.0.0
> /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKDevPlatformSerialization.so.10.0.0
> /opt/local/lib/x86_64-linux-gnu/libKDevPlatformDebugger.so.10.0.0
> /opt/local/lib/x86_64-linux-gnu/libKDevPlatformSublime.so.10.0.0
> /opt/local/lib/x86_64-linux-gnu/libKDevPlatformUtil.so.10.0.0
> /opt/local/lib/x86_64-linux-gnu/libKDevPlatformInterfaces.so.10.0.0
> /opt/local/lib/x86_64-linux-gnu/libKF5TextEditor.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5Parts.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5KIOWidgets.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5KIOCore.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5JobWidgets.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5XmlGui.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5TextWidgets.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5Service.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5SonnetUi.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5ItemModels.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libprocessui.so.5.6.5
> /opt/local/lib/x86_64-linux-gnu/libprocesscore.so.5.6.5
> /opt/local/lib/x86_64-linux-gnu/libKF5Completion.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5ConfigWidgets.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5WidgetsAddons.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5Codecs.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5ConfigGui.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5ConfigCore.so.5.22.0
> /opt/local/libexec/qt5/lib/libQt5Xml.so.5.6.1
> /opt/local/lib/x86_64-linux-gnu/libKF5Auth.so.5.22.0
> /opt/local/libexec/qt5/lib/libQt5DBus.so.5.6.1
> /opt/local/lib/x86_64-linux-gnu/libKF5I18n.so.5.22.0
> /opt/local/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5.22.0
> /opt/local/libexec/qt5/lib/libQt5Widgets.so.5.6.1
> /opt/local/libexec/qt5/lib/libQt5Gui.so.5.6.1
> /opt/local/libexec/qt5/lib/libQt5Network.so.5.6.1
> /opt/local/libexec/qt5/lib/libQt5Core.so.5.6.1
> -Wl,-rpath,/opt/local/lib/x86_64-linux-gnu:/opt/local/lib:/opt/local/libexec/qt5/lib
> -Wl,-rpath-link,/opt/local/libexec/qt5/lib
> ../common/libkdevdebuggercommon.a(midebuggerplugin.cpp.o): In function
> `KDevMI::MIDebuggerPlugin::contextMenuExtension(KDevelop::Context*)':
> midebuggerplugin.cpp:(.text+0x176b): undefined reference to `typeinfo for
> KDevelop::EditorContext'
> midebuggerplugin.cpp:(.text+0x179f): undefined reference to
> `KDevelop::EditorContext::currentWord() const'
> collect2: error: ld returned 1 exit status
> make[2]: *** [debuggers/gdb/kdevgdb.so] Error 1
>
> %> nm /opt/local/lib/x86_64-linux-gnu/libKDevPlatformLanguage.so.10.0.0 |
> fgrep -i currentword
> 00000000001bd880 T _ZNK8KDevelop13EditorContext11currentWordEv
>
> %> demangle _ZNK8KDevelop13EditorContext11currentWordEv
> _ZNK8KDevelop13EditorContext11currentWordEv ->
> "KDevelop::EditorContext::currentWord() const"
>
> I'm using gcc 5.3.0; kdevplatform was installed from a full clean build;
> kdevelop is building from one. A glitch in the debugger patch from last
> Wed. June 22nd?
>
> R.
> _______________________________________________
> KDevelop-devel mailing list
> KDevelop-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kdevelop-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20160624/d2f5caf9/attachment.html>


More information about the KDevelop-devel mailing list