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

Failed to build Qt from source through clang-cl

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 6.0.0 Beta1, 6.0.0 Beta2
    • Build System: CMake

    Description

      I'm using the latest dev branch. I tried to build Qt through clang-cl, however the compilation failed. Here are the error messages:

      C:\CODE\Qt\qtbase\src\corelib\global\qsimd.cpp(660,44): error: use of undeclared identifier '_rdrand64_step'
      using randuint = ExtractParameter<decltype(_rdrandXX_step)>::Type;
                                                 ^
      C:\CODE\Qt\qtbase\src\corelib\global\qsimd.cpp(647,28): note: expanded from macro '_rdrandXX_step'
      #    define _rdrandXX_step _rdrand64_step
                                 ^
      C:\CODE\Qt\qtbase\src\corelib\global\qsimd.cpp(671,25): error: use of undeclared identifier 'randuint'
          while (ptr + sizeof(randuint) / sizeof(*ptr) <= end) {
                              ^
      C:\CODE\Qt\qtbase\src\corelib\global\qsimd.cpp(672,45): error: unknown type name 'randuint'
              if (_rdseedXX_step(reinterpret_cast<randuint *>(ptr)) == 0)
                                                  ^
      C:\CODE\Qt\qtbase\src\corelib\global\qsimd.cpp(672,13): error: use of undeclared identifier '_rdseed64_step'
              if (_rdseedXX_step(reinterpret_cast<randuint *>(ptr)) == 0)
                  ^
      C:\CODE\Qt\qtbase\src\corelib\global\qsimd.cpp(648,28): note: expanded from macro '_rdseedXX_step'
      #    define _rdseedXX_step _rdseed64_step
                                 ^
      C:\CODE\Qt\qtbase\src\corelib\global\qsimd.cpp(674,23): error: use of undeclared identifier 'randuint'
              ptr += sizeof(randuint) / sizeof(*ptr);
                            ^
      C:\CODE\Qt\qtbase\src\corelib\global\qsimd.cpp(677,32): error: use of undeclared identifier 'randuint'
          if (sizeof(*ptr) != sizeof(randuint) && ptr != end) {
                                     ^
      C:\CODE\Qt\qtbase\src\corelib\global\qsimd.cpp(678,13): error: use of undeclared identifier '_rdseed32_step'
              if (_rdseed32_step(ptr) == 0)
                  ^
      C:\CODE\Qt\qtbase\src\corelib\global\qsimd.cpp(696,25): error: use of undeclared identifier 'randuint'
          while (ptr + sizeof(randuint)/sizeof(*ptr) <= end) {
                              ^
      C:\CODE\Qt\qtbase\src\corelib\global\qsimd.cpp(697,45): error: unknown type name 'randuint'
              if (_rdrandXX_step(reinterpret_cast<randuint *>(ptr)))
                                                  ^
      C:\CODE\Qt\qtbase\src\corelib\global\qsimd.cpp(697,13): error: use of undeclared identifier '_rdrand64_step'
              if (_rdrandXX_step(reinterpret_cast<randuint *>(ptr)))
                  ^
      C:\CODE\Qt\qtbase\src\corelib\global\qsimd.cpp(647,28): note: expanded from macro '_rdrandXX_step'
      #    define _rdrandXX_step _rdrand64_step
                                 ^
      C:\CODE\Qt\qtbase\src\corelib\global\qsimd.cpp(698,27): error: use of undeclared identifier 'randuint'
                  ptr += sizeof(randuint)/sizeof(*ptr);
                                ^
      C:\CODE\Qt\qtbase\src\corelib\global\qsimd.cpp(703,35): error: use of undeclared identifier 'randuint'
          while (sizeof(*ptr) != sizeof(randuint) && ptr != end) {
                                        ^
      C:\CODE\Qt\qtbase\src\corelib\global\qsimd.cpp(704,19): error: use of undeclared identifier '_rdrand32_step'
              bool ok = _rdrand32_step(ptr);
                        ^
      13 errors generated.
      

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              wangwenx190 赵 宇航
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes