<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Build failed at qdatetime!]]></title><description><![CDATA[<p dir="auto">Hello.<br />
For Qt version 6.4, on windows 10 using VS2019 compiler, this happens:</p>
<pre><code>[64/10682] Building CXX object qtbase\src\tools\bootstrap\CMakeFiles\Bootstrap.dir\__\__\corelib\time\qdatetime.cpp.obj
FAILED: qtbase/src/tools/bootstrap/CMakeFiles/Bootstrap.dir/__/__/corelib/time/qdatetime.cpp.obj
C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1429~1.301\bin\Hostx86\x86\cl.exe  /nologo /TP -DHAVE_CONFIG_H -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_DISABLE_JIT -DPCRE2_STATIC -DQT_BOOTSTRAPPED -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_STRICT_QLIST_ITERATORS -DQT_TYPESAFE_FLAGS -DQT_USE_QSTRINGBUILDER -DQT_VERSION_MAJOR=6 -DQT_VERSION_MINOR=4 -DQT_VERSION_PATCH=0 -DQT_VERSION_STR=\"6.4.0\" -DUNICODE -DWIN32 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -Iqtbase\src\corelib\Core_autogen\include -Iqtbase\include -Iqtbase\include\QtCore -I..\qtbase\src\corelib -Iqtbase\src\corelib -Iqtbase\src\corelib\global -Iqtbase\src\corelib\kernel -I..\qtbase\src\corelib\..\3rdparty\tinycbor\src -Iqtbase\include\QtCore\6.4.0 -Iqtbase\include\QtCore\6.4.0\QtCore -I..\qtbase\src\corelib\..\3rdparty\double-conversion\double-conversion -I..\qtbase\src\corelib\..\3rdparty\double-conversion -Iqtbase\src\corelib\.rcc -Iqtbase\mkspecs\win32-msvc -Iqtbase\include\QtZlib -I..\qtbase\src\3rdparty\zlib -Iqtbase\src\3rdparty\zlib -I..\qtbase\src\3rdparty\pcre2\src -I..\qtbase\src\tools\bootstrap\.. -I..\qtbase\src\tools\bootstrap\..\..\3rdparty\tinycbor\src -I..\qtbase\src\tools\bootstrap\..\..\3rdparty\pcre2\src /DWIN32 /D_WINDOWS /GR /Zi     /RTC1 -MDd /W3 -Zc:__cplusplus -permissive- /WX -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:externConstexpr -Zc:wchar_t -bigobj -std:c++17 /showIncludes /Foqtbase\src\tools\bootstrap\CMakeFiles\Bootstrap.dir\__\__\corelib\time\qdatetime.cpp.obj /Fdqtbase\src\tools\bootstrap\Qt6Bootstrapd.pdb /FS -c ..\qtbase\src\corelib\time\qdatetime.cpp
..\qtbase\src\corelib\time\qdatetime.cpp(3287): error C2607: static assertion failed
..\qtbase\src\corelib\time\qdatetime.cpp(3288): error C2607: static assertion failed
ninja: build stopped: subcommand failed.
</code></pre>
<p dir="auto">The code it is complaining about is this:</p>
<pre><code>QDateTime::QDateTime() noexcept
{
#if QT_VERSION &gt;= QT_VERSION_CHECK(7, 0, 0) || defined(QT_BOOTSTRAPPED) || QT_POINTER_SIZE == 8
    static_assert(sizeof(ShortData) == sizeof(qint64));
    static_assert(sizeof(Data) == sizeof(qint64));
#endif
    static_assert(sizeof(ShortData) &gt;= sizeof(void*), "oops, Data::swap() is broken!");
}
</code></pre>
<p dir="auto">I'm not sure what I should do at this point.  Do you have any ideas? Could it be a setting somewhere?  Did I accidentally mix different versions of something?</p>
<p dir="auto">Source was cloned from git.</p>
<p dir="auto">Thanks in advance.</p>
<p dir="auto">Carlos</p>
]]></description><link>https://forum.qt.io/topic/138928/build-failed-at-qdatetime</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 01:17:31 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/138928.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 29 Aug 2022 06:26:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Build failed at qdatetime! on Mon, 29 Aug 2022 07:16:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dogbear">@<bdi>dogbear</bdi></a><br />
Can we just check 100% that you are compiling for 64-bit target, not 32-bit?  I suspect you are, but just make sure.</p>
]]></description><link>https://forum.qt.io/post/726489</link><guid isPermaLink="true">https://forum.qt.io/post/726489</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Mon, 29 Aug 2022 07:16:14 GMT</pubDate></item><item><title><![CDATA[Reply to Build failed at qdatetime! on Mon, 29 Aug 2022 07:16:00 GMT]]></title><description><![CDATA[<p dir="auto">32 Bit is no longer supported with Qt6.4 on Windows: <a href="https://doc.qt.io/qt-6/supported-platforms.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/supported-platforms.html</a></p>
]]></description><link>https://forum.qt.io/post/726488</link><guid isPermaLink="true">https://forum.qt.io/post/726488</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Mon, 29 Aug 2022 07:16:00 GMT</pubDate></item></channel></rss>