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

win32-clang-msvc: failed to build from source

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.12.1
    • Build System
    • None
    • Windows 10 17763.316, VS2017 15.9.7, clang-cl 7.0.1
    • Windows

    Description

      config params:

      -opensource -confirm-license -release -static -static-runtime -skip qtwebengine -platform win32-clang-msvc -make-tool jom -silent -nomake examples -nomake tests -opengl dynamic -ltcg
      

      error messages:

      D:\code\qt\code\qt-everywhere-src-5.12.1\qtimageformats\src\3rdparty\libwebp\src\dsp\alpha_processing_sse41.c(52,26):  error: always_inline function '_mm_shuffle_epi8' requires target feature 'ssse3', but would be inlined into function 'ExtractAlpha_SSE41' that is compiled without support for 'ssse3'
            const __m128i b0 = _mm_shuffle_epi8(a0, kCstAlpha0);
                               ^
      D:\code\qt\code\qt-everywhere-src-5.12.1\qtimageformats\src\3rdparty\libwebp\src\dsp\alpha_processing_sse41.c(53,26):  error: always_inline function '_mm_shuffle_epi8' requires target feature 'ssse3', but would be inlined into function 'ExtractAlpha_SSE41' that is compiled without support for 'ssse3'
            const __m128i b1 = _mm_shuffle_epi8(a1, kCstAlpha1);
                               ^
      D:\code\qt\code\qt-everywhere-src-5.12.1\qtimageformats\src\3rdparty\libwebp\src\dsp\alpha_processing_sse41.c(54,26):  error: always_inline function '_mm_shuffle_epi8' requires target feature 'ssse3', but would be inlined into function 'ExtractAlpha_SSE41' that is compiled without support for 'ssse3'
            const __m128i b2 = _mm_shuffle_epi8(a2, kCstAlpha2);
                               ^
      D:\code\qt\code\qt-everywhere-src-5.12.1\qtimageformats\src\3rdparty\libwebp\src\dsp\alpha_processing_sse41.c(55,26):  error: always_inline function '_mm_shuffle_epi8' requires target feature 'ssse3', but would be inlined into function 'ExtractAlpha_SSE41' that is compiled without support for 'ssse3'
            const __m128i b3 = _mm_shuffle_epi8(a3, kCstAlpha3);
                               ^
      4 errors generated.
      jom: D:\code\qt\code\qt-everywhere-src-5.12.1\build\qtimageformats\src\plugins\imageformats\webp\Makefile.Release [.obj\release\alpha_processing.obj] Error 1
      jom: D:\code\qt\code\qt-everywhere-src-5.12.1\build\qtimageformats\src\plugins\imageformats\webp\Makefile [release] Error 2
      jom: D:\code\qt\code\qt-everywhere-src-5.12.1\build\qtimageformats\src\plugins\imageformats\Makefile [sub-webp-make_first] Error 2
      jom: D:\code\qt\code\qt-everywhere-src-5.12.1\build\qtimageformats\src\plugins\Makefile [sub-imageformats-make_first] Error 2
      jom: D:\code\qt\code\qt-everywhere-src-5.12.1\build\qtimageformats\src\Makefile [sub-plugins-make_first] Error 2
      jom: D:\code\qt\code\qt-everywhere-src-5.12.1\build\qtimageformats\Makefile [sub-src-make_first] Error 2
      

      I have added the following code to qmake.conf in the win32-clang-msvc folder manually already:

      QMAKE_CFLAGS_SSE3       = -msse3
      QMAKE_CFLAGS_SSSE3      = -mssse3
      QMAKE_CFLAGS_SSE4_1     = -msse4.1
      QMAKE_CFLAGS_SSE4_2     = -msse4.2
      QMAKE_CFLAGS_AVX        = -mavx
      QMAKE_CFLAGS_AVX2       = -mavx2
      QMAKE_CFLAGS_F16C      = -mf16c
      QMAKE_CFLAGS_RDRND     = -mrdrnd
      QMAKE_CFLAGS_AVX512F   = -mavx512f
      QMAKE_CFLAGS_AVX512ER  = -mavx512er
      QMAKE_CFLAGS_AVX512CD  = -mavx512cd
      QMAKE_CFLAGS_AVX512PF  = -mavx512pf
      QMAKE_CFLAGS_AVX512DQ  = -mavx512dq
      QMAKE_CFLAGS_AVX512BW  = -mavx512bw
      QMAKE_CFLAGS_AVX512VL  = -mavx512vl
      QMAKE_CFLAGS_AVX512IFMA = -mavx512ifma
      QMAKE_CFLAGS_AVX512VBMI = -mavx512vbmi
      QMAKE_CFLAGS_AESNI     = -maes
      QMAKE_CFLAGS_SHANI     = -msha
      

      Attachments

        Issue Links

          Activity

            People

              qtbuildsystem Qt Build System Team
              wangwenx190 赵 宇航
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: