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

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

Closed
hgrimsrud opened this issue May 19, 2023 · 8 comments
Closed

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

hgrimsrud opened this issue May 19, 2023 · 8 comments

Comments

@hgrimsrud
Copy link

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
Copy link

moob158 commented May 19, 2023

same here.

@Biswa96
Copy link
Contributor

Biswa96 commented May 20, 2023

Reported in upstream hoene/libmysofa#198

@LigH-de
Copy link
Contributor

LigH-de commented May 30, 2023

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

@Biswa96
Copy link
Contributor

Biswa96 commented May 30, 2023

So, the issue can be closed, right?

@LigH-de
Copy link
Contributor

LigH-de commented May 30, 2023

Yes, compilation just passed.

@LigH-de
Copy link
Contributor

LigH-de commented Jun 3, 2023

@hgrimsrud - does it work for you too?

@hgrimsrud
Copy link
Author

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
Copy link
Contributor

LigH-de commented Jun 3, 2023

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

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