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

build failure (with conan)when odbc and vulkan are enabled (due to global promotion)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 6.2.1
    • Fix Version/s: None
    • Component/s: Build System: CMake, Conan
    • Labels:
      None
    • Environment:
      linux conan vulkan odbc
    • Platform/s:
      Linux/Other display system

      Description

      When building qt with vulkan and odbc enabled on linux, it fails with:

      CMake Error at qtbase/cmake/QtPublicTargetHelpers.cmake:257 (set_property):
        Attempt to promote imported target "CONAN_LIB::Iconv_iconv" to global scope
        (by setting IMPORTED_GLOBAL) which is not built in this directory.
      Call Stack (most recent call first):
        qtbase/cmake/QtPublicWalkLibsHelpers.cmake:238 (__qt_internal_promote_target_to_global)
        qtbase/cmake/QtPublicWalkLibsHelpers.cmake:187 (__qt_internal_walk_libs)
        qtbase/cmake/QtPublicWalkLibsHelpers.cmake:212 (__qt_internal_walk_libs)
        qtbase/cmake/QtPublicWalkLibsHelpers.cmake:187 (__qt_internal_walk_libs)
        qtbase/cmake/QtFindPackageHelpers.cmake:12 (__qt_internal_walk_libs)
        qtbase/cmake/QtFindPackageHelpers.cmake:181 (qt_find_package_promote_targets_to_global_scope)
        qtbase/src/plugins/sqldrivers/configure.cmake:17 (qt_find_package)
        qtbase/src/plugins/sqldrivers/CMakeLists.txt:35 (include)
      
      
      CMake Error at qtbase/cmake/QtPublicTargetHelpers.cmake:257 (set_property):
        Attempt to promote imported target "CONAN_LIB::Iconv_charset" to global
        scope (by setting IMPORTED_GLOBAL) which is not built in this directory.
      Call Stack (most recent call first):
        qtbase/cmake/QtPublicWalkLibsHelpers.cmake:238 (__qt_internal_promote_target_to_global)
        qtbase/cmake/QtPublicWalkLibsHelpers.cmake:187 (__qt_internal_walk_libs)
        qtbase/cmake/QtPublicWalkLibsHelpers.cmake:212 (__qt_internal_walk_libs)
        qtbase/cmake/QtPublicWalkLibsHelpers.cmake:187 (__qt_internal_walk_libs)
        qtbase/cmake/QtFindPackageHelpers.cmake:12 (__qt_internal_walk_libs)
        qtbase/cmake/QtFindPackageHelpers.cmake:181 (qt_find_package_promote_targets_to_global_scope)
        qtbase/src/plugins/sqldrivers/configure.cmake:17 (qt_find_package)
        qtbase/src/plugins/sqldrivers/CMakeLists.txt:35 (include)
      
      
      CMake Error at qtbase/cmake/QtPublicTargetHelpers.cmake:257 (set_property):
        Attempt to promote imported target "Iconv::Iconv" to global scope (by
        setting IMPORTED_GLOBAL) which is not built in this directory.
      Call Stack (most recent call first):
        qtbase/cmake/QtPublicWalkLibsHelpers.cmake:238 (__qt_internal_promote_target_to_global)
        qtbase/cmake/QtPublicWalkLibsHelpers.cmake:212 (__qt_internal_walk_libs)
        qtbase/cmake/QtPublicWalkLibsHelpers.cmake:187 (__qt_internal_walk_libs)
        qtbase/cmake/QtFindPackageHelpers.cmake:12 (__qt_internal_walk_libs)
        qtbase/cmake/QtFindPackageHelpers.cmake:181 (qt_find_package_promote_targets_to_global_scope)
        qtbase/src/plugins/sqldrivers/configure.cmake:17 (qt_find_package)
        qtbase/src/plugins/sqldrivers/CMakeLists.txt:35 (include)
      

      Full log available on https://github.com/eirikb/proof-of-conan/runs/4373070720?check_suite_focus=true#step:8:2107

      This looks like QTBUG-94356

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qtbuildsystem Qt Build System Team
              Reporter:
              ericlemanissier Eric Lemanissier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes