Closed issue by hworth on void-packages repository https://github.com/void-linux/void-packages/issues/33016 Description: ### System * xuname: * Void 5.13.19_1 x86_64 AuthenticAMD uptodate rrrrmmnFFFFF * package: * wine-6.17_1 ### Expected behavior Successful installation of wine-staging via xbps-src ### Actual behavior Attempted installation of wine-staging via xbps-src results in error at the `wine-6.17_1: running do_build` step; specifically, this is the output of the failed build: ``` tools/winegcc/winegcc -o dlls/avicap32/avicap32.so --wine-objdir . -m64 -fPIC -fasynchronous-unwind-tables -munix -shared \ dlls/avicap32/v4l.o -lntdll libs/port/libwine_port.a -Wl,--subsystem,unixlib -ldl -Wl,-z,relro -Wl,-z,now -Wl,--as-needed /usr/bin/ld: cannot find -lntdll collect2: error: ld returned 1 exit status winegcc: /usr/bin/cc failed make: *** [Makefile:9209: dlls/avicap32/avicap32.so] Error 2 => ERROR: wine-6.17_1: do_build: '${make_cmd} ${makejobs} ${make_build_args} ${make_build_target}' exited with 2 => ERROR: in do_build() at common/build-style/gnu-configure.sh:15 ``` ### Steps to reproduce the behavior ``` [ouroboros@voidtwilight void-packages]$ ./xbps-src -o staging pkg wine => xbps-src: updating repositories for host (x86_64)... [*] Updating repository `https://alpha.de.repo.voidlinux.org/current/x86_64-repodata' ... [*] Updating repository `https://alpha.de.repo.voidlinux.org/current/nonfree/x86_64-repodata' ... [*] Updating repository `https://alpha.de.repo.voidlinux.org/current/debug/x86_64-repodata' ... [*] Updating repository `https://alpha.de.repo.voidlinux.org/current/multilib/x86_64-repodata' ... [*] Updating repository `https://alpha.de.repo.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ... => xbps-src: updating software in / masterdir... => xbps-src: cleaning up / masterdir... => wine-6.17_1: removing autodeps, please wait... => wine-6.17_1: the following build options are set: mingw: Use the MinGW cross compiler to build WinPE DLLs (ON) staging: Apply the wine-staging patchset (ON) => wine-6.17_1: building [gnu-configure] for x86_64... [host] pkg-config-0.29.2_3: found (https://alpha.de.repo.voidlinux.org/current) [host] flex-2.6.4_3: found (https://alpha.de.repo.voidlinux.org/current) [host] gettext-0.21_4: found (https://alpha.de.repo.voidlinux.org/current) [host] cross-x86_64-w64-mingw32-9.0.0_1: found (https://alpha.de.repo.voidlinux.org/current) [host] autoconf-2.69_9: found (https://alpha.de.repo.voidlinux.org/current) [host] prelink-20130503_4: found (https://alpha.de.repo.voidlinux.org/current) [target] gettext-devel-0.21_4: found (https://alpha.de.repo.voidlinux.org/current) [target] lcms2-devel-2.12_1: found (https://alpha.de.repo.voidlinux.org/current) [target] zlib-devel-1.2.11_4: found (https://alpha.de.repo.voidlinux.org/current) [target] ncurses-devel-6.2_4: found (https://alpha.de.repo.voidlinux.org/current) [target] glu-devel-9.0.2_1: found (https://alpha.de.repo.voidlinux.org/current) [target] libSM-devel-1.2.3_1: found (https://alpha.de.repo.voidlinux.org/current) [target] libXext-devel-1.3.4_1: found (https://alpha.de.repo.voidlinux.org/current) [target] libX11-devel-1.7.2_3: found (https://alpha.de.repo.voidlinux.org/current) [target] libXpm-devel-3.5.13_1: found (https://alpha.de.repo.voidlinux.org/current) [target] libXinerama-devel-1.1.4_1: found (https://alpha.de.repo.voidlinux.org/current) [target] libXcomposite-devel-0.4.5_1: found (https://alpha.de.repo.voidlinux.org/current) [target] libXmu-devel-1.1.3_1: found (https://alpha.de.repo.voidlinux.org/current) [target] libXxf86vm-devel-1.1.4_3: found (https://alpha.de.repo.voidlinux.org/current) [target] libXcursor-devel-1.2.0_1: found (https://alpha.de.repo.voidlinux.org/current) [target] libXrandr-devel-1.5.2_1: found (https://alpha.de.repo.voidlinux.org/current) [target] libXdamage-devel-1.1.5_1: found (https://alpha.de.repo.voidlinux.org/current) [target] libXi-devel-1.7.10_1: found (https://alpha.de.repo.voidlinux.org/current) [target] libldap-devel-2.4.58_1: found (https://alpha.de.repo.voidlinux.org/current) [target] alsa-lib-devel-1.2.5.1_1: found (https://alpha.de.repo.voidlinux.org/current) [target] libgphoto2-devel-2.5.26_1: found (https://alpha.de.repo.voidlinux.org/current) [target] libxml2-devel-2.9.10_5: found (https://alpha.de.repo.voidlinux.org/current) [target] libxslt-devel-1.1.34_4: found (https://alpha.de.repo.voidlinux.org/current) [target] glib-devel-2.68.3_2: found (https://alpha.de.repo.voidlinux.org/current) [target] freetype-devel-2.10.4_2: found (https://alpha.de.repo.voidlinux.org/current) [target] pulseaudio-devel-15.0_1: found (https://alpha.de.repo.voidlinux.org/current) [target] mpg123-devel-1.28.2_1: found (https://alpha.de.repo.voidlinux.org/current) [target] libgsm-devel-1.0.18_1: found (https://alpha.de.repo.voidlinux.org/current) [target] libopenal-devel-1.21.0_1: found (https://alpha.de.repo.voidlinux.org/current) [target] giflib-devel-5.2.1_1: found (https://alpha.de.repo.voidlinux.org/current) [target] libpng-devel-1.6.37_1: found (https://alpha.de.repo.voidlinux.org/current) [target] v4l-utils-devel-1.20.0_2: found (https://alpha.de.repo.voidlinux.org/current) [target] fontconfig-devel-2.13.1_3: found (https://alpha.de.repo.voidlinux.org/current) [target] gnutls-devel-3.6.16_1: found (https://alpha.de.repo.voidlinux.org/current) [target] dbus-devel-1.12.20_1: found (https://alpha.de.repo.voidlinux.org/current) [target] sane-devel-1.0.31_3: found (https://alpha.de.repo.voidlinux.org/current) [target] libpcap-devel-1.10.1_1: found (https://alpha.de.repo.voidlinux.org/current) [target] cups-devel-2.3.3op2_1: found (https://alpha.de.repo.voidlinux.org/current) [target] ocl-icd-devel-2.2.12_2: found (https://alpha.de.repo.voidlinux.org/current) [target] vulkan-loader-1.2.182_1: found (https://alpha.de.repo.voidlinux.org/current) [target] vkd3d-devel-1.2_1: found (https://alpha.de.repo.voidlinux.org/current) [target] FAudio-devel-20.11_2: found (https://alpha.de.repo.voidlinux.org/current) [target] gst-plugins-base1-devel-1.18.4_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] libXi-1.7.10_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] libXinerama-1.1.4_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] libXcomposite-0.4.5_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] libXcursor-1.2.0_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] libOSMesa-21.2.1_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] desktop-file-utils-0.26_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] hicolor-icon-theme-0.17_3: found (https://alpha.de.repo.voidlinux.org/current) [runtime] liberation-fonts-ttf-2.1.4_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] gnutls-3.6.16_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] wine-common-6.17_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] libwine-6.17_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] libXi-1.7.10_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] libXinerama-1.1.4_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] libXcomposite-0.4.5_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] libXcursor-1.2.0_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] libOSMesa-21.2.1_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] desktop-file-utils-0.26_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] hicolor-icon-theme-0.17_3: found (https://alpha.de.repo.voidlinux.org/current) [runtime] liberation-fonts-ttf-2.1.4_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] gnutls-3.6.16_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] wine-common-6.17_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] libwine-6.17_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] libXi-1.7.10_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] libXinerama-1.1.4_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] libXcomposite-0.4.5_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] libXcursor-1.2.0_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] libOSMesa-21.2.1_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] desktop-file-utils-0.26_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] hicolor-icon-theme-0.17_3: found (https://alpha.de.repo.voidlinux.org/current) [runtime] liberation-fonts-ttf-2.1.4_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] gnutls-3.6.16_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] wine-common-6.17_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] libwine-6.17_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] libwine-6.17_1: found (https://alpha.de.repo.voidlinux.org/current) [runtime] wine-6.17_1: found (https://alpha.de.repo.voidlinux.org/current) => wine-6.17_1: installing host dependencies: pkg-config-0.29.2_3 flex-2.6.4_3 gettext-0.21_4 cross-x86_64-w64-mingw32-9.0.0_1 autoconf-2.69_9 prelink-20130503_4 ... => wine-6.17_1: installing target dependencies: gettext-devel-0.21_4 lcms2-devel-2.12_1 zlib-devel-1.2.11_4 ncurses-devel-6.2_4 glu-devel-9.0.2_1 libSM-devel-1.2.3_1 libXext-devel-1.3.4_1 libX11-devel-1.7.2_3 libXpm-devel-3.5.13_1 libXinerama-devel-1.1.4_1 libXcomposite-devel-0.4.5_1 libXmu-devel-1.1.3_1 libXxf86vm-devel-1.1.4_3 libXcursor-devel-1.2.0_1 libXrandr-devel-1.5.2_1 libXdamage-devel-1.1.5_1 libXi-devel-1.7.10_1 libldap-devel-2.4.58_1 alsa-lib-devel-1.2.5.1_1 libgphoto2-devel-2.5.26_1 libxml2-devel-2.9.10_5 libxslt-devel-1.1.34_4 glib-devel-2.68.3_2 freetype-devel-2.10.4_2 pulseaudio-devel-15.0_1 mpg123-devel-1.28.2_1 libgsm-devel-1.0.18_1 libopenal-devel-1.21.0_1 giflib-devel-5.2.1_1 libpng-devel-1.6.37_1 v4l-utils-devel-1.20.0_2 fontconfig-devel-2.13.1_3 gnutls-devel-3.6.16_1 dbus-devel-1.12.20_1 sane-devel-1.0.31_3 libpcap-devel-1.10.1_1 cups-devel-2.3.3op2_1 ocl-icd-devel-2.2.12_2 vulkan-loader-1.2.182_1 vkd3d-devel-1.2_1 FAudio-devel-20.11_2 gst-plugins-base1-devel-1.18.4_1 ... => wine-6.17_1: running pre-build hook: 02-script-wrapper ... => wine-6.17_1: running pre_build ... => wine-6.17_1: running do_build ... tools/winegcc/winegcc -o dlls/avicap32/avicap32.so --wine-objdir . -m64 -fPIC -fasynchronous-unwind-tables -munix -shared \ dlls/avicap32/v4l.o -lntdll libs/port/libwine_port.a -Wl,--subsystem,unixlib -ldl -Wl,-z,relro -Wl,-z,now -Wl,--as-needed /usr/bin/ld: cannot find -lntdll collect2: error: ld returned 1 exit status winegcc: /usr/bin/cc failed make: *** [Makefile:9209: dlls/avicap32/avicap32.so] Error 2 => ERROR: wine-6.17_1: do_build: '${make_cmd} ${makejobs} ${make_build_args} ${make_build_target}' exited with 2 => ERROR: in do_build() at common/build-style/gnu-configure.sh:15 ```