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

Can not build Qt 6.2.3 with cmake and ClangCl (clang-cl) due to missing `_mm_cvtps_ph`

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • 6.4.0 Beta1
    • 6.2.3
    • Build System: CMake
    • None
    • Windows
    • f3640d9086 (qt/qtbase/dev) f3640d9086 (qt/tqtc-qtbase/dev)

    Description

      I can not build Qt 6.2.3 with ClangCl (also called clang-cl) on MSVC due to several missing symbols. I'm using Microsoft VS2019 v16.11.10 (current latest) with the upstream LLVM ClangCl 13.0.1.

      The errors I get are:

      [3436/6901] C:\BDA\ci\LLVM-13.0.1\bin\clang-cl.exe   -TP -DQT3DINPUT_LIBRARY -DQT_3DCORE_LIB -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_3DINPUT_LIB -DQT_CFLAGS_AVX2 -DQT_CFLAGS_SSE2 -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_GUI_LIB -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_USE_QSTRINGBUILDER -DUNICODE -DWIN32 -DWIN64 -D_3DInput_EXPORTS -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -D_WINDLL -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qt3d\src\input\3DInput_autogen\include -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\Qt3DInput -IC:\BDA\bld\XTJyb_7r\0\BioDataAnalysis\qt\qt3d\src\input -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qt3d\src\input -IC:\BDA\bld\XTJyb_7r\0\BioDataAnalysis\qt\qt3d\src\input\backend -IC:\BDA\bld\XTJyb_7r\0\BioDataAnalysis\qt\qt3d\src\input\frontend -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\Qt3DInput\6.2.3 -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\Qt3DInput\6.2.3\Qt3DInput -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\Qt3DCore -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtConcurrent -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore -IC:\BDA\bld\XTJyb_7r\0\BioDataAnalysis\qt\qtbase\mkspecs\win32-clang-msvc -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtGui -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtNetwork -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\src\corelib -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore\6.2.3 -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore\6.2.3\QtCore -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qt3d\src\core -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\Qt3DCore\6.2.3 -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\Qt3DCore\6.2.3\Qt3DCore -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\src\gui -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtGui\6.2.3 -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtGui\6.2.3\QtGui /D_ITERATOR_DEBUG_LEVEL=0     /DWINVER=0x0A00 /D_WIN32_WINNT=0x0A00  /std:c++20  /DWIN32 /D_WINDOWS /Zi     /RTC1 -MDd /W3 /wd4530 /wd4577 -Zc:__cplusplus -permissive- -utf-8 -msse2 -mavx2 -Wno-ignored-attributes -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:wchar_t -std:c++17 /YcC:/data/ci-tmp-C10Sk32c192930140c1301/Debug/qt/qt3d/src/input/CMakeFiles/3DInput.dir/cmake_pch.hxx /FpC:/data/ci-tmp-C10Sk32c192930140c1301/Debug/qt/qt3d/src/input/CMakeFiles/3DInput.dir/./cmake_pch.cxx.pch /FIC:/data/ci-tmp-C10Sk32c192930140c1301/Debug/qt/qt3d/src/input/CMakeFiles/3DInput.dir/cmake_pch.hxx /showIncludes /Foqt3d\src\input\CMakeFiles\3DInput.dir\cmake_pch.cxx.obj /Fdqt3d\src\input\CMakeFiles\3DInput.dir\ -c -- C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qt3d\src\input\CMakeFiles\3DInput.dir\cmake_pch.cxx
      FAILED: qt3d/src/input/CMakeFiles/3DInput.dir/cmake_pch.cxx.obj 
      C:\BDA\ci\LLVM-13.0.1\bin\clang-cl.exe   -TP -DQT3DINPUT_LIBRARY -DQT_3DCORE_LIB -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_3DINPUT_LIB -DQT_CFLAGS_AVX2 -DQT_CFLAGS_SSE2 -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_GUI_LIB -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_USE_QSTRINGBUILDER -DUNICODE -DWIN32 -DWIN64 -D_3DInput_EXPORTS -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -D_WINDLL -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qt3d\src\input\3DInput_autogen\include -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\Qt3DInput -IC:\BDA\bld\XTJyb_7r\0\BioDataAnalysis\qt\qt3d\src\input -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qt3d\src\input -IC:\BDA\bld\XTJyb_7r\0\BioDataAnalysis\qt\qt3d\src\input\backend -IC:\BDA\bld\XTJyb_7r\0\BioDataAnalysis\qt\qt3d\src\input\frontend -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\Qt3DInput\6.2.3 -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\Qt3DInput\6.2.3\Qt3DInput -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\Qt3DCore -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtConcurrent -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore -IC:\BDA\bld\XTJyb_7r\0\BioDataAnalysis\qt\qtbase\mkspecs\win32-clang-msvc -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtGui -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtNetwork -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\src\corelib -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore\6.2.3 -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore\6.2.3\QtCore -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qt3d\src\core -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\Qt3DCore\6.2.3 -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\Qt3DCore\6.2.3\Qt3DCore -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\src\gui -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtGui\6.2.3 -IC:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtGui\6.2.3\QtGui /D_ITERATOR_DEBUG_LEVEL=0     /DWINVER=0x0A00 /D_WIN32_WINNT=0x0A00  /std:c++20  /DWIN32 /D_WINDOWS /Zi     /RTC1 -MDd /W3 /wd4530 /wd4577 -Zc:__cplusplus -permissive- -utf-8 -msse2 -mavx2 -Wno-ignored-attributes -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:wchar_t -std:c++17 /YcC:/data/ci-tmp-C10Sk32c192930140c1301/Debug/qt/qt3d/src/input/CMakeFiles/3DInput.dir/cmake_pch.hxx /FpC:/data/ci-tmp-C10Sk32c192930140c1301/Debug/qt/qt3d/src/input/CMakeFiles/3DInput.dir/./cmake_pch.cxx.pch /FIC:/data/ci-tmp-C10Sk32c192930140c1301/Debug/qt/qt3d/src/input/CMakeFiles/3DInput.dir/cmake_pch.hxx /showIncludes /Foqt3d\src\input\CMakeFiles\3DInput.dir\cmake_pch.cxx.obj /Fdqt3d\src\input\CMakeFiles\3DInput.dir\ -c -- C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qt3d\src\input\CMakeFiles\3DInput.dir\cmake_pch.cxx
      In file included from <built-in>:1:
      In file included from C:/data/ci-tmp-C10Sk32c192930140c1301/Debug/qt/qt3d/src/input/CMakeFiles/3DInput.dir/cmake_pch.hxx:5:
      In file included from C:/data/ci-tmp-C10Sk32c192930140c1301/Debug/qt/qtbase/include/Qt3DCore/Qt3DCore:3:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\Qt3DCore/Qt3DCoreDepends:3:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtConcurrent/QtConcurrent:3:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtConcurrent/QtConcurrentDepends:3:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/QtCore:40:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/qcborstream.h:1:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/../../../../../../../BDA/bld/XTJyb_7r/0/BioDataAnalysis/qt/qtbase/src/corelib/serialization/qcborstream.h:47:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/qcborstreamreader.h:1:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/../../../../../../../BDA/bld/XTJyb_7r/0/BioDataAnalysis/qt/qtbase/src/corelib/serialization/qcborstreamreader.h:45:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/qfloat16.h:1:
      C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/../../../../../../../BDA/bld/XTJyb_7r/0/BioDataAnalysis/qt/qtbase/src/corelib/global/qfloat16.h(261,24): error: use of undeclared identifier '_mm_cvtps_ph'; did you mean '_mm_cvtss_sd'?
          __m128i packhalf = _mm_cvtps_ph(packsingle, 0);
                             ^
      C:\BDA\ci\LLVM-13.0.1\lib\clang\13.0.1\include\emmintrin.h(1449,1): note: '_mm_cvtss_sd' declared here
      _mm_cvtss_sd(__m128d __a, __m128 __b)
      ^
      In file included from <built-in>:1:
      In file included from C:/data/ci-tmp-C10Sk32c192930140c1301/Debug/qt/qt3d/src/input/CMakeFiles/3DInput.dir/cmake_pch.hxx:5:
      In file included from C:/data/ci-tmp-C10Sk32c192930140c1301/Debug/qt/qtbase/include/Qt3DCore/Qt3DCore:3:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\Qt3DCore/Qt3DCoreDepends:3:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtConcurrent/QtConcurrent:3:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtConcurrent/QtConcurrentDepends:3:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/QtCore:40:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/qcborstream.h:1:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/../../../../../../../BDA/bld/XTJyb_7r/0/BioDataAnalysis/qt/qtbase/src/corelib/serialization/qcborstream.h:47:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/qcborstreamreader.h:1:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/../../../../../../../BDA/bld/XTJyb_7r/0/BioDataAnalysis/qt/qtbase/src/corelib/serialization/qcborstreamreader.h:45:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/qfloat16.h:1:
      C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/../../../../../../../BDA/bld/XTJyb_7r/0/BioDataAnalysis/qt/qtbase/src/corelib/global/qfloat16.h(261,49): error: cannot initialize a parameter of type '__m128' (vector of 4 'float' values) with an rvalue of type 'int'
          __m128i packhalf = _mm_cvtps_ph(packsingle, 0);
                                                      ^
      C:\BDA\ci\LLVM-13.0.1\lib\clang\13.0.1\include\emmintrin.h(1449,34): note: passing argument to parameter '__b' here
      _mm_cvtss_sd(__m128d __a, __m128 __b)
                                       ^
      In file included from <built-in>:1:
      In file included from C:/data/ci-tmp-C10Sk32c192930140c1301/Debug/qt/qt3d/src/input/CMakeFiles/3DInput.dir/cmake_pch.hxx:5:
      In file included from C:/data/ci-tmp-C10Sk32c192930140c1301/Debug/qt/qtbase/include/Qt3DCore/Qt3DCore:3:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\Qt3DCore/Qt3DCoreDepends:3:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtConcurrent/QtConcurrent:3:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtConcurrent/QtConcurrentDepends:3:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/QtCore:40:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/qcborstream.h:1:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/../../../../../../../BDA/bld/XTJyb_7r/0/BioDataAnalysis/qt/qtbase/src/corelib/serialization/qcborstream.h:47:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/qcborstreamreader.h:1:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/../../../../../../../BDA/bld/XTJyb_7r/0/BioDataAnalysis/qt/qtbase/src/corelib/serialization/qcborstreamreader.h:45:
      In file included from C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/qfloat16.h:1:
      C:\data\ci-tmp-C10Sk32c192930140c1301\Debug\qt\qtbase\include\QtCore/../../../../../../../BDA/bld/XTJyb_7r/0/BioDataAnalysis/qt/qtbase/src/corelib/global/qfloat16.h(295,25): error: use of undeclared identifier '_mm_cvtph_ps'; did you mean '_mm_cvtpd_ps'?
          __m128 packsingle = _mm_cvtph_ps(packhalf);
                              ^
      C:\BDA\ci\LLVM-13.0.1\lib\clang\13.0.1\include\emmintrin.h(1295,1): note: '_mm_cvtpd_ps' declared here
      _mm_cvtpd_ps(__m128d __a)
      ^
      3 errors generated. 

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            emmenlau Mario Emmenlauer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes