m-ab-s / media-autobuild_suite

This Windows Batchscript helps setup a Mingw-w64 compiler environment for building ffmpeg and other media tools under Windows.
GNU General Public License v3.0
1.52k stars 263 forks source link

Error running build when update vvenc - #error _mm_extract_epi64 has to be defined for 64-bit systems! #2414

Closed ycwan closed 1 year ago

ycwan commented 1 year ago
19:46:39 ┌ vvenc git  ................................... [Updates found]
19:46:39 ├ Running uninstall...
19:46:39 ├ Running cmake...
19:46:57 ├ Running build...
Likely error (tail of the failed operation logfile):
[1/131] Building CXX object source/Lib/vvenc/CMakeFiles/vvenc_x86_simd.dir/__/CommonLib/x86/sse41/AdaptiveLoopFilter_sse41.cpp.o
FAILED: source/Lib/vvenc/CMakeFiles/vvenc_x86_simd.dir/__/CommonLib/x86/sse41/AdaptiveLoopFilter_sse41.cpp.o
ccache C:\MinGW-w64\msys64\mingw64\bin\ccache.exe  g++ -DMISSING_INTRIN_mm_extract_epi64 -DVVENC_SOURCE -D_WIN32_WINNT=0x0600 -DUSE_SSE41 -IC:/MinGW-w64/build/vvenc-git/source/Lib/vvenc/../../../include -IC:/MinGW-w64/build/vvenc-git/build-64bit -IC:/MinGW-w64/build/vvenc-git/source/Lib/vvenc/. -IC:/MinGW-w64/build/vvenc-git/source/Lib/vvenc/.. -IC:/MinGW-w64/build/vvenc-git/source/Lib/vvenc/../DecoderLib -IC:/MinGW-w64/build/vvenc-git/source/Lib/vvenc/../EncoderLib -IC:/MinGW-w64/build/vvenc-git/source/Lib/vvenc/../CommonLib -IC:/MinGW-w64/build/vvenc-git/source/Lib/vvenc/../CommonLib/x86 -IC:/MinGW-w64/build/vvenc-git/source/Lib/vvenc/../apputils -isystem C:/MinGW-w64/build/vvenc-git/source/Lib/vvenc/../../../thirdparty -mthreads -mtune=generic -O2 -pipe -DTARGET_SIMD_X86 -DVVENC_ENABLE_THIRDPARTY_JSON -DVVENC_ENABLE_THIRDPARTY_JSON -O3 -DNDEBUG -std=gnu++14 -fvisibility=hidden -fno-keep-inline-dllexport -msse4.1 -Wall -Werror -Wno-unused-function -Wno-unused-variable -Wno-sign-compare -fdiagnostics-show-option -Wno-ignored-attributes -msse4.1 -MD -MT source/Lib/vvenc/CMakeFiles/vvenc_x86_simd.dir/__/CommonLib/x86/sse41/AdaptiveLoopFilter_sse41.cpp.o -MF source\Lib\vvenc\CMakeFiles\vvenc_x86_simd.dir\__\CommonLib\x86\sse41\AdaptiveLoopFilter_sse41.cpp.o.d -o source/Lib/vvenc/CMakeFiles/vvenc_x86_simd.dir/__/CommonLib/x86/sse41/AdaptiveLoopFilter_sse41.cpp.o -c C:/MinGW-w64/build/vvenc-git/source/Lib/CommonLib/x86/sse41/AdaptiveLoopFilter_sse41.cpp
In file included from C:/MinGW-w64/build/vvenc-git/source/Lib/CommonLib/x86/CommonDefX86.h:65,
                 from C:/MinGW-w64/build/vvenc-git/source/Lib/CommonLib/x86/AdaptiveLoopFilterX86.h:42,
                 from C:/MinGW-w64/build/vvenc-git/source/Lib/CommonLib/x86/sse41/AdaptiveLoopFilter_sse41.cpp:43:
C:/MinGW-w64/build/vvenc-git/source/Lib/CommonLib/x86/FixMissingIntrin.h:109:2: error: #error _mm_extract_epi64 has to be defined for 64-bit systems!
  109 | #error _mm_extract_epi64 has to be defined for 64-bit systems!
      |  ^~~~~
ninja: build stopped: subcommand failed.
build failed. Check C:/MinGW-w64/build/vvenc-git/build-64bit/ab-suite.build.log
This is required for other packages, so this script will exit.
19:47:04   Creating diagnostics file...

Attach C:\MinGW-w64\build\logs.zip to the GitHub issue.
Make sure the suite is up-to-date before reporting an issue. It might've been fixed already.

Try running the build again at a later time.

logs.zip ab-suite.build.log

Biswa96 commented 1 year ago

The issue only happens when CFLAGS or CXXFLAGS is set. This pull request may fix the issue https://github.com/fraunhoferhhi/vvenc/pull/267

Biswa96 commented 1 year ago

This issue was fixed in this upstream https://github.com/fraunhoferhhi/vvenc/commit/f478fd12f3594c57f4922da0da091080e4063c07 commit. Please try to rebuild again.

ycwan commented 1 year ago

@Biswa96 Thanks. Update vvenc without issue