Kdevelop 5 build issue on the latest cygwin

Aleix Pol aleixpol at kde.org
Sun May 15 09:50:06 BST 2016


On Sat, May 14, 2016 at 12:22 AM, Michael George Hart
<michael.george.hart at gmail.com> wrote:
> Do I actually need clang to build kdevelop 5. Kdevelop platform builds and
> installs without issue
>
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0xcbe):
> undefined reference to `clang_getCursorKind'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0xcbe):
> additional relocation overflows omitted from the output
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0xd08):
> undefined reference to `clang_Cursor_getNumArguments'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0xd6a):
> undefined reference to `clang_getCursorLocation'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0xda7):
> undefined reference to `clang_getFileLocation'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0xe6b):
> undefined reference to `clang_getFileName'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0xfa2):
> undefined reference to `clang_Cursor_getTranslationUnit'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x100a):
> undefined reference to `clang_Cursor_getArgument'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x13dc):
> undefined reference to `clang_getCursorLexicalParent'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x143c):
> undefined reference to `clang_getCanonicalCursor'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x14a5):
> undefined reference to `clang_getCursorSemanticParent'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x14e0):
> undefined reference to `clang_getCursorKind'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x1552):
> undefined reference to `clang_equalCursors'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x15a9):
> undefined reference to `clang_getCursorDisplayName'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x1646):
> undefined reference to `clang_getCursorSemanticParent'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x171c):
> undefined reference to `clang_getCursorKind'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x17b6):
> undefined reference to `clang_getCursorResultType'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x17e1):
> undefined reference to `clang_getTypeSpelling'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x1a41):
> undefined reference to `clang_Cursor_getNumArguments'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x1a9b):
> undefined reference to `clang_Cursor_getArgument'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x1ace):
> undefined reference to `clang_getCursorType'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x1b02):
> undefined reference to `clang_getTypeSpelling'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x1cc1):
> undefined reference to `clang_getCursorDisplayName'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x1e46):
> undefined reference to `clang_Cursor_isVariadic'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x1ec6):
> undefined reference to `clang_CXXMethod_isConst'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x1f63):
> undefined reference to `clang_getRangeStart'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x1f8a):
> undefined reference to `clang_getRangeEnd'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x1fd1):
> undefined reference to `clang_getFileLocation'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x200f):
> undefined reference to `clang_getFileLocation'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x20ea):
> undefined reference to `clang_getTokenLocation'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x2173):
> undefined reference to `clang_getFileLocation'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x220d):
> undefined reference to `clang_getTokenSpelling'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x2229):
> undefined reference to `clang_getCString'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x2258):
> undefined reference to `clang_disposeString'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x22fb):
> undefined reference to `clang_getCursorAvailability'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x233e):
> undefined reference to `clang_getCanonicalCursor'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x236a):
> undefined reference to `clang_Cursor_getTranslationUnit'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x245c):
> undefined reference to `clang_getTokenKind'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x24d5):
> undefined reference to `clang_getTokenSpelling'
> ../../../lib/libkdevclangutil.a(clangutils.cpp.o):clangutils.cpp:(.text+0x25f4):
> undefined reference to `clang_getTokenSpelling'
> ../../../lib/libkdevclangutil.a(clangtypes.cpp.o):clangtypes.cpp:(.text+0x67):
> undefined reference to `clang_disposeString'
> ../../../lib/libkdevclangutil.a(clangtypes.cpp.o):clangtypes.cpp:(.text+0x99):
> undefined reference to `clang_getCString'
> ../../../lib/libkdevclangutil.a(clangtypes.cpp.o):clangtypes.cpp:(.text+0x26d):
> undefined reference to `clang_getFileLocation'
> ../../../lib/libkdevclangutil.a(clangtypes.cpp.o):clangtypes.cpp:(.text+0x27d):
> undefined reference to `clang_getFileName'
> ../../../lib/libkdevclangutil.a(clangtypes.cpp.o):clangtypes.cpp:(.text+0x431):
> undefined reference to `clang_getRangeStart'
> ../../../lib/libkdevclangutil.a(clangtypes.cpp.o):clangtypes.cpp:(.text+0x49f):
> undefined reference to `clang_getRangeEnd'
> ../../../lib/libkdevclangutil.a(clangtypes.cpp.o):clangtypes.cpp:(.text+0x549):
> undefined reference to `clang_getRangeStart'
> ../../../lib/libkdevclangutil.a(clangtypes.cpp.o):clangtypes.cpp:(.text+0x58f):
> undefined reference to `clang_getFileLocation'
> ../../../lib/libkdevclangutil.a(clangtypes.cpp.o):clangtypes.cpp:(.text+0x59f):
> undefined reference to `clang_getFileName'
> ../../../lib/libkdevclangutil.a(clangtypes.cpp.o):clangtypes.cpp:(.text+0x7bc):
> undefined reference to `clang_tokenize'
> ../../../lib/libkdevclangutil.a(clangtypes.cpp.o):clangtypes.cpp:(.text+0x7f1):
> undefined reference to `clang_disposeTokens'
> ../../../lib/libkdevclangutil.a(clangtypes.cpp.o):clangtypes.cpp:(.text+0x956):
> undefined reference to `clang_getFileLocation'
> ../../../lib/libkdevclangutil.a(clangtypes.cpp.o):clangtypes.cpp:(.text+0x9de):
> undefined reference to `clang_getFileLocation'
> collect2: error: ld returned 1 exit status
> languages/clang/tests/CMakeFiles/test_clangutils.dir/build.make:130: recipe
> for target 'bin/test_clangutils.exe' failed
> make[2]: *** [bin/test_clangutils.exe] Error 1
> CMakeFiles/Makefile2:6059: recipe for target
> 'languages/clang/tests/CMakeFiles/test_clangutils.dir/all' failed
> make[1]: *** [languages/clang/tests/CMakeFiles/test_clangutils.dir/all]
> Error 2
> make[1]: *** Waiting for unfinished jobs....
> [100%] Building CXX object
> languages/clang/tests/CMakeFiles/test_codecompletion.dir/test_codecompletion.cpp.o
> [100%] Building CXX object
> languages/clang/tests/CMakeFiles/test_codecompletion.dir/test_codecompletion_automoc.cpp.o
> [100%] Linking CXX executable ../../../bin/test_codecompletion.exe
> [100%] Built target test_codecompletion
> Makefile:138: recipe for target 'all' failed
> make: *** [all] Error 2

Yes, clang it's required to build the c++ support. It's a weird error
message though, it shouldn't have gone so far if you didn't have it.

Can you check whether there's a cmake configuration warning?

Aleix



More information about the KDevelop mailing list