Closed cantrell216 closed 1 week ago
I ran into the same issue.
Its seems to be due to this commit in flac.
I tested by creating a flac_extra.sh in the build directory that reverts the a0f6661 commit. I then forced a rebuild of flac, and opus-tools builds successfully.
I ran into the same issue.
Its seems to be due to this commit in flac.
I tested by creating a flac_extra.sh in the build directory that reverts the a0f6661 commit. I then forced a rebuild of flac, and opus-tools builds successfully.
Could you please share the flac_extra.sh and the .patch for general convenience?
Because m-ab-s didn't use cmake for flac, and the the FLAC_STATIC_LIBS is only set by cmake, so either m-ab-s switch to cmake or flac adds this to autoconf, or both.
And as a sidenote, somehow the autoconf stops putting git hashes into flac version string and instead uses "1.4.3" Maybe due to the change to treeless clone
Btw, because m-ab-s doesn't check for timestamps of the .pc files, unless there's a new git version of flac triggerig a rebuild it's sufficient just to remove @FLAC_STATIC_LIBS@ from flac.pc
This should be fixed in flac's latest git now
Likely error (tail of the failed operation logfile): Making all in . make[2]: Entering directory '/build/opus-tools-git/build-64bit' CCLD opusenc.exe C:/ffmpeg/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find @FLAC_STATIC_LIBS@: No such file or directory collect2.exe: error: ld returned 1 exit status make[2]: [Makefile:689: opusenc.exe] Error 1 make[2]: Leaving directory '/build/opus-tools-git/build-64bit' make[1]: [Makefile:1112: all-recursive] Error 1 make[1]: Leaving directory '/build/opus-tools-git/build-64bit' make: *** [Makefile:532: all] Error 2 make failed. Check C:/ffmpeg/build/opus-tools-git/build-64bit/ab-suite.make.log This is required for other packages, so this script will exit.
~~~ ../src/opusdec.c:111:21: note: format string is defined here 111~~~ 1132~~~~~~../src/opusdec.c:1131:28: warning: too many arguments for format [-Wformat-extra-args] 1131 | fprintf(stderr,"\r[%c] %02" I64FORMAT ":%02d:%02d", | ^
~~~ CC src/opusinfo-picture.o CC src/opusinfo-tagcompare.o CC win32/opusinfo-unicode_support.o CC src/opusrtp.o CCLD opusenc.exe CCLD opusdec.exe CCLD opusrtp.exe CCLD opusinfo.exe C:/ffmpeg/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find @FLAC_STATIC_LIBS@: No such file or directory collect2.exe: error: ld returned 1 exit status make[2]: [Makefile:689: opusenc.exe] Error 1 make[2]: Waiting for unfinished jobs.... make[2]: Leaving directory '/build/opus-tools-git/build-64bit' make[1]: [Makefile:1112: all-recursive] Error 1 make[1]: Leaving directory '/build/opus-tools-git/build-64bit' make: [Makefile:532: all] Error 2 make all-recursive make[1]: Entering directory '/build/opus-tools-git/build-64bit' Making all in . make[2]: Entering directory '/build/opus-tools-git/build-64bit' CCLD opusenc.exe C:/ffmpeg/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find @FLAC_STATIC_LIBS@: No such file or directory collect2.exe: error: ld returned 1 exit status make[2]: [Makefile:689: opusenc.exe] Error 1 make[2]: Leaving directory '/build/opus-tools-git/build-64bit' make[1]: [Makefile:1112: all-recursive] Error 1 make[1]: Leaving directory '/build/opus-tools-git/build-64bit' make: *** [Makefile:532: all] Error 2logs.zip