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

melonDS compilation fails when linking CXX executable #1369

Closed
extherian opened this issue Feb 18, 2022 · 6 comments
Closed

melonDS compilation fails when linking CXX executable #1369

extherian opened this issue Feb 18, 2022 · 6 comments

Comments

@extherian
Copy link

I got the following error message:

[100%] Linking CXX executable ../../../melonDS.exe
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../lib\libb2.a(libb2_la-blake2sp.o):(.text+0x14): undefined reference to omp_get_thread_num' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../lib\libb2.a(libb2_la-blake2sp.o):(.text+0x96): undefined reference to omp_get_thread_num'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../lib\libb2.a(libb2_la-blake2sp.o):(.text+0x55c): undefined reference to omp_set_num_threads' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../lib\libb2.a(libb2_la-blake2sp.o):(.text+0x582): undefined reference to GOMP_parallel'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../lib\libb2.a(libb2_la-blake2sp.o):(.text+0x9a2): undefined reference to omp_set_num_threads' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../lib\libb2.a(libb2_la-blake2sp.o):(.text+0x9d7): undefined reference to GOMP_parallel'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [src/frontend/qt_sdl/CMakeFiles/melonDS.dir/build.make:814: melonDS.exe] Error 1
make[1]: *** [CMakeFiles/Makefile2:248: src/frontend/qt_sdl/CMakeFiles/melonDS.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

No idea what this means, unfortunately. I followed all the instructions in README.md, so I don't know why I'm getting undefined reference errors.

@RayyanAnsari
Copy link
Member

RayyanAnsari commented Feb 18, 2022

known issue with msys2, they recently added a package for libb2 which we depend on via libarchive.
m-ab-s/media-autobuild_suite#2123

@RayyanAnsari
Copy link
Member

This should now be fixed by msys2/MINGW-packages#10707 (comment)

@extherian
Copy link
Author

OK, I'll just have to wait until the main MSYS2 website updates its download with these new changes.

@Biswa96
Copy link

Biswa96 commented Feb 18, 2022

The fixed package is uploaded https://packages.msys2.org/updates. It may take time to reach all the mirrors. Meanwhile keep spamming pacman -Syyuu command to update packages.

@extherian
Copy link
Author

@RayyanAnsari this fixed my problem and I compiled the program successfully, thanks for all your help!

@Biswa96
Copy link

Biswa96 commented Feb 19, 2022

Thank you too for reporting this issue quickly 🤗 It is easier to fix an issue with a minimal reproducible sample.

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

3 participants