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

CMake Error at /usr/lib/llvm-14/lib/cmake/clang/ClangTargets.cmake:750 (message): The imported target "clangBasic" references the file "/usr/lib/llvm-14/lib/libclangBasic.a" but this file does not exist

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.7.2
    • Build System: CMake
    • None
    • Linux/Wayland

    Description

      Steps to reproduce:

      1. Install basic desktop Qt 6.7.2 on Elementary Linux 7.1 (x86_64)
      2. download Qt 6.7.2 Sources using the Qt maintenance tool
      3. cd Qt/6.7.2/Src
      4. export PATH=Qt/Tools/Ninja:Qt/Tools/CMake/bin:$PATH
      5. ./configure

      Expected result:

      configured sources

      Actual result:

      Error relating to the existence of libClangBasic.a

      Output:

      dougie@dougux:~/Qt/6.7.2/Src$ ./configure
      + mkdir -p qtbase
      + cd qtbase
      + exec /home/dougie/Qt/6.7.2/Src/qtbase/configure -top-level
      '/home/dougie/Qt/Tools/CMake/bin/cmake' '-DQT_INTERNAL_CALLED_FROM_CONFIGURE:BOOL=TRUE' '-G' 'Ninja' '/home/dougie/Qt/6.7.2/Src'
      – The CXX compiler identification is GNU 11.4.0
      – The C compiler identification is GNU 11.4.0
      – The ASM compiler identification is GNU
      – Found assembler: /usr/bin/cc
      – Detecting CXX compiler ABI info
      – Detecting CXX compiler ABI info - done
      – Check for working CXX compiler: /usr/bin/c++ - skipped
      – Detecting CXX compile features
      – Detecting CXX compile features - done
      – Detecting C compiler ABI info
      – Detecting C compiler ABI info - done
      – Check for working C compiler: /usr/bin/cc - skipped
      – Detecting C compile features
      – Detecting C compile features - done
      – Checking dependencies of submodule 'qtbase'
      – Checking dependencies of submodule 'qtimageformats'
      – Checking dependencies of submodule 'qtlanguageserver'
      – Checking dependencies of submodule 'qtshadertools'
      – Checking dependencies of submodule 'qtsvg'
      – Checking dependencies of submodule 'qtdeclarative'
      – Checking dependencies of submodule 'qtquicktimeline'
      – Checking dependencies of submodule 'qtquick3d'
      – Checking dependencies of submodule 'qtmultimedia'
      – Checking dependencies of submodule 'qt3d'
      – Checking dependencies of submodule 'qt5compat'
      – Checking dependencies of submodule 'qtactiveqt'
      – Checking dependencies of submodule 'qtcharts'
      – Checking dependencies of submodule 'qtcoap'
      – Checking dependencies of submodule 'qtconnectivity'
      – Checking dependencies of submodule 'qtdatavis3d'
      – Checking dependencies of submodule 'qtgraphs'
      – Checking dependencies of submodule 'qtwebsockets'
      – Checking dependencies of submodule 'qthttpserver'
      – Checking dependencies of submodule 'qtserialport'
      – Checking dependencies of submodule 'qtpositioning'
      – Checking dependencies of submodule 'qtlocation'
      – Checking dependencies of submodule 'qttools'
      – Checking dependencies of submodule 'qtwebchannel'
      – Checking dependencies of submodule 'qtwebengine'
      – Checking dependencies of submodule 'qtdoc'
      – Checking dependencies of submodule 'qtgrpc'
      – Checking dependencies of submodule 'qtinsighttracker'
      – Checking dependencies of submodule 'qtlottie'
      – Checking dependencies of submodule 'qtmqtt'
      – Checking dependencies of submodule 'qtnetworkauth'
      – Checking dependencies of submodule 'qtopcua'
      – Checking dependencies of submodule 'qtquick3dphysics'
      – Checking dependencies of submodule 'qtquickeffectmaker'
      – Checking dependencies of submodule 'qtremoteobjects'
      – Checking dependencies of submodule 'qtscxml'
      – Checking dependencies of submodule 'qtsensors'
      – Checking dependencies of submodule 'qtserialbus'
      – Checking dependencies of submodule 'qtspeech'
      – Checking dependencies of submodule 'qttranslations'
      – Checking dependencies of submodule 'qtvirtualkeyboard'
      – Checking dependencies of submodule 'qtwayland'
      – Checking dependencies of submodule 'qtwebview'
      – Configuring submodule 'qtbase'
      [QtBase] Setting build type to 'Release' as none was specified.
                  -DCMAKE_C_FLAGS_DEBUG=-g
                  -DCMAKE_C_FLAGS_RELEASE=-O3 -DNDEBUG
                  -DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG
                  -DCMAKE_CXX_FLAGS_DEBUG=-g
                  -DCMAKE_CXX_FLAGS_RELEASE=-O3 -DNDEBUG
                  -DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG
                  -DCMAKE_OBJCOPY=/usr/bin/objcopy
                  -DCMAKE_C_STANDARD=11
                  -DCMAKE_C_STANDARD_REQUIRED=ON
                  -DCMAKE_CXX_STANDARD=17
                  -DCMAKE_CXX_STANDARD_REQUIRED=ON
                  -DCMAKE_MODULE_PATH:STRING=/home/dougie/Qt/6.7.2/Src/qtbase/cmake/platforms
      – Configuring submodule 'qtimageformats'
      – Configuring submodule 'qtlanguageserver'
      – Configuring submodule 'qtshadertools'
      – Configuring submodule 'qtsvg'
      – Configuring submodule 'qtdeclarative'
      – Configuring submodule 'qtquicktimeline'
      – Configuring submodule 'qtquick3d'
      – Configuring submodule 'qtmultimedia'
      – Configuring submodule 'qt3d'
      CMake Warning (dev) at qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:423 (message):
        INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
        Please port your module to use declarative type registration.
      Call Stack (most recent call first):
        qt3d/src/quick3d/imports/render/CMakeLists.txt:10 (qt_internal_add_qml_module)
      This warning is for project developers.  Use -Wno-dev to suppress it.

      CMake Warning (dev) at qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:423 (message):
        INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
        Please port your module to use declarative type registration.
      Call Stack (most recent call first):
        qt3d/src/quick3d/imports/scene3d/CMakeLists.txt:10 (qt_internal_add_qml_module)
      This warning is for project developers.  Use -Wno-dev to suppress it.

      CMake Warning (dev) at qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:423 (message):
        INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
        Please port your module to use declarative type registration.
      Call Stack (most recent call first):
        qt3d/src/quick3d/imports/extras/CMakeLists.txt:10 (qt_internal_add_qml_module)
      This warning is for project developers.  Use -Wno-dev to suppress it.

      CMake Warning (dev) at qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:423 (message):
        INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
        Please port your module to use declarative type registration.
      Call Stack (most recent call first):
        qt3d/src/quick3d/imports/scene2d/CMakeLists.txt:10 (qt_internal_add_qml_module)
      This warning is for project developers.  Use -Wno-dev to suppress it.

      CMake Warning (dev) at qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:423 (message):
        INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
        Please port your module to use declarative type registration.
      Call Stack (most recent call first):
        qt3d/src/quick3d/imports/logic/CMakeLists.txt:10 (qt_internal_add_qml_module)
      This warning is for project developers.  Use -Wno-dev to suppress it.

      CMake Warning (dev) at qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:423 (message):
        INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
        Please port your module to use declarative type registration.
      Call Stack (most recent call first):
        qt3d/src/quick3d/imports/animation/CMakeLists.txt:10 (qt_internal_add_qml_module)
      This warning is for project developers.  Use -Wno-dev to suppress it.

      – Configuring submodule 'qt5compat'
      CMake Warning (dev) at qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:423 (message):
        INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
        Please port your module to use declarative type registration.
      Call Stack (most recent call first):
        qt5compat/src/imports/graphicaleffects5/CMakeLists.txt:36 (qt_internal_add_qml_module)
      This warning is for project developers.  Use -Wno-dev to suppress it.

      – Configuring submodule 'qtactiveqt'
      Condition "WIN32" is not met, enabling documentation build only.
      – Configuring submodule 'qtcharts'
      – Configuring submodule 'qtcoap'
      – Configuring submodule 'qtconnectivity'
      – Configuring submodule 'qtdatavis3d'
      – Configuring submodule 'qtgraphs'
      – Configuring submodule 'qtwebsockets'
      CMake Warning (dev) at qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:423 (message):
        INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
        Please port your module to use declarative type registration.
      Call Stack (most recent call first):
        qtwebsockets/src/imports/qmlwebsockets/CMakeLists.txt:4 (qt_internal_add_qml_module)
      This warning is for project developers.  Use -Wno-dev to suppress it.

      – Configuring submodule 'qthttpserver'
      – Configuring submodule 'qtserialport'
      – Configuring submodule 'qtpositioning'
      – Configuring submodule 'qtlocation'
      – Configuring submodule 'qttools'
      CMake Error at /usr/lib/llvm-14/lib/cmake/clang/ClangTargets.cmake:750 (message):
        The imported target "clangBasic" references the file

           "/usr/lib/llvm-14/lib/libclangBasic.a"

        but this file does not exist.  Possible reasons include:

        * The file was deleted, renamed, or moved to another location.

        * An install or uninstall procedure did not complete successfully.

        * The installation package was faulty and contained

           "/usr/lib/llvm-14/lib/cmake/clang/ClangTargets.cmake"

        but not all the files it references.

      Call Stack (most recent call first):
        /usr/lib/cmake/clang-14/ClangConfig.cmake:19 (include)
        qttools/cmake/FindWrapLibClang.cmake:17 (find_package)
        qtbase/cmake/QtFindPackageHelpers.cmake:156 (find_package)
        qttools/configure.cmake:20 (qt_find_package)
        qtbase/cmake/QtFeature.cmake:678 (include)
        qttools/src/CMakeLists.txt:18 (qt_feature_evaluate_features)

      – Configuring incomplete, errors occurred!
      CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:1077 (message):
        CMake exited with code 1.

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              douglasheld Douglas Held
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes