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

[mingw32|mingw64] [repo] undefined reference to `le64toh' #2440

Closed hgrimsrud closed 1 year ago

hgrimsrud commented 1 year ago

I have tried to run several times but keep getting this error. Any help would be appreciated.

C:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/mabs/local64/lib/libmysofa.a(reader.c.o):reader.c:(.text+0x805): undefined reference to `le64toh'
C:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/mabs/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: *** Waiting for unfinished jobs....
collect2.exe: error: ld returned 1 exit status
make: *** [/build/ffmpeg-git/Makefile:133: ffprobe_g.exe] Error 1
collect2.exe: error: ld returned 1 exit status
make: *** [/build/ffmpeg-git/Makefile:133: ffplay_g.exe] Error 1
LD  ffmpeg_g.exe
C:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/mabs/local64/lib/libmysofa.a(reader.c.o):reader.c:(.text+0x43b): undefined reference to `le64toh'
C:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/mabs/local64/lib/libmysofa.a(reader.c.o):reader.c:(.text+0x5cd): undefined reference to `le64toh'
C:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/mabs/local64/lib/libmysofa.a(reader.c.o):reader.c:(.text+0x6b5): undefined reference to `le64toh'
C:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/mabs/local64/lib/libmysofa.a(reader.c.o):reader.c:(.text+0x745): undefined reference to `le64toh'
C:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/mabs/local64/lib/libmysofa.a(reader.c.o):reader.c:(.text+0x805): undefined reference to `le64toh'
C:/mabs/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/mabs/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

logs.zip

moob158 commented 1 year ago

same here.

Biswa96 commented 1 year ago

Reported in upstream https://github.com/hoene/libmysofa/pull/198

LigH-de commented 1 year ago

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

Biswa96 commented 1 year ago

So, the issue can be closed, right?

LigH-de commented 1 year ago

Yes, compilation just passed.

LigH-de commented 1 year ago

@hgrimsrud - does it work for you too?

hgrimsrud commented 1 year ago

It worked for me too. I changed SOURCE_REPO_LIBMYSOFA=https://github.com/hoene/libmysofa.git to SOURCE_REPO_LIBMYSOFA=https://github.com/hoene/libmysofa.git#branch=bug/129-bigendian when i had the problem and then it worked for me. So if that fix was merged in to the master branch all is well. Thank you very much.

LigH-de commented 1 year ago

As you opened this issue, you can close it now yourself.