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

Configure is broken for Qt builds with Visual Studio 2017 15.8 update

    XMLWordPrintable

    Details

    • Platform/s:
      Windows

      Description

      When configuring Qt with the latest Visual Studio 2017 update 15.8, there is an error:

      C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.15.26726\include\type_traits(1271): error C2338: You've instantiated std::aligned_storage<Len, Align> with an extended alignment (in other words, Align > alignof(max_align_t)). Before VS 2017 15.8, the member type would non-conformingly have an alignment of only alignof(max_align_t). VS 2017 15.8 was fixed to handle this correctly, but the fix inherently changes layout and breaks binary compatibility (*only* for uses of aligned_storage with extended alignments). Please define either (1) _ENABLE_EXTENDED_ALIGNED_STORAGE to acknowledge that you understand this message and that you actually want a type with an extended alignment, or (2) _DISABLE_EXTENDED_ALIGNED_STORAGE to silence this message and get the old non-conformant behavior. (compiling source file C:\Qt\5.11.1\Src\qtbase\src\corelib\global\qrandom.cpp)
      C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.15.26726\include\type_traits(1291): note: see reference to class template instantiation 'std::_Aligned<5004,64,double,false>' being compiled (compiling source file C:\Qt\5.11.1\Src\qtbase\src\corelib\global\qrandom.cpp)
      C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.15.26726\include\type_traits(1298): note: see reference to class template instantiation 'std::_Aligned<5004,64,int,false>' being compiled (compiling source file C:\Qt\5.11.1\Src\qtbase\src\corelib\global\qrandom.cpp)
      C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.15.26726\include\type_traits(1305): note: see reference to class template instantiation 'std::_Aligned<5004,64,short,false>' being compiled (compiling source file C:\Qt\5.11.1\Src\qtbase\src\corelib\global\qrandom.cpp)
      C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.15.26726\include\type_traits(1312): note: see reference to class template instantiation 'std::_Aligned<5004,64,char,false>' being compiled (compiling source file C:\Qt\5.11.1\Src\qtbase\src\corelib\global\qrandom.cpp)
      C:\Qt\5.11.1\Src\qtbase\src\corelib\global\qrandom.cpp(402): note: see reference to class template instantiation 'std::aligned_storage<5004,64>' being compiled
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.15.26726\bin\HostX64\x64\cl.EXE"' : return code '0x2'
      Stop.
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              buddenha Oswald Buddenhagen
              Reporter:
              jussi_witick Jussi Witick
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes