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

qtwebengine fails to build on msvc2022 (c++20)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.9.0 FF
    • 6.9
    • WebEngine
    • None
    • d11709f18 (dev), 209778ed9 (dev), 4d06816f1 (dev)

    Description

      When trying to add windows-11_23H2-msvc2022-developer-build (https://codereview.qt-project.org/c/qt/qt5/+/567093/6 ) build fails on qtwebengine:

      agent:2024/08/12 23:07:15 build.go:404: FAILED: src/pdf/CMakeFiles/Pdf.dir/Debug/qpdfsearchmodel.cpp.obj 
      agent:2024/08/12 23:07:15 build.go:404: sccache C:\PROGRA~1\MICROS~3\2022\PROFES~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\cl.exe  /nologo /TP -DNOMINMAX -DPdf_EXPORTS -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_PDF_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_GUI_LIB -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_AS_CONST=1 -DQT_NO_CAST_TO_ASCII -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=1 -DQT_STRICT_QLIST_ITERATORS -DQT_USE_QSTRINGBUILDER -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\" -IC:\Users\qt\work\qt\qtwebengine_build\src\pdf\Pdf_autogen\include_Debug -IC:\Users\qt\work\qt\qtwebengine_build\include -IC:\Users\qt\work\qt\qtwebengine_build\include\QtPdf -IC:\Users\qt\work\qt\qtwebengine\src\pdf -IC:\Users\qt\work\qt\qtwebengine_build\src\pdf -IC:\Users\qt\work\qt\qtwebengine\src\pdf\..\3rdparty\chromium -IC:\Users\qt\work\qt\qtwebengine_build\include\QtPdf\6.9.0 -IC:\Users\qt\work\qt\qtwebengine_build\include\QtPdf\6.9.0\QtPdf -IC:\Users\qt\work\qt\qtwebengine_build\src\pdf\Debug\AMD64\gen -external:IC:\Users\qt\work\install\include\QtCore -external:IC:\Users\qt\work\install\include -external:IC:\Users\qt\work\install\mkspecs\win32-msvc -external:IC:\Users\qt\work\install\include\QtGui -external:IC:\VulkanSDK\1.2.182.0\Include -external:IC:\Users\qt\work\install\include\QtCore\6.9.0 -external:IC:\Users\qt\work\install\include\QtCore\6.9.0\QtCore -external:IC:\Users\qt\work\install\include\QtNetwork -external:W0 /DWIN32 /D_WINDOWS /GR /Z7     /RTC1 -std:c++20 -MDd /W3 /EHs-c- /wd4530 /wd4577 -Zc:__cplusplus -permissive- -utf-8 /WX -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj /showIncludes /Fosrc\pdf\CMakeFiles\Pdf.dir\Debug\qpdfsearchmodel.cpp.obj /Fdsrc\pdf\CMakeFiles\Pdf.dir\Debug\ /FS -c C:\Users\qt\work\qt\qtwebengine\src\pdf\qpdfsearchmodel.cpp
      agent:2024/08/12 23:07:15 build.go:404: C:\Users\qt\work\qt\qtwebengine\src\pdf\qpdfsearchmodel.cpp(226): error C2220: the following warning is treated as an error
      agent:2024/08/12 23:07:15 build.go:404: C:\Users\qt\work\qt\qtwebengine\src\pdf\qpdfsearchmodel.cpp(226): warning C4996: 'qLcS': Use Q_STATIC_LOGGING_CATEGORY or add either Q_DECLARE_LOGGING_CATEGORY or QT_DECLARE_EXPORTED_QT_LOGGING_CATEGORY in a header
      

      Full log: https://testresults.qt.io/coin/api/log/qt/qtwebengine/f9fa4fff5f8cf6d89661ca4214f5fb9f2a254202/WindowsWindows_11_23H2x86_64WindowsWindows_11_23H2x86_64MSVC2022qtci-windows-11_23H2-x86_64-52-cec55cDebugAndRelease_Sccache_UseConfigure_WarningsAreErrors/8d19c3e5149543dd7de30d30ecbf48d6eb27883f/build_1723490953/log.txt.gz
      Integration: https://testresults.qt.io/coin/integration/qt/qt5/tasks/web_qt_qt5_1723490270202

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-127975
          # Subject Branch Project Status CR V

          Activity

            People

              kchehlarski Kaloyan Chehlarski
              jujokini Jukka Jokiniva
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change