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.53k stars 263 forks source link

Video tool libmusicbrainz compilation fails #2738

Closed ls-milkyway closed 2 months ago

ls-milkyway commented 2 months ago

22:51:53 ┌ libmusicbrainz git ....................... [Recently updated] master...wiiaboo:libmusicbrainz:master.patch Patch could not be applied with git am. Continuing without patching. 22:51:58 ├ Running cmake... 22:52:06 ├ Running build... Likely error (tail of the failed operation logfile): D:/Programs/Ffmpeg/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Programs/Ffmpeg/local64/lib\libxml2.a(dict.c.o):dict.c:(.text+0x1126): undefined reference to BCryptGenRandom' D:/Programs/Ffmpeg/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Programs/Ffmpeg/local64/lib\libxml2.a(encoding.c.o):encoding.c:(.text+0xcb1): undefined reference tolibiconv' D:/Programs/Ffmpeg/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Programs/Ffmpeg/local64/lib\libxml2.a(encoding.c.o):encoding.c:(.text+0xd52): undefined reference to libiconv_close' D:/Programs/Ffmpeg/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Programs/Ffmpeg/local64/lib\libxml2.a(encoding.c.o):encoding.c:(.text+0xff0): undefined reference tolibiconv_open' D:/Programs/Ffmpeg/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Programs/Ffmpeg/local64/lib\libxml2.a(encoding.c.o):encoding.c:(.text+0x102d): undefined reference to libiconv_open' D:/Programs/Ffmpeg/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Programs/Ffmpeg/local64/lib\libxml2.a(encoding.c.o):encoding.c:(.text+0x1158): undefined reference tolibiconv_close' D:/Programs/Ffmpeg/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Programs/Ffmpeg/local64/lib\libxml2.a(encoding.c.o):encoding.c:(.text+0x11c3): undefined reference to libiconv_close' D:/Programs/Ffmpeg/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Programs/Ffmpeg/local64/lib\libxml2.a(encoding.c.o):encoding.c:(.text+0x11d7): undefined reference tolibiconv_close' collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed. build failed. Check D:/Programs/Ffmpeg/build/libmusicbrainz-git/build-64bit/ab-suite.build.log This is required for other packages, so this script will exit. 22:52:13 Creating diagnostics file...

Attach D:\Programs\Ffmpeg\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

Uniparser always reporting "Files Missing".

┌ uriparser git ............................... [Files missing] 22:44:56 ├ Running uninstall... 22:44:57 ├ Running cmake... 22:45:05 ├ Running build... 22:45:14 ├ Running install... 22:45:15 ├ Stripping... 22:45:15 └ uriparser-git ..................................... [Updated]

What I tried: 1) Recompiled after deleting the git from the build folder few times. 2) Changed media-suite_compile.sh as per https://github.com/m-ab-s/media-autobuild_suite/commit/e9c402e7a0cc9ccd03def6479efdcec0a8b0642d 3) No link to generate issue at https://github.com/metabrainz/libmusicbrainz/ 4) Found 3 pending commits at libmusicbrainz.

ls-milkyway commented 2 months ago

22:51:53 ┌ libmusicbrainz git ....................... [Recently updated] master...wiiaboo:libmusicbrainz:master.patch Patch could not be applied with git am. Continuing without patching. 22:51:58 ├ Running cmake... 22:52:06 ├ Running build... Likely error (tail of the failed operation logfile): D:/Programs/Ffmpeg/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Programs/Ffmpeg/local64/lib\libxml2.a(dict.c.o):dict.c:(.text+0x1126): undefined reference to BCryptGenRandom' D:/Programs/Ffmpeg/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Programs/Ffmpeg/local64/lib\libxml2.a(encoding.c.o):encoding.c:(.text+0xcb1): undefined reference tolibiconv' D:/Programs/Ffmpeg/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Programs/Ffmpeg/local64/lib\libxml2.a(encoding.c.o):encoding.c:(.text+0xd52): undefined reference to libiconv_close' D:/Programs/Ffmpeg/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Programs/Ffmpeg/local64/lib\libxml2.a(encoding.c.o):encoding.c:(.text+0xff0): undefined reference tolibiconv_open' D:/Programs/Ffmpeg/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Programs/Ffmpeg/local64/lib\libxml2.a(encoding.c.o):encoding.c:(.text+0x102d): undefined reference to libiconv_open' D:/Programs/Ffmpeg/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Programs/Ffmpeg/local64/lib\libxml2.a(encoding.c.o):encoding.c:(.text+0x1158): undefined reference tolibiconv_close' D:/Programs/Ffmpeg/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Programs/Ffmpeg/local64/lib\libxml2.a(encoding.c.o):encoding.c:(.text+0x11c3): undefined reference to libiconv_close' D:/Programs/Ffmpeg/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/Programs/Ffmpeg/local64/lib\libxml2.a(encoding.c.o):encoding.c:(.text+0x11d7): undefined reference tolibiconv_close' collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed. build failed. Check D:/Programs/Ffmpeg/build/libmusicbrainz-git/build-64bit/ab-suite.build.log This is required for other packages, so this script will exit. 22:52:13 Creating diagnostics file...

Attach D:\Programs\Ffmpeg\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

Uniparser always reporting "Files Missing".

┌ uriparser git ............................... [Files missing] 22:44:56 ├ Running uninstall... 22:44:57 ├ Running cmake... 22:45:05 ├ Running build... 22:45:14 ├ Running install... 22:45:15 ├ Stripping... 22:45:15 └ uriparser-git ..................................... [Updated]

What I tried:

1. Recompiled after deleting the git from the build folder few times.

2. Changed media-suite_compile.sh as per [e9c402e](https://github.com/m-ab-s/media-autobuild_suite/commit/e9c402e7a0cc9ccd03def6479efdcec0a8b0642d)

3. No link to generate issue at https://github.com/metabrainz/libmusicbrainz/

4. Found 3 pending commits at libmusicbrainz.

Sorry, forgot to exclude the folder from antivirus.

Last successful run (mimic Zeranoe) at ‎16 ‎July ‎2024, ‏‎06:16:05 AM (IST)

--build32=no --build64=yes --deleteSource=y --mp4box=n --vpx=y --x264=yes --x265=y --other265=y --flac=y --fdkaac=y --mediainfo=y --sox=y --ffmpeg=static --ffmpegUpdate=y --ffmpegChoice=z --mplayer=n --mpv=n --license=nonfree --stripping=y --packing=n --rtmpdump=y --logging=y --bmx=y --standalone=n --aom=y --faac=y --exhale=y --ffmbc=n --curl=y --cyanrip=y --rav1e=y --ripgrep=y --dav1d=y --vvc=y --uvg266=y --vvenc=y --vvdec=y --jq=y --jo=y --dssim=y --avs2=y --dovitool=n --hdr10plustool=y --timeStamp=y --noMintty=n --ccache=n --svthevc=y --svtav1=n --svtvp9=n --xvc=n --vlc=n --libavif=y --jpegxl=y --ffmpegPath=https://git.ffmpeg.org/ffmpeg.git --exitearly=