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

could not suceed building from source v6.9.1 on windows11 sdk 10.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9.1
    • None
    • clang-cl
    • Windows
    • 5
    • Foundation PM Staging

    Description

      message:

      [6719/18886] Building CXX object qtconnectivity\src\bluetooth\CMakeFiles\Bluetooth.dir\Debug\qlowenergycontroller_winrt.cpp.obj
      FAILED: qtconnectivity/src/bluetooth/CMakeFiles/Bluetooth.dir/Debug/qlowenergycontroller_winrt.cpp.obj
      C:\PROGRA~1\MICROS~1\2022\Preview\VC\Tools\Llvm\x64\bin\clang-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_NETWORK_LIB -DQT_NO_AS_CONST=1 -DQT_NO_CAST_TO_ASCII -DQT_NO_CONTEXTLESS_CONNECT -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_NO_STD_FORMAT_SUPPORT -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 -DCMAKE_INTDIR=\"Debug\" -ID:\qt-everywhere-src-6.9.1\build\qtconnectivity\src\bluetooth\Bluetooth_autogen\include_Debug -ID:\qt-everywhere-src-6.9.1\build\qtbase\include -ID:\qt-everywhere-src-6.9.1\build\qtbase\include\QtBluetooth -ID:\qt-everywhere-src-6.9.1\qtconnectivity\src\bluetooth -ID:\qt-everywhere-src-6.9.1\build\qtconnectivity\src\bluetooth -ID:\qt-everywhere-src-6.9.1\build\qtbase\include\QtBluetooth\6.9.1 -ID:\qt-everywhere-src-6.9.1\build\qtbase\include\QtBluetooth\6.9.1\QtBluetooth -ID:\qt-everywhere-src-6.9.1\build\qtbase\include\QtCore -ID:\qt-everywhere-src-6.9.1\qtbase\mkspecs\win32-clang-msvc -ID:\qt-everywhere-src-6.9.1\build\qtbase\include\QtNetwork -ID:\qt-everywhere-src-6.9.1\build\qtbase\src\corelib -ID:\qt-everywhere-src-6.9.1\build\qtbase\include\QtCore\6.9.1 -ID:\qt-everywhere-src-6.9.1\build\qtbase\include\QtCore\6.9.1\QtCore -ID:\qt-everywhere-src-6.9.1\build\qtbase\src\network -ID:\qt-everywhere-src-6.9.1\build\qtbase\include\QtNetwork\6.9.1 -ID:\qt-everywhere-src-6.9.1\build\qtbase\include\QtNetwork\6.9.1\QtNetwork /std:c++17 -mcx16 /Zi     /RTC1 -std:c++17 -MDd /W3 -Wno-ignored-attributes -ftrivial-auto-var-init=pattern /EHs-c- /wd4530 /wd4577 /YuD:/qt-everywhere-src-6.9.1/build/qtconnectivity/src/bluetooth/CMakeFiles/Bluetooth.dir/Debug/cmake_pch.hxx /FpD:/qt-everywhere-src-6.9.1/build/qtconnectivity/src/bluetooth/CMakeFiles/Bluetooth.dir/Debug/cmake_pch.cxx.pch /FID:/qt-everywhere-src-6.9.1/build/qtconnectivity/src/bluetooth/CMakeFiles/Bluetooth.dir/Debug/cmake_pch.hxx /showIncludes /Foqtconnectivity\src\bluetooth\CMakeFiles\Bluetooth.dir\Debug\qlowenergycontroller_winrt.cpp.obj /Fdqtconnectivity\src\bluetooth\CMakeFiles\Bluetooth.dir\Debug\ -c -- D:\qt-everywhere-src-6.9.1\qtconnectivity\src\bluetooth\qlowenergycontroller_winrt.cpp
      In file included from D:\qt-everywhere-src-6.9.1\qtconnectivity\src\bluetooth\qlowenergycontroller_winrt.cpp:4:
      In file included from D:\qt-everywhere-src-6.9.1\qtconnectivity\src\bluetooth\qlowenergycontroller_winrt_p.h:27:
      In file included from C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt\winrt/Windows.Foundation.h:9:
      In file included from C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt\winrt/base.h:75:
      C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.44.35207\include\experimental/coroutine(29,2): warning: The <experimental/coroutine>, <experimental/generator>, and <experimental/resumable> headers do not support Clang, but the C++20 <coroutine> header does. [-W#warnings]
         29 | #warning The <experimental/coroutine>, <experimental/generator>, and <experimental/resumable> \
            |  ^
      In file included from D:\qt-everywhere-src-6.9.1\qtconnectivity\src\bluetooth\qlowenergycontroller_winrt.cpp:32:
      In file included from C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\windows.devices.bluetooth.h:107:
      In file included from C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h:108:
      In file included from C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Enumeration.h:111:
      In file included from C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.ApplicationModel.Background.h:197:
      In file included from C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.Background.h:114:
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.Rfcomm.h(831,30): error: typedef 'BluetoothError' cannot be referenced with the 'enum' specifier
        831 |                 typedef enum BluetoothError : int BluetoothError;
            |                              ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.Advertisement.h(1227,51): note: declared here
       1227 |                 typedef enum BluetoothError : int BluetoothError;
            |                                                   ^
      In file included from D:\qt-everywhere-src-6.9.1\qtconnectivity\src\bluetooth\qlowenergycontroller_winrt.cpp:32:
      In file included from C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\windows.devices.bluetooth.h:107:
      In file included from C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h:108:
      In file included from C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Enumeration.h:111:
      In file included from C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.ApplicationModel.Background.h:197:
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.Background.h(735,30): error: typedef 'BluetoothError' cannot be referenced with the 'enum' specifier
        735 |                 typedef enum BluetoothError : int BluetoothError;
            |                              ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.Advertisement.h(1227,51): note: declared here
       1227 |                 typedef enum BluetoothError : int BluetoothError;
            |                                                   ^
      In file included from D:\qt-everywhere-src-6.9.1\qtconnectivity\src\bluetooth\qlowenergycontroller_winrt.cpp:32:
      In file included from C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\windows.devices.bluetooth.h:107:
      In file included from C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h:108:
      In file included from C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Enumeration.h:111:
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.ApplicationModel.Background.h(3092,30): error: typedef 'BluetoothError' cannot be referenced with the 'enum' specifier
       3092 |                 typedef enum BluetoothError : int BluetoothError;
            |                              ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.Advertisement.h(1227,51): note: declared here
       1227 |                 typedef enum BluetoothError : int BluetoothError;
            |                                                   ^
      In file included from D:\qt-everywhere-src-6.9.1\qtconnectivity\src\bluetooth\qlowenergycontroller_winrt.cpp:32:
      In file included from C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\windows.devices.bluetooth.h:107:
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1273,81): error: typedef 'GattCommunicationStatus' cannot be referenced with the 'enum' specifier
       1273 | IAsyncOperation<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus> : IAsyncOperation_impl<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus>
            |                                                                                 ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1258,64): note: declared here
       1258 |                     typedef enum GattCommunicationStatus : int GattCommunicationStatus;
            |                                                                ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1273,193): error: typedef 'GattCommunicationStatus' cannot be referenced with the 'enum' specifier
       1273 | IAsyncOperation<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus> : IAsyncOperation_impl<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus>
            |                                                                                                                                                                                                 ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1258,64): note: declared here
       1258 |                     typedef enum GattCommunicationStatus : int GattCommunicationStatus;
            |                                                                ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1283,89): error: typedef 'GattCommunicationStatus' cannot be referenced with the 'enum' specifier
       1283 | typedef IAsyncOperation<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus> __FIAsyncOperation_1_Windows__CDevices__CBluetooth__CGenericAttributeProfile__CGattCommunicationStatus_t;
            |                                                                                         ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1258,64): note: declared here
       1258 |                     typedef enum GattCommunicationStatus : int GattCommunicationStatus;
            |                                                                ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1300,97): error: typedef 'GattCommunicationStatus' cannot be referenced with the 'enum' specifier
       1300 | IAsyncOperationCompletedHandler<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus> : IAsyncOperationCompletedHandler_impl<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus>
            |                                                                                                 ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1258,64): note: declared here
       1258 |                     typedef enum GattCommunicationStatus : int GattCommunicationStatus;
            |                                                                ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1300,225): error: typedef 'GattCommunicationStatus' cannot be referenced with the 'enum' specifier
       1300 | IAsyncOperationCompletedHandler<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus> : IAsyncOperationCompletedHandler_impl<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus>
            |                                                                                                                                                                                                                                 ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1258,64): note: declared here
       1258 |                     typedef enum GattCommunicationStatus : int GattCommunicationStatus;
            |                                                                ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1310,105): error: typedef 'GattCommunicationStatus' cannot be referenced with the 'enum' specifier
       1310 | typedef IAsyncOperationCompletedHandler<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattCommunicationStatus> __FIAsyncOperationCompletedHandler_1_Windows__CDevices__CBluetooth__CGenericAttributeProfile__CGattCommunicationStatus_t;
            |                                                                                                         ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1258,64): note: declared here
       1258 |                     typedef enum GattCommunicationStatus : int GattCommunicationStatus;
            |                                                                ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1669,81): error: typedef 'GattOpenStatus' cannot be referenced with the 'enum' specifier
       1669 | IAsyncOperation<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattOpenStatus> : IAsyncOperation_impl<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattOpenStatus>
            |                                                                                 ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1654,55): note: declared here
       1654 |                     typedef enum GattOpenStatus : int GattOpenStatus;
            |                                                       ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1669,184): error: typedef 'GattOpenStatus' cannot be referenced with the 'enum' specifier
       1669 | IAsyncOperation<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattOpenStatus> : IAsyncOperation_impl<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattOpenStatus>
            |                                                                                                                                                                                        ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1654,55): note: declared here
       1654 |                     typedef enum GattOpenStatus : int GattOpenStatus;
            |                                                       ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1679,89): error: typedef 'GattOpenStatus' cannot be referenced with the 'enum' specifier
       1679 | typedef IAsyncOperation<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattOpenStatus> __FIAsyncOperation_1_Windows__CDevices__CBluetooth__CGenericAttributeProfile__CGattOpenStatus_t;
            |                                                                                         ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1654,55): note: declared here
       1654 |                     typedef enum GattOpenStatus : int GattOpenStatus;
            |                                                       ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1696,97): error: typedef 'GattOpenStatus' cannot be referenced with the 'enum' specifier
       1696 | IAsyncOperationCompletedHandler<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattOpenStatus> : IAsyncOperationCompletedHandler_impl<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattOpenStatus>
            |                                                                                                 ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1654,55): note: declared here
       1654 |                     typedef enum GattOpenStatus : int GattOpenStatus;
            |                                                       ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1696,216): error: typedef 'GattOpenStatus' cannot be referenced with the 'enum' specifier
       1696 | IAsyncOperationCompletedHandler<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattOpenStatus> : IAsyncOperationCompletedHandler_impl<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattOpenStatus>
            |                                                                                                                                                                                                                        ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1654,55): note: declared here
       1654 |                     typedef enum GattOpenStatus : int GattOpenStatus;
            |                                                       ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1706,105): error: typedef 'GattOpenStatus' cannot be referenced with the 'enum' specifier
       1706 | typedef IAsyncOperationCompletedHandler<enum ABI::Windows::Devices::Bluetooth::GenericAttributeProfile::GattOpenStatus> __FIAsyncOperationCompletedHandler_1_Windows__CDevices__CBluetooth__CGenericAttributeProfile__CGattOpenStatus_t;
            |                                                                                                         ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(1654,55): note: declared here
       1654 |                     typedef enum GattOpenStatus : int GattOpenStatus;
            |                                                       ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(3497,30): error: typedef 'BluetoothCacheMode' cannot be referenced with the 'enum' specifier
       3497 |                 typedef enum BluetoothCacheMode : int BluetoothCacheMode;
            |                              ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.Rfcomm.h(796,55): note: declared here
        796 |                 typedef enum BluetoothCacheMode : int BluetoothCacheMode;
            |                                                       ^
      In file included from D:\qt-everywhere-src-6.9.1\qtconnectivity\src\bluetooth\qlowenergycontroller_winrt.cpp:32:
      In file included from C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\windows.devices.bluetooth.h:107:
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(3532,30): error: typedef 'BluetoothError' cannot be referenced with the 'enum' specifier
       3532 |                 typedef enum BluetoothError : int BluetoothError;
            |                              ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.Advertisement.h(1227,51): note: declared here
       1227 |                 typedef enum BluetoothError : int BluetoothError;
            |                                                   ^
      In file included from D:\qt-everywhere-src-6.9.1\qtconnectivity\src\bluetooth\qlowenergycontroller_winrt.cpp:32:
      In file included from C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\windows.devices.bluetooth.h:107:
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(3815,26): error: definition of type 'GattCharacteristicProperties' conflicts with typedef of the same name
       3815 |                     enum GattCharacteristicProperties : unsigned int
            |                          ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(3663,78): note: 'GattCharacteristicProperties' declared here
       3663 |                     typedef enum GattCharacteristicProperties : unsigned int GattCharacteristicProperties;
            |                                                                              ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(3851,26): error: definition of type 'GattClientCharacteristicConfigurationDescriptorValue' conflicts with typedef of the same name
       3851 |                     enum GattClientCharacteristicConfigurationDescriptorValue : int
            |                          ^
      C:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt\Windows.Devices.Bluetooth.GenericAttributeProfile.h(3675,93): note: 'GattClientCharacteristicConfigurationDescriptorValue' declared here
       3675 |                     typedef enum GattClientCharacteristicConfigurationDescriptorValue : int GattClientCharacteristicConfigurationDescriptorValue;
            |                                                                                             ^
      fatal error: too many errors emitted, stopping now [-ferror-limit=]
      

      Attachments

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

        Activity

          People

            ivan.solovev Ivan Solovev
            issue Guangyu Han Guangyu
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes