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.51k stars 262 forks source link

Error running make when update ffmpeg - undefined reference to `le64toh' #2448

Closed ycwan closed 1 year ago

ycwan commented 1 year ago
16:23:41 ┌ ffmpeg git  .................................. [Updates found]
16:23:41 ├ Changing options to comply to nonfree...
CUDA_PATH environment variable not set or directory does not exist.
master-0001-Add-ability-for-ffmpeg-to-run-svt-vp9.patch
        Patch could not be applied with `git am`. Continuing without patching.
16:23:51 ├ Compiling static FFmpeg...
16:23:53 ├ Running uninstall...
16:23:53 ├ Running configure...
16:29:38 ├ Running make...
Likely error (tail of the failed operation logfile):
make: *** [/build/ffmpeg-git/Makefile:133: ffmpeg_g.exe] Error 1
LD      ffmpeg_g.exe
C:/MinGW-w64/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MinGW-w64/local64/lib/libmysofa.a(reader.c.o):reader.c:(.text+0x43b): undefined reference to `le64toh'
C:/MinGW-w64/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MinGW-w64/local64/lib/libmysofa.a(reader.c.o):reader.c:(.text+0x5cd): undefined reference to `le64toh'
C:/MinGW-w64/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MinGW-w64/local64/lib/libmysofa.a(reader.c.o):reader.c:(.text+0x6b5): undefined reference to `le64toh'
C:/MinGW-w64/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MinGW-w64/local64/lib/libmysofa.a(reader.c.o):reader.c:(.text+0x745): undefined reference to `le64toh'
C:/MinGW-w64/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MinGW-w64/local64/lib/libmysofa.a(reader.c.o):reader.c:(.text+0x805): undefined reference to `le64toh'
C:/MinGW-w64/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/MinGW-w64/local64/lib/libmysofa.a(reader.c.o):reader.c:(.text+0x8bd): more undefined references to `le64toh' follow
collect2.exe: error: ld returned 1 exit status
make: *** [/build/ffmpeg-git/Makefile:133: ffmpeg_g.exe] Error 1
make failed. Check C:/MinGW-w64/build/ffmpeg-git/build-static-64bit/ab-suite.make.log
This is required for other packages, so this script will exit.
16:54:09   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.make.log

Biswa96 commented 1 year ago

Duplicate of https://github.com/m-ab-s/media-autobuild_suite/issues/2440

LigH-de commented 1 year ago

A "Big Endian fix for mingw" has been committed upstream...

Biswa96 commented 1 year ago

@ycwan Please try to rebuild the project.

ycwan commented 1 year ago

Fix is good. Thanks @Biswa96