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

libclang15-based lupdate fails with MSVC2022

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7
    • Tools: Linguist
    • None
    • Windows
    • 9746a55be (dev), c8a236e85 (dev), 49e82ad18 (6.7), 419dac87e (6.7), 563372e7c (6.7.1), 3a7387379 (6.7.1)

    Description

      With MSVC2022 compiler version 19.39.33523 libclang15-based lupdate will fail with the following error

      qt@DESKTOP-T3V08O7 C:\Users\qt\work\qt\qttools\tests\auto\linguist\lupdate\testdata\good\heuristics>C:\Users\qt\work\install\bin\lupdate.exe -clang-parser -verbose -disable-heuristic similartext -no-obsolete project.pro
      Info: creating stash file C:\Users\qt\work\qt\qttools\tests\auto\linguist\lupdate\testdata\good\heuristics\.qmake.stash
      In file included from C:\Users\qt\work\qt\qttools\tests\auto\linguist\lupdate\testdata\good\heuristics\main.cpp:33:
      In file included from C:/Users/qt/work/install/include/QtCore\QtCore:4:
      In file included from C:/Users/qt/work/install/include/QtCore/qglobal.h:13:
      In file included from C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.39.33519\include\type_traits:8:
      C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.39.33519\include\yvals_core.h:892:1: error: static assertion failed: error STL1000: Unexpected compiler version, expected Clang 16.0.0 or newer.
      _EMIT_STL_ERROR(STL1000, "Unexpected compiler version, expected Clang 16.0.0 or newer.");
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.39.33519\include\yvals_core.h:516:44: note: expanded from macro '_EMIT_STL_ERROR'
      #define _EMIT_STL_ERROR(NUMBER, MESSAGE)   static_assert(false, "error " #NUMBER ": " MESSAGE)
                                                 ^             ~~~~~
      1 error generated.
      Error while processing C:\Users\qt\work\qt\qttools\tests\auto\linguist\lupdate\testdata\good\heuristics\main.cpp.
      Updating 'project.ts'...
          Found 2 source text(s) (0 new and 2 already existing)
      

      The headers of this MSVC version require libclang16 now.

      This has been uncovered by an attempt to update MSVC2022 in CI: https://codereview.qt-project.org/c/qt/qt5/+/549791

      Attachments

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

        Activity

          People

            kkohne Kai Köhne
            jbornema Joerg Bornemann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews