Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-24795

Error build QtCreator from git with cmake

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: Qt Creator 4.13.2
    • Fix Version/s: None
    • Component/s: Building Qt Creator
    • Labels:
      None
    • Environment:
    • Platform/s:
      Linux/X11

      Description

      [ 94%] Building CXX object src/tools/clangrefactoringbackend/source/CMakeFiles/clangrefactoringbackend_lib.dir/collectsymbolsaction.cpp.o
      cd /devops/SOFT/CSCI/build/Linux/x86_64/CSCI_QTCREATOR/master/QtCreator/QtCreator-master/debug/src/tools/clangrefactoringbackend/source && /devops/AGL/Linux/x86_64/CSCI_COMPILER-master/release/bin/clang++ -DCLANGREFACTORINGBACKEND_LIB_LIBRARY -DQT_CORE_LIB -DQT_CREATOR -DQT_DISABLE_DEPRECATED_BEFORE=0x050900 -DQT_GUI_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_JAVA_STYLE_ITERATORS -DQT_RESTRICTED_CAST_FROM_ASCII -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DRELATIVE_DATA_PATH=\"../share/qtcreator\" -DRELATIVE_DOC_PATH=\"../share/doc/qtcreator\" -DRELATIVE_LIBEXEC_PATH=\"../libexec/qtcreator\" -DRELATIVE_PLUGIN_PATH=\"../lib/qtcreator/plugins\" -I/devops/SOFT/CSCI/build/Linux/x86_64/CSCI_QTCREATOR/master/QtCreator/QtCreator-master/debug/src/tools/clangrefactoringbackend/source -I/devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/tools/clangrefactoringbackend/source -I/devops/SOFT/CSCI/build/Linux/x86_64/CSCI_QTCREATOR/master/QtCreator/QtCreator-master/debug/src/tools/clangrefactoringbackend/source/clangrefactoringbackend_lib_autogen/include -I/devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/libs/clangsupport -I/devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/libs -I/devops/SOFT/CSCI/Qt/5.15.1/qtbase/include/QtConcurrent -I/devops/SOFT/CSCI/Qt/5.15.1/qtbase/include/QtNetwork -I/devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/libs/sqlite -I/devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/libs/sqlite/../3rdparty/sqlite -I/devops/AGL/Linux/x86_64/CSCI_COMPILER-master/release/include -I/devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/tools/clangrefactoringbackend/source/../../clangpchmanagerbackend/source -I/devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/tools/clangrefactoringbackend -isystem /devops/SOFT/CSCI/Qt/5.15.1/qtbase/include -isystem /devops/SOFT/CSCI/Qt/5.15.1/qtbase/include/QtCore -isystem /devops/SOFT/CSCI/Qt/5.15.1/qtbase/./mkspecs/linux-g++ -isystem /devops/SOFT/CSCI/Qt/5.15.1/qtbase/include/QtGui -isystem /devops/SOFT/CSCI/Qt/5.15.1/qtbase/include/QtWidgets -g -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -std=c++17 -Winvalid-pch -Xclang -include-pch -Xclang /devops/SOFT/CSCI/build/Linux/x86_64/CSCI_QTCREATOR/master/QtCreator/QtCreator-master/debug/src/libs/3rdparty/syntax-highlighting/CMakeFiles/QtCreatorPchGui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /devops/SOFT/CSCI/build/Linux/x86_64/CSCI_QTCREATOR/master/QtCreator/QtCreator-master/debug/src/libs/3rdparty/syntax-highlighting/CMakeFiles/QtCreatorPchGui.dir/cmake_pch.hxx -o CMakeFiles/clangrefactoringbackend_lib.dir/collectsymbolsaction.cpp.o -c /devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/tools/clangrefactoringbackend/source/collectsymbolsaction.cpp
      In file included from /devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/tools/clangrefactoringbackend/source/collectsymbolsaction.cpp:26:
      In file included from /devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/tools/clangrefactoringbackend/source/collectsymbolsaction.h:29:
      In file included from /devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/tools/clangrefactoringbackend/source/indexdataconsumer.h:32:
      In file included from /devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/tools/clangrefactoringbackend/source/symbolsvisitorbase.h:28:
      /devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/tools/clangrefactoringbackend/source/sourcelocationsutils.h:89:76: error: member access into incomplete type 'const clang::FileEntry'
      auto filePath = FilePath::fromNativeFilePath(absolutePath(fileEntry->getName()));
      ^
      /devops/AGL/Linux/x86_64/CSCI_COMPILER-master/release/include/clang/Basic/SourceLocation.h:356:7: note: forward declaration of 'clang::FileEntry'
      class FileEntry;
      ^
      In file included from /devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/tools/clangrefactoringbackend/source/collectsymbolsaction.cpp:26:
      In file included from /devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/tools/clangrefactoringbackend/source/collectsymbolsaction.h:29:
      In file included from /devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/tools/clangrefactoringbackend/source/indexdataconsumer.h:32:
      /devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/tools/clangrefactoringbackend/source/symbolsvisitorbase.h:66:36: error: member access into incomplete type 'const clang::FileEntry'
      uint fileId = fileEntry->getUID();
      ^
      /devops/AGL/Linux/x86_64/CSCI_COMPILER-master/release/include/clang/Basic/SourceLocation.h:356:7: note: forward declaration of 'clang::FileEntry'
      class FileEntry;
      ^
      In file included from /devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/tools/clangrefactoringbackend/source/collectsymbolsaction.cpp:26:
      In file included from /devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/tools/clangrefactoringbackend/source/collectsymbolsaction.h:29:
      In file included from /devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/tools/clangrefactoringbackend/source/indexdataconsumer.h:32:
      /devops/SOFT/CSCI/CSCI_QTCREATOR/master/src/qt-creator/qt-creator.git/src/tools/clangrefactoringbackend/source/symbolsvisitorbase.h:76:38: error: member access into incomplete type 'const clang::FileEntry'
      auto filePath = fileEntry->getName();
      ^
      /devops/AGL/Linux/x86_64/CSCI_COMPILER-master/release/include/clang/Basic/SourceLocation.h:356:7: note: forward declaration of 'clang::FileEntry'
      class FileEntry;
      ^
      3 errors generated.
      make[2]: *** [src/tools/clangrefactoringbackend/source/CMakeFiles/clangrefactoringbackend_lib.dir/build.make:162: src/tools/clangrefactoringbackend/source/CMakeFiles/clangrefactoringbackend_lib.dir/collectsymbolsaction.cpp.o] Error 1
      make[2] : on quitte le répertoire « /devops/SOFT/CSCI/build/Linux/x86_64/CSCI_QTCREATOR/master/QtCreator/QtCreator-master/debug »
      make[1]: *** [CMakeFiles/Makefile2:14062: src/tools/clangrefactoringbackend/source/CMakeFiles/clangrefactoringbackend_lib.dir/all] Error 2
      make[1] : on quitte le répertoire « /devops/SOFT/CSCI/build/Linux/x86_64/CSCI_QTCREATOR/master/QtCreator/QtCreator-master/debug »
      make: *** [Makefile:152: all] Error 2
      [Error] Error build QtCreator
      /devops/SOFT/CSCI/CSCI_QTCREATOR/master/scripts/qt-creator/qt-creator.git/master

       

       

      Bug correction : Add #include <clang/Basic/FileManager.h> in file "sourcelocationsutils.h" (See Attachment)

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            con Eike Ziller
            Reporter:
            phfr83 phfr83
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes