Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
None
-
6.0.0 Beta1, 6.0.0 Beta2
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
- is duplicated by
-
QTBUG-88434 Qt6 Beta4 fails to compile with Clang - SIMD issues
- Closed
- relates to
-
QTBUG-98253 Failed to build from source through clang-cl 13.0.0
- Closed
For Gerrit Dashboard: QTBUG-88081 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
352569,2 | CMake: Add support for building with clang-cl | dev | qt/qtbase | Status: MERGED | +2 | 0 |
355132,7 | Fix SSE4.1, RDSEED requirement for clang-cl builds | dev | qt/qtbase | Status: MERGED | +2 | 0 |
355186,2 | Fix SSE4.1, RDSEED requirement for clang-cl builds | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |