Hi all,
does anyone have some hint, as I’m currently failing to build darktable current master on Windows 11 using MSYS MINGW64 (was working up to [c88724fe] / build 1290, which was the last version I compiled). I already deleted the build directory and launched the build again, but this has not solved the problem.
My steps are always as follows:
pacman -Syu
lensfun-update-data
then start the build
Currently I’m getting the following error log when linking of bin\libdarktable.dll
is reached
-- Build files have been written to: C:/msys64/home/xxx/darktable/build
[0/2] Re-checking globbed directories...
[10/940] Updating version string (git checkout)
Version string: 4.7.0+1328~gdcd6b3e103
[84/940] Generating bin/version_gen.c
[85/940] Checking validity of cameras.xml
C:/msys64/home/xxx/darktable/src/external/rawspeed/data/cameras.xml validates
[398/940] Linking C shared library bin\libdarktable.dll
FAILED: bin/libdarktable.dll bin/libdarktable.dll.a
C:\WINDOWS\system32\cmd.exe /C "cd . && C:\msys64\mingw64\bin\cc.exe -Wall -Wno-format -Wshadow -Wtype-limits -Wvla -Wold-style-declaration -Wmaybe-uninitialized -Wno-unknown-pragmas -Wno-error=varargs -Wno-format-truncation -Wno-error=address-of-packed-member -fopenmp -march=native -msse2 -g -mfpmath=sse -O3 -DNDEBUG -O3 -ffast-math -fno-finite-math-only -fexpensive-optimizations -Wl,--enable-runtime-pseudo-reloc -shared -o bin\libdarktable.dll -Wl,--out-implib,bin\libdarktable.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\lib_darktable.rsp && C:\WINDOWS\system32\cmd.exe /C "cd /D C:\msys64\home\xxx\darktable\build\bin && C:\msys64\mingw64\bin\cmake.exe -E make_directory .debug && objcopy --only-keep-debug C:/msys64/home/xxx/darktable/build/bin/libdarktable.dll C:/msys64/home/xxx/darktable/build/bin/libdarktable.dll.dbg && objcopy --strip-debug C:/msys64/home/xxx/darktable/build/bin/libdarktable.dll && objcopy --add-gnu-debuglink=libdarktable.dll.dbg C:/msys64/home/xxx/darktable/build/bin/libdarktable.dll""
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bin/CMakeFiles/lib_darktable.dir/common/curl_tools.c.obj: in function `dt_curl_init':
C:/msys64/home/xxx/darktable/src/common/curl_tools.c:26:(.text+0x17): undefined reference to `__imp_curl_easy_reset'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/home/xxx/darktable/src/common/curl_tools.c:30:(.text+0x39): undefined reference to `__imp_curl_easy_setopt'
collect2.exe: error: ld returned 1 exit status
[405/940] Building C object lib/darktable/plugins/lighttable/CMakeFiles/export.dir/export_metadata.c.obj
ninja: build stopped: subcommand failed.
-- Install configuration: "Release"
CMake Error at build/po/cmake_install.cmake:41 (file):
file INSTALL cannot find
"C:/msys64/home/xxx/darktable/build/bin/../share/locale/af/LC_MESSAGES/darktable.mo":
No error.
Call Stack (most recent call first):
build/cmake_install.cmake:42 (include)
Thanks in advance for any hints - Lars.
g-man
June 1, 2024, 11:31am
2
You have to revert the curl package to the previous version. I noticed this issue this week, but did not look further into the cause. Since the Linux builds do work, I am assuming the issue is only in the curl msys packaging.
1 Like
kmilos
June 1, 2024, 11:44am
3
opened 01:23PM - 30 May 24 UTC
bug
### Description / Steps to reproduce the issue
Curl is failing to statically li… nk since ~2 days ago.
1. Install `mingw-w64-ucrt-x86_64-curl`
2. Find curl like: https://github.com/LizardByte/Sunshine/blob/f0a00ae35683dfd5742952fb4cf99edf268b57fd/cmake/dependencies/common.cmake#L16
3. Statically link curl like: https://github.com/LizardByte/Sunshine/blob/f0a00ae35683dfd5742952fb4cf99edf268b57fd/cmake/compile_definitions/windows.cmake#L15-L18
4. Include curl like: https://github.com/LizardByte/Sunshine/blob/f0a00ae35683dfd5742952fb4cf99edf268b57fd/cmake/compile_definitions/common.cmake#L140
5. Final link: https://github.com/LizardByte/Sunshine/blob/f0a00ae35683dfd5742952fb4cf99edf268b57fd/cmake/targets/common.cmake#L25
### Expected behavior
Curl properly links as it did previously.
### Actual behavior
The initial error (~2 days ago) was many `undefined references` (https://github.com/LizardByte/Sunshine/actions/runs/9278791852/job/25530652407?pr=2604#step:7:501)
```txt
[ 81%] Linking CXX executable sunshine.exe
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x430): undefined reference to `__imp_nghttp3_conn_read_stream'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x5a2): undefined reference to `__imp_nghttp3_strerror'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x69a): undefined reference to `__imp_nghttp3_conn_close_stream'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x73a): undefined reference to `__imp_nghttp3_conn_close_stream'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x75c): undefined reference to `__imp_nghttp3_strerror'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x880): undefined reference to `__imp_nghttp3_conn_resume_stream'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x95d): undefined reference to `__imp_nghttp3_conn_shutdown_stream_read'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x973): undefined reference to `__imp_nghttp3_conn_close_stream'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x986): undefined reference to `__imp_nghttp3_conn_set_stream_user_data'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0xe4d): undefined reference to `__imp_nghttp3_rcbuf_get_buf'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x1fe0): undefined reference to `__imp_nghttp3_conn_writev_stream'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x228d): undefined reference to `__imp_nghttp3_conn_block_stream'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x2335): undefined reference to `__imp_nghttp3_conn_add_write_offset'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x235f): undefined reference to `__imp_nghttp3_conn_add_ack_offset'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x2597): undefined reference to `__imp_nghttp3_strerror'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x25d3): undefined reference to `__imp_nghttp3_strerror'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x25ef): undefined reference to `__imp_nghttp3_strerror'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x2721): undefined reference to `__imp_nghttp3_conn_unblock_stream'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x29e1): undefined reference to `__imp_nghttp3_conn_resume_stream'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x2f44): undefined reference to `__imp_nghttp3_conn_del'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x3848): undefined reference to `__imp_nghttp3_conn_submit_request'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x39db): undefined reference to `__imp_nghttp3_conn_resume_stream'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x3deb): undefined reference to `__imp_nghttp3_strerror'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x4a19): undefined reference to `__imp_nghttp3_settings_default_versioned'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x4a1f): undefined reference to `__imp_nghttp3_mem_default'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x4a50): undefined reference to `__imp_nghttp3_conn_client_new_versioned'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x4ba9): undefined reference to `__imp_nghttp3_conn_bind_control_stream'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x4bd1): undefined reference to `__imp_nghttp3_conn_bind_qpack_streams'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(libcurl_la-curl_osslq.o):(.text+0x4fb0): undefined reference to `__imp_nghttp3_version'
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [CMakeFiles\sunshine.dir\build.make:836: sunshine.exe] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:214: CMakeFiles/sunshine.dir/all] Error 2
mingw32-make[1]: *** Waiting for unfinished jobs....
```
But now it is many `multiple definition` (https://github.com/LizardByte/Sunshine/actions/runs/9278791852/job/25604282363?pr=2604#step:7:504)
```
[ 84%] Linking CXX executable sunshine.exe
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(unity_0_c.c.obj):(.text+0x3e80): multiple definition of `get_dll_path'; D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcrypto.a(libcrypto-lib-pathtools.obj):(.text+0x0): first defined here
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(unity_0_c.c.obj):(.text+0x3e850): multiple definition of `sanitise_path'; D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcrypto.a(libcrypto-lib-pathtools.obj):(.text+0x190): first defined here
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(unity_0_c.c.obj):(.text+0x3e8d0): multiple definition of `simplify_path'; D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcrypto.a(libcrypto-lib-pathtools.obj):(.text+0x210): first defined here
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(unity_0_c.c.obj):(.text+0x3ebf0): multiple definition of `get_relative_path'; D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcrypto.a(libcrypto-lib-pathtools.obj):(.text+0x510): first defined here
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(unity_0_c.c.obj):(.text+0x3f110): multiple definition of `get_executable_path'; D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcrypto.a(libcrypto-lib-pathtools.obj):(.text+0x9b0): first defined here
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(unity_0_c.c.obj):(.text+0x3f1f0): multiple definition of `strip_n_suffix_folders'; D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcrypto.a(libcrypto-lib-pathtools.obj):(.text+0xa70): first defined here
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(unity_0_c.c.obj):(.text+0x3f240): multiple definition of `get_relocated_path_list'; D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcrypto.a(libcrypto-lib-pathtools.obj):(.text+0xac0): first defined here
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(unity_0_c.c.obj):(.text+0x3f2b0): multiple definition of `get_relocated_path_list_lib'; D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcrypto.a(libcrypto-lib-pathtools.obj):(.text+0xb00): first defined here
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(unity_0_c.c.obj):(.text+0x3f370): multiple definition of `single_path_relocation'; D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcrypto.a(libcrypto-lib-pathtools.obj):(.text+0xb90): first defined here
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(unity_0_c.c.obj):(.text+0x3f440): multiple definition of `single_path_relocation_lib'; D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcrypto.a(libcrypto-lib-pathtools.obj):(.text+0xca0): first defined here
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(unity_0_c.c.obj):(.text+0x3f560): multiple definition of `msys2_get_relocated_single_path'; D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcrypto.a(libcrypto-lib-pathtools.obj):(.text+0xdf0): first defined here
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcurl.a(unity_0_c.c.obj):(.text+0x3f6d0): multiple definition of `msys2_get_relocated_path_list'; D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../lib\libcrypto.a(libcrypto-lib-pathtools.obj):(.text+0xf20): first defined here
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [CMakeFiles\sunshine.dir\build.make:836: sunshine.exe] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:214: CMakeFiles/sunshine.dir/all] Error 2
mingw32-make[1]: *** Waiting for unfinished jobs....
```
### Verification
- [X] I have verified that my MSYS2 is up-to-date before submitting the report (see https://www.msys2.org/docs/updating/)
### Windows Version
Microsoft Windows Server 2019, 10.0.17763 (GitHub hosted runner)
### MINGW environments affected
- [ ] MINGW64
- [ ] MINGW32
- [X] UCRT64
- [ ] CLANG64
- [ ] CLANG32
- [ ] CLANGARM64
### Are you willing to submit a PR?
I would if I knew what the fix was.
P.S. You should already be using UCRT64 on Windows11 instead of MINGW64, which will probably become unsupported in some future dt version.
1 Like
Thank you so much @g-man and @kmilos for your help and your swift reply. So I will try to downgrade curl
, happy to not yet having cleaned the package cache
Regarding using UCRT64 instead of MINGW64 I thought this was just required for Windows 8.1. But perhaps I misunderstood something in the build instructions, so thanks for this hint, too
g-man
June 1, 2024, 1:37pm
5
I think this is what you need to go back (on cellphone so I can’t confirm)
pacman -U --noconfirm https://repo.msys2.org/mingw/ucrt64/mingw-w64-ucrt-x86_64-curl-8.7.1-1-any.pkg.tar.zst
1 Like
Building dt is working again, after downgrading curl
to 8.7.1 from the package cache on my system - thanks again @g-man
To whom it may concern and just to keep anyone from getting frustrated It seems as if mingw-w64-ucrt-x86_64-libheif-1.19.1-1 is currently producing a build error on MSYS UCRT64 on Windows 11. I just downgraded to 1.18.2-3 which builds fine again without throwing an error.
kmilos
November 8, 2024, 9:51am
10
FWIW, the patched libheif-1.19.1-2 package was just published in the MSYS2 repos.
2 Likes
Macchiato17
(Lars Fiedler)
November 8, 2024, 10:02am
11
Cool, thanks for the kind notification.