Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

thread\qatomic.cpp(1624): fatal error C1189: #error: "Q_ATOMIC_INT64_IS_SUPPORTED must be defined on a 64-bit platform" QT5.12.6 VS2017



  • qfloat16tables.cpp
    cl -c -FIqt_pch.h -Yuqt_pch.h -Fp.pch\release\Qt5Core_pch.pch -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -O2 -MT -std:c++17 -utf-8 -EHsc -MP -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN64 -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_STATIC -DNDEBUG -I. -I..\3rdparty\zlib\src -Iglobal -I..\3rdparty\harfbuzz\src -I..\3rdparty\md5 -I..\3rdparty\md4 -I..\3rdparty\sha3 -I..\3rdparty -I..\3rdparty\double-conversion\include -I..\3rdparty\double-conversion\include\double-conversion -I..\3rdparty\tinycbor\src -I....\include -I....\include\QtCore -I....\include\QtCore\5.12.6 -I....\include\QtCore\5.12.6\QtCore -Itmp -I.moc\release -I.tracegen\release -I..\3rdparty\pcre2\src -ID:\LIBS\openssl\include -ID:\LIBS\mysql\include -I....\mkspecs\win32-msvc -Fo.obj\release\ @d:\Temp\nm849B.tmp
    qrunnable.cpp
    qthread.cpp
    qthread_win.cpp
    qatomic.cpp
    qmutex.cpp
    qmutexpool.cpp
    qreadwritelock.cpp
    qsemaphore.cpp
    thread\qatomic.cpp(1624): fatal error C1189: #error: "Q_ATOMIC_INT64_IS_SUPPORTED must be defined on a 64-bit platform"
    qthreadpool.cpp
    c:\qt\qt5.12.6\5.12.6\src\qtbase\include\qtcore../../src/corelib/thread/qbasicatomic.h(97): error C2338: template parameter is an integral of a size not supported on this platform (编译源文件 thread\qsemaphore.cpp)
    c:\qt\qt5.12.6\5.12.6\src\qtbase\src\corelib\thread\qsemaphore.h(70): note: 参见对正在编译的 类 模板 实例化 "QBasicAtomicInteger<quintptr>" 的引用 (编译源文件 thread\qsemaphore.cpp)
    qthreadstorage.cpp
    qwaitcondition_win.cpp
    qexception.cpp
    qfutureinterface.cpp
    qfuturewatcher.cpp
    qresultstore.cpp
    NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\cl.EXE"”: 返回代码“0x2”
    Stop.
    NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\nmake.exe"”: 返回代码“0x2”
    Stop.
    NMAKE : fatal error U1077: “cd”: 返回代码“0x2”
    Stop.
    NMAKE : fatal error U1077: “cd”: 返回代码“0x2”
    Stop.
    NMAKE : fatal error U1077: “cd”: 返回代码“0x2”
    Stop.


  • Lifetime Qt Champion

    Hi
    You should also include some information on what you try to compile etc.
    and what platform.

    https://forum.qt.io/topic/104219/q_atomic_int64_is_supported-qt-compile-errors-on-macos


Log in to reply