[Bug 59462] New: wine-staging fails to build due to unable to find -lvkd3d
http://bugs.winehq.org/show_bug.cgi?id=59462 Bug ID: 59462 Summary: wine-staging fails to build due to unable to find -lvkd3d Product: Wine Version: 11.3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@list.winehq.org Reporter: neotheuser@ymail.com Distribution: --- Using the llvm-mingw64 toolchain, I am unable to build Wine using the wine-staging patches. Short build log: tools/winegcc/winegcc -o dlls/wined3d/i386-windows/wined3d.dll --wine-objdir . --cc-cmd="i686-w64-mingw32-clang" -b i686-w64-mingw32 \ -Wl,--wine-builtin -shared ../dlls/wined3d/wined3d.spec dlls/wined3d/i386-windows/adapter_gl.o \ ... [ cut ] ... -lvkd3d libs/dxguid/i386-windows/libdxguid.a dlls/opengl32/i386-windows/libopengl32.a \ tools/winegcc/winegcc -o dlls/wined3d/x86_64-windows/wined3d.dll --wine-objdir . --cc-cmd="x86_64-w64-mingw32-clang" -b \ ... [ cut ] ... dlls/wined3d/resource.res dlls/wined3d/version.res -lvkd3d libs/dxguid/x86_64-windows/libdxguid.a \ ... [ cut ] ... lld: error: unable to find library -lvkd3d clang: error: linker command failed with exit code 1 (use -v to see invocation) ... [ cut ] ... lld: error: unable to find library -lvkd3d winegcc: /home/fedora/dev/llvm-mingw-20251216-ucrt-ubuntu-22.04-x86_64/bin/i686-w64-mingw32-clang failed clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [Makefile:176705: dlls/wined3d/i386-windows/wined3d.dll] Error 2 make: *** Waiting for unfinished jobs.... winegcc: /home/fedora/dev/llvm-mingw-20251216-ucrt-ubuntu-22.04-x86_64/bin/x86_64-w64-mingw32-clang failed make: *** [Makefile:176754: dlls/wined3d/x86_64-windows/wined3d.dll] Error 2 I noticed the following: fedora@fedora:~/dev/wine$ ld.lld -lvkd3d ld.lld: error: unable to find library -lvkd3d fedora@fedora:~/dev/wine$ ld.lld -L/usr/lib64 -lvkd3d ld.lld: warning: cannot find entry symbol _start; not setting start address However, adding -L/usr/lib64 to LDFLAGS and even modifying the Makefile within the build directory and forcefully adding it behind `-lvkd3d` the issue still persists and I have no idea how to fix this. Wine from latest `master` branch compiles fine, however Wine with wine-staging (--all specified, all staging patches, fails, not sure which patch yet is the culprit) Toolchain location: https://github.com/mstorsjo/llvm-mingw/releases/tag/20251216 configure line: ../configure CC="clang" CXX="clang++" CPP="clang-cpp" i386_CC="i686-w64-mingw32-clang" i386_CXX="i686-w64-mingw32-clang++" x86_64_CC="x86_64-w64-mingw32-clang" x86_64_CXX="x86_64-w64-mingw32-clang++" --enable-archs=i386,x86_64 --disable-tests --prefix=/home/fedora/wine-out I have not yet tried to build wine-staging with GCC+BFD linker yet. This is Fedora 43. Package relevant files installed from libvkd3d-devel (installed both 32-bit and 64-bit devel packages): /usr/include/vkd3d/vkd3d.h /usr/lib64/libvkd3d.so /usr/lib64/pkgconfig/libvkd3d.pc /usr/lib/libvkd3d.so /usr/lib/pkgconfig/libvkd3d.pc -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59462 Alec Ari <neotheuser@ymail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |neotheuser@ymail.com --- Comment #1 from Alec Ari <neotheuser@ymail.com> --- Created attachment 80449 --> http://bugs.winehq.org/attachment.cgi?id=80449 GCC+BFD errors with wine-staging This toolchain comes from Fedora 43's mingw64 packages -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59462 --- Comment #2 from Alec Ari <neotheuser@ymail.com> --- Figured it out.. Culprit: From 1d2b74f9883c61e324f20ba869b1fdfcf1ee86e2 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Date: Tue, 24 Feb 2026 11:07:36 +1100 Subject: [PATCH] Updated vkd3d to aa811c10496800846b465c22a8a79a1e254942a3. ... wine-staging/patches/vkd3d-latest/0002-Updated-vkd3d-to-aa811c10496800846b465c22a8a79a1e254.patch ... diff --git a/libs/vkd3d/Makefile.in b/libs/vkd3d/Makefile.in index 51007ebc99c..868f4582380 100644 --- a/libs/vkd3d/Makefile.in +++ b/libs/vkd3d/Makefile.in @@ -1,4 +1,4 @@ -STATICLIB = libvkd3d.a +EXTLIB = libvkd3d.a ... Simply changing EXTLIB back to STATICLIB prevents -lvkd3d from being added to the build directory's Makefile however a compiling error occurs (did not save it.) Pulling out the whole patch fixes the issue. 0001-Updated-vkd3d-to-5c355b5963ef7a51eb152a8f1544542bf5b.patch does not cause any breakage. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59462 Mitch Wilkinson <jcsznfixrm@jkotypc.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jcsznfixrm@jkotypc.com --- Comment #3 from Mitch Wilkinson <jcsznfixrm@jkotypc.com> --- (In reply to Alec Ari from comment #2)
... a compiling error occurs (did not save it.) ...
I believe you also run into "undefined identifier ssize_t" error. For me it was introduced by the same patch file (patches/vkd3d-latest/0002-Updated-vkd3d-to-aa811c10496800846b465c22a8a79a1e254.patch) into libs/vkd3d/libs/vkd3d-shader/fx.c. I temporarily included <sys/types.h> into this file, just to compile the file after the patch had been applied. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59462 --- Comment #4 from Mitch Wilkinson <jcsznfixrm@jkotypc.com> --- I believe both issues were fixed by patch efa1d401 (Updated vkd3d-latest patchset, 2026-03-04) in `Wine staging'. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla