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

headersclean is broken on dev with VS 2022 (17.6.1)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.0, 6.6.0
    • Build System, Core: Other
    • None
    • Windows

    Description

      While building with -headersclean on Windows with the latest Visual Studio 2022, v17.6.1. I get the following errors if I try to run any of the headersclean_check targets, e.g., ninja Core_headersclean_check. 

      C:/Users/amirm/Developer/Qt/qt5/qtbase/src/corelib/kernel/qassociativeiterable.h
        header check failed: C:/Program Files/Microsoft Visual
        Studio/2022/Community/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe;-nologo;-c;/DWIN32
        /D_WINDOWS;-DQT_LEAN_HEADERS=1;-DQT_NO_FOREACH;-DQT_NO_USING_NAMESPACE;-DQT_TYPESAFE_FLAGS;-DQT_ASCII_CAST_WARNINGS;-DQT_MOC_COMPAT;-DQT_USE_QSTRINGBUILDER;-DQT_DEPRECATED_WARNINGS;-DQT_BUILDING_QT;-DQT_BUILD_CORE_LIB;-DQT_DISABLE_DEPRECATED_UP_TO=0x040800;-DQT_WARN_DEPRECATED_UP_TO=0x070000;-DWIN32;-D_ENABLE_EXTENDED_ALIGNED_STORAGE;-DWIN64;-D_WIN64;-DUNICODE;-D_UNICODE;-D_USE_MATH_DEFINES;-DQT_NO_JAVA_STYLE_ITERATORS;-DQT_NO_AS_CONST;-DQT_NO_QEXCHANGE;-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT;-DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH;-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT;-DQT_NO_DEBUG;-D_CRT_SECURE_NO_WARNINGS;-D_WINDLL;-DQT_ZLIB_LIB;-DPCRE2_CODE_UNIT_WIDTH=16;-DPCRE2_STATIC;-std:c++latest;-Zc:__cplusplus;-Za;-WX;-W3;-EHsc;-IC:/Users/amirm/Developer/Qt/builds/qtbase/qtbase/src/corelib/Core_autogen/include_RelWithDebInfo;-IC:/Users/amirm/Developer/Qt/builds/qtbase/qtbase/include;-IC:/Users/amirm/Developer/Qt/builds/qtbase/qtbase/include/QtCore;-IC:/Users/amirm/Developer/Qt/qt5/qtbase/src/corelib;-IC:/Users/amirm/Developer/Qt/builds/qtbase/qtbase/src/corelib;-IC:/Users/amirm/Developer/Qt/builds/qtbase/qtbase/src/corelib/global;-IC:/Users/amirm/Developer/Qt/builds/qtbase/qtbase/src/corelib/kernel;-IC:/Users/amirm/Developer/Qt/qt5/qtbase/src/corelib/../3rdparty/tinycbor/src;-IC:/Users/amirm/Developer/Qt/builds/qtbase/qtbase/include/QtCore/6.6.0;-IC:/Users/amirm/Developer/Qt/builds/qtbase/qtbase/include/QtCore/6.6.0/QtCore;-IC:/Users/amirm/Developer/Qt/qt5/qtbase/src/corelib/../3rdparty/double-conversion/double-conversion;-IC:/Users/amirm/Developer/Qt/qt5/qtbase/src/corelib/../3rdparty/double-conversion;-IC:/Users/amirm/Developer/Qt/builds/qtbase/qtbase/src/corelib/.rcc;-IC:/Users/amirm/Developer/Qt/qt5/qtbase/mkspecs/win32-msvc;-IC:/Users/amirm/Developer/Qt/builds/qtbase/qtbase/include;-IC:/Users/amirm/Developer/Qt/builds/qtbase/qtbase/include/QtCore/6.6.0;-IC:/Users/amirm/Developer/Qt/builds/qtbase/qtbase/include/QtCore/6.6.0/QtCore;-IC:/Users/amirm/Developer/Qt/builds/qtbase/qtbase/include;-IC:/Users/amirm/Developer/Qt/builds/qtbase/qtbase/include/QtCore;-IC:/Users/amirm/Developer/Qt/builds/qtbase/qtbase/include;-IC:/Users/amirm/Developer/Qt/builds/qtbase/qtbase/include/QtZlib;-IC:/Users/amirm/Developer/Qt/qt5/qtbase/src/3rdparty/zlib;-IC:/Users/amirm/Developer/Qt/builds/qtbase/qtbase/src/3rdparty/zlib;-IC:/Users/amirm/Developer/Qt/builds/qtbase/qtbase/src/3rdparty/zlib;-IC:/Users/amirm/Developer/Qt/qt5/qtbase/src/3rdparty/pcre2/src;-DQT_NO_CAST_TO_ASCII;-DQT_NO_CAST_FROM_ASCII;-DQT_NO_URL_CAST_FROM_STRING;-DQT_NO_CAST_FROM_BYTEARRAY;-DQT_NO_KEYWORDS;-DQT_TYPESAFE_FLAGS;-DQT_USE_QSTRINGBUILDER;-DQT_USE_FAST_OPERATOR_PLUS;-FI;C:/Users/amirm/Developer/Qt/qt5/qtbase/src/corelib/kernel/qassociativeiterable.h;-FoC:/Users/amirm/Developer/Qt/builds/qtbase/qtbase/src/corelib/header_check/qassociativeiterable.h.o;C:/Users/amirm/Developer/Qt/qt5/qtbase/mkspecs/features/data/dummy.cpp
      
      
         dummy.cpp
      
      
        C:\Users\amirm\Developer\Qt\builds\qtbase\qtbase\include\QtCore\../../../../../qt5/qtbase/src/corelib/global/qnamespace.h(92):
        error C2220: the following warning is treated as an error
      
      
        C:\Users\amirm\Developer\Qt\builds\qtbase\qtbase\include\QtCore\../../../../../qt5/qtbase/src/corelib/global/qnamespace.h(92):
        warning C4309: 'initializing': truncation of constant value
      
      
        C:\Users\amirm\Developer\Qt\builds\qtbase\qtbase\include\QtCore\../../../../../qt5/qtbase/src/corelib/global/qnamespace.h(244):
        warning C4309: 'initializing': truncation of constant value
      
      
        C:\Users\amirm\Developer\Qt\builds\qtbase\qtbase\include\QtCore\../../../../../qt5/qtbase/src/corelib/global/qnamespace.h(1056):
        warning C4309: 'initializing': truncation of constant value
      
      
        C:\Users\amirm\Developer\Qt\builds\qtbase\qtbase\include\QtCore\../../../../../qt5/qtbase/src/corelib/global/qnamespace.h(1374):
        warning C4309: 'initializing': truncation of constant value
      
      
        C:\Users\amirm\Developer\Qt\builds\qtbase\qtbase\include\QtCore\../../../../../qt5/qtbase/src/corelib/global/qnamespace.h(1377):
        warning C4309: 'initializing': truncation of constant value
      
      
        C:\Users\amirm\Developer\Qt\builds\qtbase\qtbase\include\QtCore\../../../../../qt5/qtbase/src/corelib/global/qnamespace.h(1412):
        warning C4309: 'initializing': truncation of constant value
      
      
        C:\Users\amirm\Developer\Qt\builds\qtbase\qtbase\include\QtCore\../../../../../qt5/qtbase/src/corelib/global/qnamespace.h(1629):
        warning C4309: 'initializing': truncation of constant value
      
      
        C:\Users\amirm\Developer\Qt\builds\qtbase\qtbase\include\QtCore\../../../../../qt5/qtbase/src/corelib/kernel/qvariant.h(208):
        warning C4309: 'initializing': truncation of constant value
      
      
      
      ninja: build stopped: subcommand failed.
      

      Attachments

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

        Activity

          People

            cnn Qt Core & Network
            mrmsdbdl Amir Masoud Abdol
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes