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

[REG 6.8.0->6.9.0] toplevel namespace build fails on MSVC2022 x64 & arm64, qtconnectivity/bluetooth

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • 6.9.0 FF
    • 6.9.0 FF
    • Windows11 23H2 x64, dev-branch provisioning
      Windows11 22H2 arm64, dev-branch provisioning
    • Windows
    • 83876bdca (dev)

      Have Qt 6.9.0 sources available on Windows with MSVC2022 installation, configure namespace build:

      cmake -DCMAKE_C_COMPILER=cl.exe -DCMAKE_CXX_COMPILER=cl.exe -GNinja -DCMAKE_BUILD_TYPE=Release -DQT_BUILD_EXAMPLES=OFF -DBUILD_WITH_PCH=OFF -DOPENSSL_ROOT_DIR=C:\openssl\include\.. -DFEATURE_system_zlib=OFF -DPostgreSQL_ROOT=C:\Utils\postgresql\pgsql\lib\.. -DQT_BUILD_TESTS=OFF -DQT_NAMESPACE=RTA C:\Users\qt\RTA\src-6.9.0 -DCMAKE_INSTALL_PREFIX:PATH=C:\Users\qt\RTA\src-6.9.0\qtbase 

      Fails:

      FAILED: qtconnectivity/src/bluetooth/CMakeFiles/Bluetooth.dir/qlowenergycontroller_winrt.cpp.obj 
      C:\PROGRA~1\MICROS~3\2022\PROFES~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\cl.exe  /nologo /TP -DBluetooth_EXPORTS -DNOMINMAX -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_BLUETOOTH_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_MOC_COMPAT -DQT_NAMESPACE=RTA -DQT_NETWORK_LIB -DQT_NO_AS_CONST=1 -DQT_NO_CAST_TO_ASCII -DQT_NO_CONTEXTLESS_CONNECT -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_FOREACH=1 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QASCONST -DQT_NO_QEXCHANGE -DQT_NO_QSNPRINTF -DQT_NO_QSNPRINTF=1 -DQT_USE_QSTRINGBUILDER -DQT_WINRT_BLUETOOTH -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -D_WINDLL -IC:\Users\qt\RTA\src-6.9.0\qtconnectivity\src\bluetooth\Bluetooth_autogen\include -IC:\Users\qt\RTA\src-6.9.0\qtbase\include -IC:\Users\qt\RTA\src-6.9.0\qtbase\include\QtBluetooth -IC:\Users\qt\RTA\src-6.9.0\qtconnectivity\src\bluetooth -IC:\Users\qt\RTA\src-6.9.0\qtbase\include\QtBluetooth\6.9.0 -IC:\Users\qt\RTA\src-6.9.0\qtbase\include\QtBluetooth\6.9.0\QtBluetooth -IC:\Users\qt\RTA\src-6.9.0\qtbase\include\QtCore -IC:\Users\qt\RTA\src-6.9.0\qtbase\mkspecs\win32-msvc -IC:\Users\qt\RTA\src-6.9.0\qtbase\include\QtNetwork -IC:\Users\qt\RTA\src-6.9.0\qtbase\src\corelib -IC:\Users\qt\RTA\src-6.9.0\qtbase\include\QtCore\6.9.0 -IC:\Users\qt\RTA\src-6.9.0\qtbase\include\QtCore\6.9.0\QtCore -IC:\Users\qt\RTA\src-6.9.0\qtbase\src\network -IC:\Users\qt\RTA\src-6.9.0\qtbase\include\QtNetwork\6.9.0 -IC:\Users\qt\RTA\src-6.9.0\qtbase\include\QtNetwork\6.9.0\QtNetwork /DWIN32 /D_WINDOWS /DNDEBUG              -O2 -Ob3 -O2 -Ob3 -std:c++17 -MD /W3 -Zc:__cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw /EHs-c- /wd4530 /wd4577 /showIncludes /Foqtconnectivity\src\bluetooth\CMakeFiles\Bluetooth.dir\qlowenergycontroller_winrt.cpp.obj /Fdqtconnectivity\src\bluetooth\CMakeFiles\Bluetooth.dir\ /FS -c C:\Users\qt\RTA\src-6.9.0\qtconnectivity\src\bluetooth\qlowenergycontroller_winrt.cpp 

      Build works on MinGW and LLVM-MinGW as well as with the unix targets, only MSVC2022 affected, both x64 and arm64.

      Build works also with Qt 6.8.0 with MSVC2022 x64 and arm64.

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

            ivan.solovev Ivan Solovev
            joaijala Johanna Äijälä
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes