Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-68178

undefined reference to 'clang_*'

    XMLWordPrintable

    Details

      Description

      Tried Qt 5.11.0-rc here with Linux and got a linker error. Qt 5.11.0-beta4 compiled without problems.

       

      ake[3]: Verzeichnis „[...]/5.11/b/src/qt/qttools/src/qdoc“ wird betreten
      g++ -Wl,--gc-sections -fuse-ld=gold -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../lib -o ../../bin/qdoc .obj/atom.o .obj/clangcodeparser.o .obj/codechunk.o .obj/codemarker.o .obj/codeparser.o .obj/config.o .obj/cppcodemarker.o .obj/cppcodeparser.o .obj/doc.o .obj/editdistance.o .obj/generator.o .obj/helpprojectwriter.o .obj/htmlgenerator.o .obj/location.o .obj/main.o .obj/node.o .obj/openedlist.o .obj/plaincodemarker.o .obj/puredocparser.o .obj/qdocdatabase.o .obj/qdoctagfiles.o .obj/qdocindexfiles.o .obj/quoter.o .obj/separator.o .obj/text.o .obj/tokenizer.o .obj/tree.o .obj/yyindent.o .obj/webxmlgenerator.o .obj/jscodemarker.o .obj/qmlcodemarker.o .obj/qmlcodeparser.o .obj/qmlmarkupvisitor.o .obj/qmlvisitor.o   -L[...]/5.11/dist/lib -Wl,--start-group -lclangAnalysis -lclangApplyReplacements -lclangARCMigrate -lclangAST -lclangASTMatchers -lclangBasic -lclangChangeNamespace -lclangCodeGen -lclangCrossTU -lclangDaemon -lclangDriver -lclangDynamicASTMatchers -lclangEdit -lclangFormat -lclangFrontend -lclangFrontendTool -lclangHandleCXX -lclangIncludeFixer -lclangIncludeFixerPlugin -lclangIndex -lclangLex -lclangMove -lclangParse -lclangQuery -lclangReorderFields -lclangRewrite -lclangRewriteFrontend -lclangSema -lclangSerialization -lclang_static -lclangStaticAnalyzerCheckers -lclangStaticAnalyzerCore -lclangStaticAnalyzerFrontend -lclangTidy -lclangTidyAndroidModule -lclangTidyBoostModule -lclangTidyBugproneModule -lclangTidyCERTModule -lclangTidyCppCoreGuidelinesModule -lclangTidyFuchsiaModule -lclangTidyGoogleModule -lclangTidyHICPPModule -lclangTidyLLVMModule -lclangTidyMiscModule -lclangTidyModernizeModule -lclangTidyMPIModule -lclangTidyObjCModule -lclangTidyPerformanceModule -lclangTidyPlugin -lclangTidyReadabilityModule -lclangTidyUtils -lclangTooling -lclangToolingASTDiff -lclangToolingCore -lclangToolingRefactor -lfindAllSymbols -lLLVMAArch64AsmParser -lLLVMAArch64AsmPrinter -lLLVMAArch64CodeGen -lLLVMAArch64Desc -lLLVMAArch64Disassembler -lLLVMAArch64Info -lLLVMAArch64Utils -lLLVMAMDGPUAsmParser -lLLVMAMDGPUAsmPrinter -lLLVMAMDGPUCodeGen -lLLVMAMDGPUDesc -lLLVMAMDGPUDisassembler -lLLVMAMDGPUInfo -lLLVMAMDGPUUtils -lLLVMAnalysis -lLLVMARMAsmParser -lLLVMARMAsmPrinter -lLLVMARMCodeGen -lLLVMARMDesc -lLLVMARMDisassembler -lLLVMARMInfo -lLLVMARMUtils -lLLVMAsmParser -lLLVMAsmPrinter -lLLVMBinaryFormat -lLLVMBitReader -lLLVMBitWriter -lLLVMBPFAsmParser -lLLVMBPFAsmPrinter -lLLVMBPFCodeGen -lLLVMBPFDesc -lLLVMBPFDisassembler -lLLVMBPFInfo -lLLVMCodeGen -lLLVMCore -lLLVMCoroutines -lLLVMCoverage -lLLVMDebugInfoCodeView -lLLVMDebugInfoDWARF -lLLVMDebugInfoMSF -lLLVMDebugInfoPDB -lLLVMDemangle -lLLVMDlltoolDriver -lLLVMExecutionEngine -lLLVMFuzzMutate -lLLVMGlobalISel -lLLVMHexagonAsmParser -lLLVMHexagonCodeGen -lLLVMHexagonDesc -lLLVMHexagonDisassembler -lLLVMHexagonInfo -lLLVMInstCombine -lLLVMInstrumentation -lLLVMInterpreter -lLLVMipo -lLLVMIRReader -lLLVMLanaiAsmParser -lLLVMLanaiAsmPrinter -lLLVMLanaiCodeGen -lLLVMLanaiDesc -lLLVMLanaiDisassembler -lLLVMLanaiInfo -lLLVMLibDriver -lLLVMLineEditor -lLLVMLinker -lLLVMLTO -lLLVMMC -lLLVMMCDisassembler -lLLVMMCJIT -lLLVMMCParser -lLLVMMipsAsmParser -lLLVMMipsAsmPrinter -lLLVMMipsCodeGen -lLLVMMipsDesc -lLLVMMipsDisassembler -lLLVMMipsInfo -lLLVMMIRParser -lLLVMMSP430AsmPrinter -lLLVMMSP430CodeGen -lLLVMMSP430Desc -lLLVMMSP430Info -lLLVMNVPTXAsmPrinter -lLLVMNVPTXCodeGen -lLLVMNVPTXDesc -lLLVMNVPTXInfo -lLLVMObjCARCOpts -lLLVMObject -lLLVMObjectYAML -lLLVMOption -lLLVMOrcJIT -lLLVMPasses -lLLVMPowerPCAsmParser -lLLVMPowerPCAsmPrinter -lLLVMPowerPCCodeGen -lLLVMPowerPCDesc -lLLVMPowerPCDisassembler -lLLVMPowerPCInfo -lLLVMProfileData -lLLVMRuntimeDyld -lLLVMScalarOpts -lLLVMSelectionDAG -lLLVMSparcAsmParser -lLLVMSparcAsmPrinter -lLLVMSparcCodeGen -lLLVMSparcDesc -lLLVMSparcDisassembler -lLLVMSparcInfo -lLLVMSupport -lLLVMSymbolize -lLLVMSystemZAsmParser -lLLVMSystemZAsmPrinter -lLLVMSystemZCodeGen -lLLVMSystemZDesc -lLLVMSystemZDisassembler -lLLVMSystemZInfo -lLLVMTableGen -lLLVMTarget -lLLVMTransformUtils -lLLVMVectorize -lLLVMWindowsManifest -lLLVMX86AsmParser -lLLVMX86AsmPrinter -lLLVMX86CodeGen -lLLVMX86Desc -lLLVMX86Disassembler -lLLVMX86Info -lLLVMX86Utils -lLLVMXCoreAsmPrinter -lLLVMXCoreCodeGen -lLLVMXCoreDesc -lLLVMXCoreDisassembler -lLLVMXCoreInfo -lLLVMXRay -Wl,--end-group -lz -ldl -L[...]/5.11/b/src/qt/qtdeclarative/lib -lQt5QmlDevTools -L[...]/5.11/b/src/qt/qtbase/lib -lQt5Core -lpthread
      /usr/bin/ld.gold: error: cannot find -lclang_static
      clangcodeparser.cpp:94: error: undefined reference to 'clang_visitChildren'
      clangcodeparser.cpp:94: error: undefined reference to 'clang_visitChildren'
      clangcodeparser.cpp:94: error: undefined reference to 'clang_visitChildren'
      clangcodeparser.cpp:94: error: undefined reference to 'clang_visitChildren'
      clangcodeparser.cpp:102: error: undefined reference to 'clang_getCString'
      clangcodeparser.cpp:103: error: undefined reference to 'clang_disposeString'
      clangcodeparser.cpp:807: error: undefined reference to 'clang_getCursorKind'
      clangcodeparser.cpp:808: error: undefined reference to 'clang_getCursorSpelling'
      clangcodeparser.cpp:115: error: undefined reference to 'clang_getPresumedLocation'
      clangcodeparser.cpp:162: error: undefined reference to 'clang_getCursorKind'
      clangcodeparser.cpp:172: error: undefined reference to 'clang_getCursorSpelling'
      clangcodeparser.cpp:166: error: undefined reference to 'clang_getCursorResultType'
      clangcodeparser.cpp:166: error: undefined reference to 'clang_getTypeSpelling'
      clangcodeparser.cpp:168: error: undefined reference to 'clang_getCursorSpelling'
      clangcodeparser.cpp:187: error: undefined reference to 'clang_getCursorKind'
      clangcodeparser.cpp:196: error: undefined reference to 'clang_getCursorSpelling'
      clangcodeparser.cpp:209: error: undefined reference to 'clang_getCursorSemanticParent'
      clangcodeparser.cpp:210: error: undefined reference to 'clang_getCursorKind'
      clangcodeparser.cpp:188: error: undefined reference to 'clang_isInvalid'
      clangcodeparser.cpp:778: error: undefined reference to 'clang_getEnumConstantDeclValue'
      clangcodeparser.cpp:776: error: undefined reference to 'clang_getEnumConstantDeclValue'
      clangcodeparser.cpp:221: error: undefined reference to 'clang_isInvalid'
      clangcodeparser.cpp:226: error: undefined reference to 'clang_getCursorSemanticParent'
      clangcodeparser.cpp:251: error: undefined reference to 'clang_getCursorType'
      clangcodeparser.cpp:252: error: undefined reference to 'clang_getNumArgTypes'
      clangcodeparser.cpp:253: error: undefined reference to 'clang_isFunctionTypeVariadic'
      clangcodeparser.cpp:270: error: undefined reference to 'clang_getArgType'
      clangcodeparser.cpp:270: error: undefined reference to 'clang_getTypeSpelling'
      clangcodeparser.cpp:263: error: undefined reference to 'clang_CXXMethod_isConst'
      clangcodeparser.cpp:512: error: undefined reference to 'clang_getCursorSemanticParent'
      clangcodeparser.cpp:513: error: undefined reference to 'clang_getCursorLexicalParent'
      clangcodeparser.cpp:514: error: undefined reference to 'clang_equalCursors'
      clangcodeparser.cpp:514: error: undefined reference to 'clang_isDeclaration'
      clangcodeparser.cpp:814: error: undefined reference to 'clang_getCursorType'
      clangcodeparser.cpp:814: error: undefined reference to 'clang_getTypeDeclaration'
      clangcodeparser.cpp:309: error: undefined reference to 'clang_isInvalid'
      clangcodeparser.cpp:314: error: undefined reference to 'clang_getCursorSemanticParent'
      clangcodeparser.cpp:330: error: undefined reference to 'clang_getCursorType'
      clangcodeparser.cpp:331: error: undefined reference to 'clang_getNumArgTypes'
      clangcodeparser.cpp:332: error: undefined reference to 'clang_isFunctionTypeVariadic'
      clangcodeparser.cpp:348: error: undefined reference to 'clang_getArgType'
      clangcodeparser.cpp:348: error: undefined reference to 'clang_getTypeSpelling'
      clangcodeparser.cpp:341: error: undefined reference to 'clang_CXXMethod_isConst'
      clangcodeparser.cpp:845: error: undefined reference to 'clang_getCursorDisplayName'
      clangcodeparser.cpp:496: error: undefined reference to 'clang_isDeclaration'
      clangcodeparser.cpp:498: error: undefined reference to 'clang_getPresumedLocation'
      clangcodeparser.cpp:966: error: undefined reference to 'clang_getPresumedLocation'
      clangcodeparser.cpp:973: error: undefined reference to 'clang_getPresumedLocation'
      clangcodeparser.cpp:979: error: undefined reference to 'clang_getCursorExtent'
      clangcodeparser.cpp:979: error: undefined reference to 'clang_getRangeEnd'
      clangcodeparser.cpp:985: error: undefined reference to 'clang_getCursorLexicalParent'
      clangcodeparser.cpp:986: error: undefined reference to 'clang_equalCursors'
      clangcodeparser.cpp:1318: error: undefined reference to 'clang_createIndex'
      clangcodeparser.cpp:1331: error: undefined reference to 'clang_parseTranslationUnit2'
      clangcodeparser.cpp:1340: error: undefined reference to 'clang_getTranslationUnitCursor'
      clangcodeparser.cpp:1336: error: undefined reference to 'clang_disposeIndex'
      clangcodeparser.cpp:1347: error: undefined reference to 'clang_getCursorExtent'
      clangcodeparser.cpp:1347: error: undefined reference to 'clang_tokenize'
      clangcodeparser.cpp:1350: error: undefined reference to 'clang_getTokenKind'
      clangcodeparser.cpp:1352: error: undefined reference to 'clang_getTokenSpelling'
      clangcodeparser.cpp:1356: error: undefined reference to 'clang_getTokenLocation'
      clangcodeparser.cpp:1357: error: undefined reference to 'clang_getTokenExtent'
      clangcodeparser.cpp:1357: error: undefined reference to 'clang_getRangeEnd'
      clangcodeparser.cpp:1373: error: undefined reference to 'clang_getTokenLocation'
      clangcodeparser.cpp:1378: error: undefined reference to 'clang_getTokenKind'
      clangcodeparser.cpp:1380: error: undefined reference to 'clang_getTokenLocation'
      clangcodeparser.cpp:1401: error: undefined reference to 'clang_disposeTokens'
      clangcodeparser.cpp:1402: error: undefined reference to 'clang_disposeTranslationUnit'
      clangcodeparser.cpp:1403: error: undefined reference to 'clang_disposeIndex'
      clangcodeparser.cpp:1468: error: undefined reference to 'clang_createIndex'
      clangcodeparser.cpp:1492: error: undefined reference to 'clang_parseTranslationUnit2'
      clangcodeparser.cpp:1507: error: undefined reference to 'clang_getTranslationUnitCursor'
      clangcodeparser.cpp:1538: error: undefined reference to 'clang_disposeTranslationUnit'
      clangcodeparser.cpp:1539: error: undefined reference to 'clang_disposeIndex'
      clangcodeparser.cpp:1497: error: undefined reference to 'clang_disposeTranslationUnit'
      clangcodeparser.cpp:1498: error: undefined reference to 'clang_disposeIndex'
      clangcodeparser.cpp:1512: error: undefined reference to 'clang_getNumDiagnostics'
      clangcodeparser.cpp:1531: error: undefined reference to 'clang_getDiagnostic'
      clangcodeparser.cpp:1532: error: undefined reference to 'clang_formatDiagnostic'
      clangcodeparser.cpp:139: error: undefined reference to 'clang_getRangeStart'
      clangcodeparser.cpp:140: error: undefined reference to 'clang_getRangeEnd'
      clangcodeparser.cpp:143: error: undefined reference to 'clang_getFileLocation'
      clangcodeparser.cpp:144: error: undefined reference to 'clang_getFileLocation'
      clangcodeparser.cpp:147: error: undefined reference to 'clang_getFileName'
      clangcodeparser.cpp:579: error: undefined reference to 'clang_isCursorDefinition'
      clangcodeparser.cpp:623: error: undefined reference to 'clang_getCursorDisplayName'
      clangcodeparser.cpp:630: error: undefined reference to 'clang_getCursorLocation'
      clangcodeparser.cpp:824: error: undefined reference to 'clang_isDeclaration'
      clangcodeparser.cpp:556: error: undefined reference to 'clang_getCursorExtent'
      clangcodeparser.cpp:565: error: undefined reference to 'clang_getCXXAccessSpecifier'
      clangcodeparser.cpp:566: error: undefined reference to 'clang_getCursorLocation'
      clangcodeparser.cpp:593: error: undefined reference to 'clang_getCXXAccessSpecifier'
      clangcodeparser.cpp:594: error: undefined reference to 'clang_getCursorLocation'
      clangcodeparser.cpp:608: error: undefined reference to 'clang_getCXXAccessSpecifier'
      clangcodeparser.cpp:609: error: undefined reference to 'clang_getCursorType'
      clangcodeparser.cpp:610: error: undefined reference to 'clang_getTypeDeclaration'
      clangcodeparser.cpp:651: error: undefined reference to 'clang_Cursor_getCommentRange'
      clangcodeparser.cpp:652: error: undefined reference to 'clang_Range_isNull'
      clangcodeparser.cpp:663: error: undefined reference to 'clang_getCXXAccessSpecifier'
      clangcodeparser.cpp:664: error: undefined reference to 'clang_getCursorLocation'
      clangcodeparser.cpp:675: error: undefined reference to 'clang_CXXMethod_isStatic'
      clangcodeparser.cpp:676: error: undefined reference to 'clang_CXXMethod_isConst'
      clangcodeparser.cpp:677: error: undefined reference to 'clang_CXXMethod_isVirtual'
      clangcodeparser.cpp:680: error: undefined reference to 'clang_Type_getCXXRefQualifier'
      clangcodeparser.cpp:690: error: undefined reference to 'clang_getOverriddenCursors'
      clangcodeparser.cpp:673: error: undefined reference to 'clang_getResultType'
      clangcodeparser.cpp:673: error: undefined reference to 'clang_getTypeSpelling'
      clangcodeparser.cpp:678: error: undefined reference to 'clang_CXXMethod_isPureVirtual'
      clangcodeparser.cpp:698: error: undefined reference to 'clang_disposeOverriddenCursors'
      clangcodeparser.cpp:700: error: undefined reference to 'clang_getNumArgTypes'
      clangcodeparser.cpp:706: error: undefined reference to 'clang_getPointeeType'
      clangcodeparser.cpp:704: error: undefined reference to 'clang_getArgType'
      clangcodeparser.cpp:724: error: undefined reference to 'clang_isFunctionTypeVariadic'
      clangcodeparser.cpp:826: error: undefined reference to 'clang_getCursorExtent'
      clangcodeparser.cpp:767: error: undefined reference to 'clang_isExpression'
      clangcodeparser.cpp:863: error: undefined reference to 'clang_isExpression'
      clangcodeparser.cpp:1262: error: undefined reference to 'clang_parseTranslationUnit2'
      clangcodeparser.cpp:1267: error: undefined reference to 'clang_defaultSaveOptions'
      clangcodeparser.cpp:1267: error: undefined reference to 'clang_saveTranslationUnit'
      clangcodeparser.cpp:1273: error: undefined reference to 'clang_getTranslationUnitCursor'
      clangcodeparser.cpp:1277: error: undefined reference to 'clang_disposeTranslationUnit'
      clangcodeparser.cpp:1302: error: undefined reference to 'clang_createIndex'
      clangcodeparser.cpp:416: error: undefined reference to 'clang_Location_isFromMainFile'
      clangcodeparser.cpp:385: error: undefined reference to 'clang_Location_isFromMainFile'
      clangcodeparser.cpp:388: error: undefined reference to 'clang_getFileLocation'
      clangcodeparser.cpp:394: error: undefined reference to 'clang_getFileName'
      collect2: Fehler: ld gab 1 als Ende-Status zurück
      
      

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-68178
          # Subject Branch Project Status CR V

            Activity

              People

              • Assignee:
                shausman Simon Hausmann
                Reporter:
                misery André Klitzing
              • Votes:
                2 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes