Uploaded image for project: 'Qt Quality Assurance Infrastructure'
  1. Qt Quality Assurance Infrastructure
  2. QTQAINFRA-6518

Update Visual Studio 2022 to 17.10.4

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.8
    • Jenkins
    • None
    • Windows
    • 2151c5510 (dev), deea41c06 (6.8)

    Description

      In order to get Qt Creator to have a native build for Windows Arm64 we need to have a LLVM / Clang native build for Windows Arm64.

      As it turns out at Qtcreator_libclang ยป win-msvc2022-Windows11-22H2-arm64 #36 Console [Jenkins] you can see that win-msvc2022-Windows11-22H2-arm64 has a Visual C++ version that gives an internal compiler error:

      16:39:54 FAILED: tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/StreamChecker.cpp.obj 
      16:39:54 C:\PROGRA~1\MICROS~1\2022\PROFES~1\VC\Tools\MSVC\1440~1.338\bin\HOSTAR~1\arm64\cl.exe  /nologo /TP -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\Users\qt\work\build\build\tools\clang\lib\StaticAnalyzer\Checkers -IC:\Users\qt\work\build\llvm\clang\lib\StaticAnalyzer\Checkers -IC:\Users\qt\work\build\llvm\clang\include -IC:\Users\qt\work\build\build\tools\clang\include -IC:\Users\qt\work\build\build\include -IC:\Users\qt\work\build\llvm\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -w14062 -we4238 /Gw /O2 /Ob2 /DNDEBUG -std:c++17 -MD  /EHs-c- /GR /showIncludes /Fotools\clang\lib\StaticAnalyzer\Checkers\CMakeFiles\obj.clangStaticAnalyzerCheckers.dir\StreamChecker.cpp.obj /Fdtools\clang\lib\StaticAnalyzer\Checkers\CMakeFiles\obj.clangStaticAnalyzerCheckers.dir\ /FS -c C:\Users\qt\work\build\llvm\clang\lib\StaticAnalyzer\Checkers\StreamChecker.cpp
      16:39:54 C:\Users\qt\work\build\llvm\clang\lib\StaticAnalyzer\Checkers\StreamChecker.cpp(1479) : fatal error C1001: Internal compiler error.
      16:39:54 (compiler file 'D:\a\_work\1\s\src\vctools\Compiler\Utc\src\p2\main.c', line 242)
      16:39:54  To work around this problem, try simplifying or changing the program near the locations listed above.
      16:39:54 If possible please provide a repro here: https://developercommunity.visualstudio.com 
      16:39:54 Please choose the Technical Support command on the Visual C++ 
      16:39:54  Help menu, or open the Technical Support help file for more information
      16:39:54   cl!RaiseException()+0x54
      16:39:54   cl!DllGetObjHandler()+0x31a0c
      16:39:54   cl!DllGetObjHandler()+0x448
      16:39:54   cl!DllGetObjHandler()+0x5c2690
      16:39:54   cl!DllGetObjHandler()+0x6cf368
      16:39:54   cl!DllGetObjHandler()+0x7c7a74
      16:39:54   cl!DllGetObjHandler()+0x7bce74
      16:39:54   cl!DllGetObjHandler()+0x6cd960
      16:39:54   cl!DllGetObjHandler()+0x394fbc
      16:39:54   cl!DllGetObjHandler()+0x114b0
      16:39:54   cl!DllGetObjHandler()+0x85d0
      16:39:54   cl!DllGetObjHandler()+0x18c88
      16:39:54   cl!DllGetObjHandler()+0x3fb918
      16:39:54   cl!strtol()+0x23c
      16:39:54   cl!BaseThreadInitThunk()+0x30
      16:39:54   cl!RtlUserThreadStart()+0x3
       

      This error has been reported at cl.exe ICE when compiling llvm-project - Developer Community (visualstudio.com) and has been fixed.

      Locally I have a Visual Studio 2022 v17.10.4 and I was able to compile without any issues.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTQAINFRA-6518
          # Subject Branch Project Status CR V

          Activity

            People

              eltoivol Elias Toivola
              cadam Cristian Adam
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes