Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.11.1
-
None
-
-
0ef66e98ccf4946a0e4513ab5fc157df0f0aca4e
Description
Hi all,
I'm trying to compile Qt5.11.1 and during the configure step it throws the follwoing assertion:
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_src\5.11.1\qtbase\src\corelib\global\qrandom.cpp)
I tried to set the define as the following:
configure.bat -top-level -opensource -confirm-license -c++std c++1z -D _ENABLE_EXTENDED_ALIGNED_STORAGE -debug-and-release -shared
It doesn't solve the error. I tried "_DISABLE_EXTENDED_ALIGNED_STORAGE", too.
Any ideas, where to set the needed define for nmake / MSVC?
Best regards,
Mike
Attachments
Issue Links
- duplicates
-
QTBUG-69948 VS2017 15.8.0 compile error (x86)
- Closed