Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error building cyanrip, ffmpeg build aborts #2607

Open
hydra3333 opened this issue Feb 21, 2024 · 8 comments
Open

error building cyanrip, ffmpeg build aborts #2607

hydra3333 opened this issue Feb 21, 2024 · 8 comments

Comments

@hydra3333
Copy link
Contributor

Hello. Error log below.
Cheers

22:20:08 ┌ cyanrip git  .............................. [Recently updated]
22:20:15   Running git update for ffmpeg...
22:20:20 ┌ ffmpeg git  ............................... [Recently updated]
22:20:20 ├ Running configure...
22:22:47 ├ Running install...
22:23:26 ├ Running meson...
22:23:33 ├ Running build...
Likely error (tail of the failed operation logfile):
FAILED: src/cyanrip.exe
"gcc.bat"  -o src/cyanrip.exe src/cyanrip.exe.p/meson-generated_.._version.c.obj src/cyanrip.exe.p/cyanrip_encode.c.obj src/cyanrip.exe.p/cyanrip_log.c.obj src/cyanrip.exe.p/cyanrip_main.c.obj src/cyanrip.exe.p/utils.c.obj src/cyanrip.exe.p/fifo_frame.c.obj src/cyanrip.exe.p/fifo_packet.c.obj src/cyanrip.exe.p/discid.c.obj src/cyanrip.exe.p/musicbrainz.c.obj src/cyanrip.exe.p/coverart.c.obj src/cyanrip.exe.p/accurip.c.obj src/cyanrip.exe.p/cue_writer.c.obj "-LC:/MABS/local64/opt/cyanffmpeg/lib" "-LC:/MABS/local64/lib" "-IC:/MABS/local64/opt/cyanffmpeg/include" "-IC:/MABS/local64/include" "-Wl,--allow-shlib-undefined" "-Wl,-O1" "-fstack-protector-strong" "-mtune=generic" "-O2" "-pipe" "-static-libgcc" "-static-libstdc++" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-mtune=generic" "-O2" "-D__USE_MINGW_ANSI_STDIO=1" "-mthreads" "-DLIBXML_STATIC" "-Wl,--start-group" "C:/MABS/local64/opt/cyanffmpeg/lib/libavcodec.a" "C:/MABS/msys64/mingw64/lib/libmp3lame.a" "C:/MABS/local64/lib/libopus.a" "C:/MABS/local64/lib/libvorbisenc.a" "C:/MABS/local64/lib/libvorbis.a" "C:/MABS/local64/lib/libogg.a" "C:/MABS/msys64/mingw64/lib/libole32.a" "C:/MABS/msys64/mingw64/lib/libz.a" "C:/MABS/local64/opt/cyanffmpeg/lib/libavutil.a" "-lm" "C:/MABS/msys64/mingw64/lib/libuser32.a" "C:/MABS/msys64/mingw64/lib/libbcrypt.a" "C:/MABS/msys64/mingw64/lib/libatomic.a" "C:/MABS/local64/opt/cyanffmpeg/lib/libavformat.a" "C:/MABS/local64/opt/cyanffmpeg/lib/libswresample.a" "C:/MABS/msys64/mingw64/lib/../lib/libuser32.a" "C:/MABS/msys64/mingw64/lib/../lib/libbcrypt.a" "C:/MABS/msys64/mingw64/lib/../lib/libatomic.a" "C:/MABS/local64/opt/cyanffmpeg/lib/libavfilter.a" "C:/MABS/msys64/mingw64/lib/libcdio.a" "C:/MABS/msys64/mingw64/lib/libwinmm.a" "C:/MABS/msys64/mingw64/lib/libiconv.a" "C:/MABS/msys64/mingw64/lib/libcdio_paranoia.a" "C:/MABS/msys64/mingw64/lib/libcdio_cdda.a" "C:/MABS/local64/lib/libmusicbrainz5.a" "C:/MABS/local64/lib/libmusicbrainz5cc.a" "C:/MABS/msys64/mingw64/lib/libstdc++.a" "C:/MABS/local64/lib/libneon.a" "C:/MABS/local64/lib/libxml2.a" "C:/MABS/msys64/mingw64/lib/libws2_32.a" "C:/MABS/msys64/mingw64/lib/liblzma.a" "C:/MABS/local64/lib/libcurl.a" "C:/MABS/msys64/mingw64/lib/../lib/libnghttp2.a" "C:/MABS/msys64/mingw64/lib/../lib/libnormaliz.a" "C:/MABS/local64/lib/libpsl.a" "C:/MABS/local64/lib/libidn2.a" "C:/MABS/msys64/mingw64/lib/../lib/libiconv.a" "C:/MABS/msys64/mingw64/lib/../lib/libadvapi32.a" "C:/MABS/msys64/mingw64/lib/../lib/libcrypt32.a" "C:/MABS/msys64/mingw64/lib/../lib/libwldap32.a" "C:/MABS/msys64/mingw64/lib/../lib/libzstd.a" "C:/MABS/msys64/mingw64/lib/../lib/libbrotlidec.a" "C:/MABS/msys64/mingw64/lib/../lib/libbrotlicommon.a" "C:/MABS/msys64/mingw64/lib/../lib/libz.a" "C:/MABS/msys64/mingw64/lib/../lib/libws2_32.a" "-pthread" "-Wl,--subsystem,console" "-lkernel32" "-luser32" "-lgdi32" "-lwinspool" "-lshell32" "-lole32" "-loleaut32" "-luuid" "-lcomdlg32" "-ladvapi32" "-Wl,--end-group"
C:/MABS/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MABS/local64/opt/cyanffmpeg/lib/libavformat.a(movenc.o):movenc.c:(.text+0x20a): undefined reference to `ff_iamf_uninit_context'
C:/MABS/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MABS/local64/opt/cyanffmpeg/lib/libavformat.a(movenc.o):movenc.c:(.text+0x1c57): undefined reference to `ff_iamf_add_mix_presentation'
C:/MABS/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MABS/local64/opt/cyanffmpeg/lib/libavformat.a(movenc.o):movenc.c:(.text+0x1cef): undefined reference to `ff_iamf_add_audio_element'
C:/MABS/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MABS/local64/opt/cyanffmpeg/lib/libavformat.a(movenc.o):movenc.c:(.text+0xb6ec): undefined reference to `ff_iamf_write_descriptors'
C:/MABS/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MABS/local64/opt/cyanffmpeg/lib/libavformat.a(movenc.o):movenc.c:(.text+0x127a9): undefined reference to `ff_iamf_write_audio_frame'
C:/MABS/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MABS/local64/opt/cyanffmpeg/lib/libavformat.a(movenc.o):movenc.c:(.text+0x12b52): undefined reference to `ff_iamf_write_parameter_blocks'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
build failed. Check C:/MABS/build/cyanrip-git/build-64bit/ab-suite.build.log
This is required for other packages, so this script will exit.
22:23:38   Creating diagnostics file...

Attach C:\MABS\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

@crhepner
Copy link

I am having the same problem.

┌ cyanrip git  ...................................... [Newer dependencies]
  Running git update for ffmpeg...
ffmpeg git  ................................................. [Up-to-date]
├ Running meson...
├ Running build...
Likely error (tail of the failed operation logfile):
FAILED: src/cyanrip.exe
"gcc.bat"  -o src/cyanrip.exe src/cyanrip.exe.p/meson-generated_.._version.c.obj src/cyanrip.exe.p/cyanrip_encode.c.obj src/cyanrip.exe.p/cyanrip_log.c.obj src/cyanrip.exe.p/cyanrip_main.c.obj src/cyanrip.exe.p/utils.c.obj src/cyanrip.exe.p/fifo_frame.c.obj src/cyanrip.exe.p/fifo_packet.c.obj src/cyanrip.exe.p/discid.c.obj src/cyanrip.exe.p/musicbrainz.c.obj src/cyanrip.exe.p/coverart.c.obj src/cyanrip.exe.p/accurip.c.obj src/cyanrip.exe.p/cue_writer.c.obj "-LC:/ab-suite-20230911/local64/opt/cyanffmpeg/lib" "-LC:/ab-suite-20230911/local64/lib" "-IC:/ab-suite-20230911/local64/opt/cyanffmpeg/include" "-IC:/ab-suite-20230911/local64/include" "-Wl,--allow-shlib-undefined" "-Wl,-O1" "-fstack-protector-strong" "-mtune=generic" "-O2" "-pipe" "-static-libgcc" "-static-libstdc++" "-D_FORTIFY_SOURCE=2" "-fstack-protector-strong" "-mtune=generic" "-O2" "-D__USE_MINGW_ANSI_STDIO=1" "-mthreads" "-DLIBXML_STATIC" "-Wl,--start-group" "C:/ab-suite-20230911/local64/opt/cyanffmpeg/lib/libavcodec.a" "C:/ab-suite-20230911/msys64/mingw64/lib/libmp3lame.a" "C:/ab-suite-20230911/local64/lib/libopus.a" "C:/ab-suite-20230911/local64/lib/libvorbisenc.a" "C:/ab-suite-20230911/local64/lib/libvorbis.a" "C:/ab-suite-20230911/local64/lib/libogg.a" "C:/ab-suite-20230911/msys64/mingw64/lib/libole32.a" "C:/ab-suite-20230911/msys64/mingw64/lib/libz.a" "C:/ab-suite-20230911/local64/opt/cyanffmpeg/lib/libavutil.a" "-lm" "C:/ab-suite-20230911/msys64/mingw64/lib/libuser32.a" "C:/ab-suite-20230911/msys64/mingw64/lib/libbcrypt.a" "C:/ab-suite-20230911/msys64/mingw64/lib/libatomic.a" "C:/ab-suite-20230911/local64/opt/cyanffmpeg/lib/libavformat.a" "C:/ab-suite-20230911/local64/opt/cyanffmpeg/lib/libswresample.a" "C:/ab-suite-20230911/msys64/mingw64/lib/../lib/libuser32.a" "C:/ab-suite-20230911/msys64/mingw64/lib/../lib/libbcrypt.a" "C:/ab-suite-20230911/msys64/mingw64/lib/../lib/libatomic.a" "C:/ab-suite-20230911/local64/opt/cyanffmpeg/lib/libavfilter.a" "C:/ab-suite-20230911/msys64/mingw64/lib/libcdio.a" "C:/ab-suite-20230911/msys64/mingw64/lib/libwinmm.a" "C:/ab-suite-20230911/msys64/mingw64/lib/libiconv.a" "C:/ab-suite-20230911/msys64/mingw64/lib/libcdio_paranoia.a" "C:/ab-suite-20230911/msys64/mingw64/lib/libcdio_cdda.a" "C:/ab-suite-20230911/local64/lib/libmusicbrainz5.a" "C:/ab-suite-20230911/local64/lib/libmusicbrainz5cc.a" "C:/ab-suite-20230911/msys64/mingw64/lib/libstdc++.a" "C:/ab-suite-20230911/local64/lib/libneon.a" "C:/ab-suite-20230911/local64/lib/libxml2.a" "C:/ab-suite-20230911/msys64/mingw64/lib/libws2_32.a" "C:/ab-suite-20230911/msys64/mingw64/lib/liblzma.a" "C:/ab-suite-20230911/local64/lib/libcurl.a" "C:/ab-suite-20230911/msys64/mingw64/lib/../lib/libnghttp2.a" "C:/ab-suite-20230911/local64/lib/libidn2.a" "C:/ab-suite-20230911/msys64/mingw64/lib/../lib/libiconv.a" "C:/ab-suite-20230911/local64/lib/libpsl.a" "C:/ab-suite-20230911/msys64/mingw64/lib/../lib/libadvapi32.a" "C:/ab-suite-20230911/msys64/mingw64/lib/../lib/libssl.a" "C:/ab-suite-20230911/msys64/mingw64/lib/../lib/libcrypto.a" "C:/ab-suite-20230911/msys64/mingw64/lib/../lib/libcrypt32.a" "C:/ab-suite-20230911/msys64/mingw64/lib/../lib/libgdi32.a" "C:/ab-suite-20230911/msys64/mingw64/lib/../lib/libwldap32.a" "C:/ab-suite-20230911/msys64/mingw64/lib/../lib/libzstd.a" "C:/ab-suite-20230911/msys64/mingw64/lib/../lib/libbrotlidec.a" "C:/ab-suite-20230911/msys64/mingw64/lib/../lib/libbrotlicommon.a" "C:/ab-suite-20230911/msys64/mingw64/lib/../lib/libz.a" "C:/ab-suite-20230911/msys64/mingw64/lib/../lib/libws2_32.a" "-pthread" "-Wl,--subsystem,console" "-lkernel32" "-luser32" "-lgdi32" "-lwinspool" "-lshell32" "-lole32" "-loleaut32" "-luuid" "-lcomdlg32" "-ladvapi32" "-Wl,--end-group"
C:/ab-suite-20230911/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/ab-suite-20230911/local64/opt/cyanffmpeg/lib/libavformat.a(movenc.o):movenc.c:(.text+0x20a): undefined reference to `ff_iamf_uninit_context'
C:/ab-suite-20230911/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/ab-suite-20230911/local64/opt/cyanffmpeg/lib/libavformat.a(movenc.o):movenc.c:(.text+0x1c57): undefined reference to `ff_iamf_add_mix_presentation'
C:/ab-suite-20230911/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/ab-suite-20230911/local64/opt/cyanffmpeg/lib/libavformat.a(movenc.o):movenc.c:(.text+0x1cef): undefined reference to `ff_iamf_add_audio_element'
C:/ab-suite-20230911/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/ab-suite-20230911/local64/opt/cyanffmpeg/lib/libavformat.a(movenc.o):movenc.c:(.text+0xb6ec): undefined reference to `ff_iamf_write_descriptors'
C:/ab-suite-20230911/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/ab-suite-20230911/local64/opt/cyanffmpeg/lib/libavformat.a(movenc.o):movenc.c:(.text+0x127a9): undefined reference to `ff_iamf_write_audio_frame'
C:/ab-suite-20230911/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/ab-suite-20230911/local64/opt/cyanffmpeg/lib/libavformat.a(movenc.o):movenc.c:(.text+0x12b52): undefined reference to `ff_iamf_write_parameter_blocks'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
build failed. Check C:/ab-suite-20230911/build/cyanrip-git/build-64bit/ab-suite.build.log
This is required for other packages, so this script will exit.

logs.zip

@LigH-de
Copy link
Contributor

LigH-de commented Feb 24, 2024

Confirming.

@hydra3333
Copy link
Contributor Author

in the interim you can set cyanrip2=2 in media-autobuild_suite.ini or during answering the questions initially ...

@1480c1
Copy link
Member

1480c1 commented Feb 27, 2024

I have not been able to reproduce this issue, cyanrip seems to build fine for me.

I am not sure if I understand how exactly the error came about.
Normally, the symbols are contained in libavformat from iamf_writer.c if mov_muxer is enabled, but we do not enable mov as a muxer. movenc.o is only supposed to be there if the mov is enabled as a muxer, so the two should always be enabled together.

@LigH-de
Copy link
Contributor

LigH-de commented Feb 29, 2024

I purged all local## result directories to build everything anew; then I noticed that mplayer fails for the same reason (mov.o:mov.c and movenc.o:movenc.c).

But cyanrip builds instead.

@LigH-de
Copy link
Contributor

LigH-de commented Mar 3, 2024

Reported mplayer build logs to https://trac.mplayerhq.hu/ticket/2417 - adding logs here too.

MinGW32 ab-suite.install.log
MinGW64 ab-suite.install.log

@1480c1
Copy link
Member

1480c1 commented Mar 5, 2024

still couldn't reproduce the cyanrip problem with the original ini file, I can for the mplayer though.

@LigH-de
Copy link
Contributor

LigH-de commented Mar 5, 2024

SVN r38449 is supposed to fix mplayer.
Works for MinGW32...
...MinGW64: issues with ff_iamf are fixed but those with ff_h2656 persist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants