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.49k stars 256 forks source link

libavif git fails #2709

Open Fishman0919 opened 3 weeks ago

Fishman0919 commented 3 weeks ago

07:29:21 Running git clone for libavif... 07:29:25 Running git update for libavif... 07:29:25 ┌ libavif git .............................. [Recently updated] 07:29:25 ├ Running cmake... 07:29:29 ├ Running build... Likely error (tail of the failed operation logfile): [1/2] Linking CXX executable avifenc.exe FAILED: avifenc.exe C:\Windows\system32\cmd.exe /C "cd . && C:\MABS\msys64\clang64\bin\ccache.exe clang++ -D_FORTIFY_SOURCE=2 -fstack-protector-strong -mtune=generic -O2 -pipe -D__USE_MINGW_ANSI_STDIO=1 -O3 -DNDEBUG -D_FORTIFY_SOURCE=2 -fstack-protector-strong -mtune=generic -O2 -pipe -D__USE_MINGW_ANSI_STDIO=1 -static-libgcc --start-no-unused-arguments -static-libstdc++ --end-no-unused-arguments CMakeFiles/avifenc.dir/apps/avifenc.c.o CMakeFiles/avifenc.dir/apps/utf8.rc.obj -o avifenc.exe -Wl,--out-implib,libavifenc.dll.a -Wl,--major-image-version,0,--minor-image-version,0 libavif_apps.a libavif_internal.a C:/MABS/msys64/clang64/lib/libyuv.a -lm -pthread C:/MABS/local64/lib/libdav1d.a C:/MABS/local64/lib/librav1e.a -lntdll -luserenv -lws2_32 -lbcrypt C:/MABS/local64/lib/libaom.a C:/MABS/local64/lib/libpng.a C:/MABS/msys64/clang64/lib/libz.a C:/MABS/msys64/clang64/lib/libjpeg.a -lmingwthrd -lmingwthrd -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ." ld.lld: error: undefined symbol: _setjmp

referenced by libaom.a(av1_cx_iface.c.o):(update_encoder_cfg) referenced by libaom.a(av1_cx_iface.c.o):(update_encoder_cfg) referenced by libaom.a(av1_cx_iface.c.o):(encoder_encode) referenced 22 more times clang++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. build failed. Check C:/MABS/build/libavif-git/build-64bit/ab-suite.build.log This is required for other packages, so this script will exit. 07:29:31 Creating diagnostics file...

logs.zip

L4cache commented 3 weeks ago

did you just switched from gcc to clang? I think this happens when you use clang (lld) to link some libraries built by gcc