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

'static assertion failed' errors while building QtTools on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.6, 5.7
    • Fix Version/s: 5.6.1
    • Component/s: Tools: Assistant
    • Labels:
    • Environment:
    • Commits:
      b2bede961d73ecc253f9bf6c61ccf3b5a8c12cb3

      Description

      Hi, everyone,

      Got errors while building Qt:

      C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\hash_map(14): error: static assertion failed with "<hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning."
        static_assert(false, "<hash_map> is deprecated and will be REMOVED. "
        ^
      
      C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\hash_set(14): error: static assertion failed with "<hash_set> is deprecated and will be REMOVED. Please use <unordered_set>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning."
        static_assert(false, "<hash_set> is deprecated and will be REMOVED. "
        ^
      

      inherent to static layout only, using Intel Compiler (log added in attachment).

      Not reproduced on early 5.6.*-dev releases. Could be fixed by changing line:

      win32-msvc.net | win32-msvc2* | winrt-* | winphone-* {
      

      to

      win32-icc | win32-msvc2* | winrt-* | winphone-* {
      

      in file

      qttools\src\assistant\clucene\clucene.pro
      

      Regards,

      Alexander

        Attachments

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

          Activity

            People

            • Assignee:
              heimrich Karsten Heimrich
              Reporter:
              sav sav
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes