Affected Version
yay v12.5.7 - libalpm v16.0.1
Describe the bug
In an arch linux dockerfile I run:
RUN yay --aur -S --noconfirm mingw-w64-boost
This fails to install with the errors:
#6 224.0 /usr/i686-w64-mingw32/bin/ld: bin.v2/libs/cobalt/build/gcc-mingw64/release/x86_32/abi-ms/binary-format-pe/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/detail/util.o:util.cpp:(.text+0x22): undefined reference to `_imp__WSACleanup@0'
#6 224.0 /usr/i686-w64-mingw32/bin/ld: bin.v2/libs/cobalt/build/gcc-mingw64/release/x86_32/abi-ms/binary-format-pe/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/detail/util.o:util.cpp:(.text+0x5a): undefined reference to `_imp__WSAStartup@8'
#6 224.0 /usr/i686-w64-mingw32/bin/ld: bin.v2/libs/cobalt/build/gcc-mingw64/release/x86_32/abi-ms/binary-format-pe/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/channel.o:channel.cpp:(.text+0x22): undefined reference to `_imp__WSACleanup@0'
#6 224.0 /usr/i686-w64-mingw32/bin/ld: bin.v2/libs/cobalt/build/gcc-mingw64/release/x86_32/abi-ms/binary-format-pe/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/channel.o:channel.cpp:(.text+0x5a): undefined reference to `_imp__WSAStartup@8'
#6 224.0 /usr/i686-w64-mingw32/bin/ld: bin.v2/libs/cobalt/build/gcc-mingw64/release/x86_32/abi-ms/binary-format-pe/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/main.o:main.cpp:(.text+0x52): undefined reference to `_imp__WSACleanup@0'
#6 224.0 /usr/i686-w64-mingw32/bin/ld: bin.v2/libs/cobalt/build/gcc-mingw64/release/x86_32/abi-ms/binary-format-pe/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/main.o:main.cpp:(.text+0x1463): undefined reference to `_imp__WSAStartup@8'
#6 224.0 /usr/i686-w64-mingw32/bin/ld: bin.v2/libs/cobalt/build/gcc-mingw64/release/x86_32/abi-ms/binary-format-pe/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/main.o:main.cpp:(.text+0x2002): undefined reference to `_imp__WSACleanup@0'
#6 224.0 /usr/i686-w64-mingw32/bin/ld: bin.v2/libs/cobalt/build/gcc-mingw64/release/x86_32/abi-ms/binary-format-pe/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/main.o:main.cpp:(.text.unlikely+0x48b): undefined reference to `_imp__WSACleanup@0'
#6 224.0 /usr/i686-w64-mingw32/bin/ld: bin.v2/libs/cobalt/build/gcc-mingw64/release/x86_32/abi-ms/binary-format-pe/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/main.o:main.cpp:(.text.startup+0x24): undefined reference to `_imp__WSAStartup@8'
#6 224.0 /usr/i686-w64-mingw32/bin/ld: bin.v2/libs/cobalt/build/gcc-mingw64/release/x86_32/abi-ms/binary-format-pe/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/main.o:main.cpp:(.text$_ZN5boost4asio10io_contextD1Ev[__ZN5boost4asio10io_contextD1Ev]+0x102): undefined reference to `_imp__WSACleanup@0'
#6 224.0 /usr/i686-w64-mingw32/bin/ld: bin.v2/libs/cobalt/build/gcc-mingw64/release/x86_32/abi-ms/binary-format-pe/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/this_thread.o:this_thread.cpp:(.text+0x22): undefined reference to `_imp__WSACleanup@0'
#6 224.0 /usr/i686-w64-mingw32/bin/ld: bin.v2/libs/cobalt/build/gcc-mingw64/release/x86_32/abi-ms/binary-format-pe/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/this_thread.o:this_thread.cpp:(.text+0x5a): undefined reference to `_imp__WSAStartup@8'
#6 224.0 /usr/i686-w64-mingw32/bin/ld: bin.v2/libs/cobalt/build/gcc-mingw64/release/x86_32/abi-ms/binary-format-pe/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/thread.o:thread.cpp:(.text+0x3a): undefined reference to `_imp__WSAStartup@8'
#6 224.0 /usr/i686-w64-mingw32/bin/ld: bin.v2/libs/cobalt/build/gcc-mingw64/release/x86_32/abi-ms/binary-format-pe/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/thread.o:thread.cpp:(.text+0x92): undefined reference to `_imp__WSACleanup@0'
#6 224.0 /usr/i686-w64-mingw32/bin/ld: bin.v2/libs/cobalt/build/gcc-mingw64/release/x86_32/abi-ms/binary-format-pe/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/thread.o:thread.cpp:(.text$_ZNSt23_Sp_counted_ptr_inplaceIN5boost6cobalt6detail12thread_stateESaIvELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv[__ZNSt23_Sp_counted_ptr_inplaceIN5boost6cobalt6detail12thread_stateESaIvELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv]+0x36a): undefined reference to `_imp__WSACleanup@0'
#6 224.0 /usr/i686-w64-mingw32/bin/ld: bin.v2/libs/cobalt/build/gcc-mingw64/release/x86_32/abi-ms/binary-format-pe/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/thread.o:thread.cpp:(.text$_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv[__ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv]+0x282): undefined reference to `_imp__WSACleanup@0'
#6 224.0 /usr/i686-w64-mingw32/bin/ld: bin.v2/libs/cobalt/build/gcc-mingw64/release/x86_32/abi-ms/binary-format-pe/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/thread.o:thread.cpp:(.text$_ZN5boost4asio10io_contextC1Ei[__ZN5boost4asio10io_contextC1Ei]+0x172): undefined reference to `_imp__WSACleanup@0'
Reproduction Steps
- Build the docker file:
FROM archlinux:base-devel
RUN pacman --noconfirm -Syu
# for yay
RUN pacman --noconfirm -S wget sudo go git
# install dependencies and utilities for building
RUN pacman --noconfirm -S scons mingw-w64-gcc pkg-config python-pefile expect
RUN pacman-key --init
# add msys2 stuff
RUN wget https://github.com/msys2/msys2-installer/releases/download/2026-03-22/msys2-base-x86_64-20260322.tar.xz && \
tar xJvf msys2-base-x86_64-20260322.tar.xz && \
cp /msys64/etc/pacman.d/* /etc/pacman.d/ && \
cp /msys64/usr/share/pacman/keyrings/* /usr/share/pacman/keyrings/
# setup msys2 keys
RUN pacman-key --populate msys2
# Create a non-root user since makepkg isn't allowed to run as root
RUN useradd -m yaybuilder && echo "yaybuilder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
# build yay for installing from AUR
USER yaybuilder
WORKDIR /home/yaybuilder
RUN git clone https://aur.archlinux.org/yay.git
RUN cd yay && makepkg -si --noconfirm
# nsis for creating windows installer
RUN yay --aur -S --noconfirm nsis
RUN yay --aur -S --noconfirm mingw-w64-boost
# wesnoth dependencies
USER root
RUN pacman --root /msys64 --config /msys64/etc/pacman.conf --noconfirm -Syu \
mingw-w64-x86_64-sdl3 \
mingw-w64-x86_64-sdl3-image \
mingw-w64-x86_64-sdl3-mixer \
mingw-w64-x86_64-pango \
mingw-w64-x86_64-curl-winssl
Expected behavior
Boost is installed.
Output
log.log
Affected Version
yay v12.5.7 - libalpm v16.0.1
Describe the bug
In an arch linux dockerfile I run:
RUN yay --aur -S --noconfirm mingw-w64-boostThis fails to install with the errors:
Reproduction Steps
Expected behavior
Boost is installed.
Output
log.log