-
Guest71Hi! I'm trying to build Monero on Windows using MSYS2 (version 3.5.7-4 using mingw64.exe), never done similar thing before, and getting a few multiple definition linker errors, all related to one conflict. Has anyone encountered this?
-
Guest71C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/lib/libunwind.a(Unwind-seh.cpp.obj):Unwind-seh.cpp:(.text$_Unwind_RaiseException[_Unwind_RaiseException]+0x0): multiple definition of `_Unwind_RaiseExc
-
Guest71eption'; C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0\libgcc_eh.a(unwind-seh.o):(.text+0x370): first defined here
-
sech1First defined where?
-
sech1That's a very important piece of information
-
sech1ah, so it's libunwind.a and libgcc_eh.a
-
Guest71Yes
-
sech1try to not link with libunwind
-
sech1add "set(LIBUNWIND_LIBRARIES "")" line right before github.com/monero-project/monero/blob/master/CMakeLists.txt#L526
-
sech1and also "set(DEFAULT_STACK_TRACE OFF)"
-
Guest71That fixed the error and binaries were successfully generated (except for monero-wallet-cli.exe which has linker errors related to libboost_locale-mt.a)
-
Guest71Thanks