msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.27k stars 1.21k forks source link

cannot link with mingw-w64-x86_64-vamp-plugin-sdk #9243

Open alex-tee opened 3 years ago

alex-tee commented 3 years ago

I recently added this dependency to my project and I can't build it, fails at link time:

2021-07-30T01:37:33.3334532Z [428/429] Linking target src/zrythm.exe
2021-07-30T01:37:33.3335617Z FAILED: src/zrythm.exe 
2021-07-30T01:37:33.3336298Z "g++" @src/zrythm.exe.rsp
2021-07-30T01:37:33.3337337Z C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/libgcc_eh.a(unwind-seh.o): in function `_Unwind_GetIPInfo':
2021-07-30T01:37:33.3338873Z C:\_\M\mingw-w64-gcc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libgcc/../../../gcc-10.3.0/libgcc/unwind-seh.c:123: multiple definition of `_Unwind_GetIPInfo'; C:/msys64/mingw64/lib/libvamp-hostsdk.dll.a(d000033.o):(.text+0x0): first defined here
2021-07-30T01:37:33.3340260Z C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/libgcc_eh.a(unwind-seh.o): in function `_Unwind_Resume':
2021-07-30T01:37:33.3341580Z C:\_\M\mingw-w64-gcc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libgcc/../../../gcc-10.3.0/libgcc/unwind-seh.c:347: multiple definition of `_Unwind_Resume'; C:/msys64/mingw64/lib/libvamp-hostsdk.dll.a(d000038.o):(.text+0x0): first defined here
2021-07-30T01:37:33.3342866Z C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/libgcc_eh.a(unwind-seh.o): in function `_Unwind_Backtrace':
2021-07-30T01:37:33.3344383Z C:\_\M\mingw-w64-gcc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libgcc/../../../gcc-10.3.0/libgcc/unwind-seh.c:436: multiple definition of `_Unwind_Backtrace'; C:/msys64/mingw64/lib/libvamp-hostsdk.dll.a(d000025.o):(.text+0x0): first defined here
2021-07-30T01:37:33.3345416Z collect2.exe: error: ld returned 1 exit status
2021-07-30T01:37:33.3905203Z [429/429] Linking target src/libzrythm-lib.dll
2021-07-30T01:37:33.3906371Z FAILED: src/libzrythm-lib.dll 
2021-07-30T01:37:33.3908698Z "g++" @src/libzrythm-lib.dll.rsp
2021-07-30T01:37:33.3909914Z C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/libgcc_eh.a(unwind-seh.o): in function `_Unwind_GetIPInfo':
2021-07-30T01:37:33.3914684Z C:\_\M\mingw-w64-gcc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libgcc/../../../gcc-10.3.0/libgcc/unwind-seh.c:123: multiple definition of `_Unwind_GetIPInfo'; C:/msys64/mingw64/lib/libvamp-hostsdk.dll.a(d000033.o):(.text+0x0): first defined here
2021-07-30T01:37:33.3918281Z C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/libgcc_eh.a(unwind-seh.o): in function `_Unwind_Resume':
2021-07-30T01:37:33.3921789Z C:\_\M\mingw-w64-gcc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libgcc/../../../gcc-10.3.0/libgcc/unwind-seh.c:347: multiple definition of `_Unwind_Resume'; C:/msys64/mingw64/lib/libvamp-hostsdk.dll.a(d000038.o):(.text+0x0): first defined here
2021-07-30T01:37:33.3923521Z C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/libgcc_eh.a(unwind-seh.o): in function `_Unwind_Backtrace':
2021-07-30T01:37:33.3925298Z C:\_\M\mingw-w64-gcc\src\build-x86_64-w64-mingw32\x86_64-w64-mingw32\libgcc/../../../gcc-10.3.0/libgcc/unwind-seh.c:436: multiple definition of `_Unwind_Backtrace'; C:/msys64/mingw64/lib/libvamp-hostsdk.dll.a(d000025.o):(.text+0x0): first defined here
2021-07-30T01:37:33.3926614Z collect2.exe: error: ld returned 1 exit status
2021-07-30T01:37:33.3928310Z ninja: build stopped: subcommand failed.

seems like there's something wrong with C:/msys64/mingw64/lib/libvamp-hostsdk.dll.a. any ideas? full log here: https://dev.azure.com/alex0266/5d39a0cf-3c43-4666-958d-d10497d6b905/_apis/build/builds/3017/logs/11

alex-tee commented 3 years ago

more info: using the static version of the library links fine, only the dynamic lib has this issue. maybe it's missing -l flags